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@db4218c

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • lib
    • tokenize.cpp
  • test/cli/fuzz-crash
    • crash-7bac85061edab7fdce2889f02ea3a044242a3920
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎lib/tokenize.cpp‎

Copy file name to clipboardExpand all lines: lib/tokenize.cpp
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1940,7 +1940,7 @@ void Tokenizer::simplifyTypedefCpp()
19401940

19411941
// start substituting at the typedef name by replacing it with the type
19421942
Token* replStart = tok2; // track first replaced token
1943-
for (Token* tok3 = typeStart; tok3->str() != ";"; tok3 = tok3->next())
1943+
for (Token* tok3 = typeStart; tok3 && (tok3->str() != ";"); tok3 = tok3->next())
19441944
tok3->isSimplifiedTypedef(true);
19451945
if (isPointerTypeCall) {
19461946
tok2->deleteThis();
Collapse file

‎test/cli/fuzz-crash/crash-7bac85061edab7fdce2889f02ea3a044242a3920‎

Copy file name to clipboard
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
a,typedef U typedef,U,i

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.