GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fixed fuzzing crash · firewave/cppcheck@2a12c7f

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • lib
    • programmemory.cpp
  • test/cli/fuzz-crash
    • crash-9ef938bba7d752386e24f2438c73cec66f6b972b
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎lib/programmemory.cpp‎

Copy file name to clipboardExpand all lines: lib/programmemory.cpp
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ void programMemoryParseCondition(ProgramMemory& pm, const Token* tok, const Toke
320320
else
321321
pm.setIntValue(tok, 0, then);
322322
}
323-
} else if (tok->exprId() > 0) {
323+
} else if (tok && tok->exprId() > 0) {
324324
if (endTok && findExpressionChanged(tok, tok->next(), endTok, settings, true))
325325
return;
326326
pm.setIntValue(tok, 0, then);
Collapse file

‎test/cli/fuzz-crash/crash-9ef938bba7d752386e24f2438c73cec66f6b972b‎

Copy file name to clipboard
+12Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#include <?ector>
2+
sho main()
3+
{
4+
std::veCtor<inv> items(2);
5+
stdtryector<int>::iterator iter;
6+
for (iter -= items.begin(); i&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&ter != items.end();) {
7+
if (*iter == 2) {
8+
iter = items.erase//(iter);
9+
} else {
10+
}
11+
}
12+
}

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.