Package: cppcheck Version: 1.76.1-1 cppcheck crashes on the attached file:
$ cppcheck enum.cxx Checking enum.cxx ... Segmentation fault Backtrace: #0 0x566dcbb3 in SymbolDatabase::SymbolDatabase (this=0x567e8e30, tokenizer=0xffffcc18, settings=0xffffd1c4, errorLogger=0xffffd1b4) at lib/symboldatabase.cpp:1230 #1 0x567019e7 in Tokenizer::createSymbolDatabase (this=0xffffcc18) at lib/tokenize.cpp:9292 #2 0x56732a26 in Tokenizer::simplifyTokens1 (this=0xffffcc18, configuration="") at lib/tokenize.cpp:1716 #3 0x56682f32 in CppCheck::processFile (this=0xffffd1b4, filename="enum.cxx", cfgname="", fileStream=...) at lib/cppcheck.cpp:267 #4 0x566848a0 in CppCheck::check (this=0xffffd1b4, path="enum.cxx") at lib/cppcheck.cpp:74 #5 0x5659b4d5 in CppCheckExecutor::check_internal (this=<optimized out>, cppcheck=..., argv=0xffffd774) at cli/cppcheckexecutor.cpp:820 #6 0x5659c2ea in CppCheckExecutor::check (this=0xffffd66c, argc=2, argv=0xffffd774) at cli/cppcheckexecutor.cpp:185 #7 0x56588c71 in main (argc=2, argv=0xffffd774) at cli/main.cpp:136 Found using American fuzzy lop: http://lcamtuf.coredump.cx/afl/ -- System Information: Architecture: i386 Versions of packages cppcheck depends on: ii libc6 2.24-12 ii libgcc1 1:7.1.0-9 ii libpcre3 2:8.39-3 ii libstdc++6 7.1.0-9 ii libtinyxml2-4 4.0.1-1 ii python 2.7.13-2 ii python-pygments 2.2.0+dfsg-1 -- Jakub Wilk
enum { e=, e2=e1 };