cppcheck/lib
Thomas Jarosch 1cc85bfce3 Add bounds check to getVariableFromVarId()
While poking around the memory leak check,
I managed to trigger an out-of-bounds access
in the symbol database.

Fix it by sanity checking the variable id
passed to getVariableFromVarId().
2015-01-14 23:00:38 +01:00
..
check.cpp Updated copyright year to 2015 2015-01-03 12:14:58 +01:00
check.h Updated copyright year to 2015 2015-01-03 12:14:58 +01:00
check64bit.cpp Fixed #6422 (symbol database: put function flags into a single flag variable) 2015-01-08 05:45:31 +01:00
check64bit.h Updated copyright year to 2015 2015-01-03 12:14:58 +01:00
checkassert.cpp Fixed #6422 (symbol database: put function flags into a single flag variable) 2015-01-08 05:45:31 +01:00
checkassert.h Updated copyright year to 2015 2015-01-03 12:14:58 +01:00
checkautovariables.cpp Updated copyright year to 2015 2015-01-03 12:14:58 +01:00
checkautovariables.h Updated copyright year to 2015 2015-01-03 12:14:58 +01:00
checkbool.cpp Make patterns compilable (mini refactoring) 2015-01-09 23:43:45 +01:00
checkbool.h Refactorization: Reduced chaos in CheckOther::classInfo() 2015-01-03 18:00:16 +01:00
checkboost.cpp Updated copyright year to 2015 2015-01-03 12:14:58 +01:00
checkboost.h Updated copyright year to 2015 2015-01-03 12:14:58 +01:00
checkbufferoverrun.cpp Two small refactorizations: 2015-01-10 21:03:21 +01:00
checkbufferoverrun.h Updated copyright year to 2015 2015-01-03 12:14:58 +01:00
checkclass.cpp Fixed #6422 (symbol database: put function flags into a single flag variable) 2015-01-08 05:45:31 +01:00
checkclass.h Updated copyright year to 2015 2015-01-03 12:14:58 +01:00
checkcondition.cpp Fixed #6422 (symbol database: put function flags into a single flag variable) 2015-01-08 05:45:31 +01:00
checkcondition.h Updated copyright year to 2015 2015-01-03 12:14:58 +01:00
checkexceptionsafety.cpp Refactorization: 2015-01-09 20:18:09 +01:00
checkexceptionsafety.h Refactorization: 2015-01-09 20:18:09 +01:00
checkinternal.cpp Updated copyright year to 2015 2015-01-03 12:14:58 +01:00
checkinternal.h Updated copyright year to 2015 2015-01-03 12:14:58 +01:00
checkio.cpp CheckIO: only report warnings when --enable=warning has been used 2015-01-06 15:08:25 +01:00
checkio.h CheckIO: only report warnings when --enable=warning has been used 2015-01-06 15:08:25 +01:00
checkleakautovar.cpp Move to global variables to file scope 2015-01-11 12:37:11 +01:00
checkleakautovar.h Updated copyright year to 2015 2015-01-03 12:14:58 +01:00
checkmemoryleak.cpp Refactorization: 2015-01-09 20:18:09 +01:00
checkmemoryleak.h New check: Use make_shared/make_unique (#5673) 2015-01-04 11:07:53 +01:00
checknonreentrantfunctions.cpp Updated copyright year to 2015 2015-01-03 12:14:58 +01:00
checknonreentrantfunctions.h Updated copyright year to 2015 2015-01-03 12:14:58 +01:00
checknullpointer.cpp Make patterns compilable (mini refactoring) 2015-01-09 23:43:45 +01:00
checknullpointer.h Updated copyright year to 2015 2015-01-03 12:14:58 +01:00
checkobsolescentfunctions.cpp Updated copyright year to 2015 2015-01-03 12:14:58 +01:00
checkobsolescentfunctions.h Updated copyright year to 2015 2015-01-03 12:14:58 +01:00
checkother.cpp Library: More strict matching of functions 2015-01-08 19:31:41 +01:00
checkother.h Improved check (#6391): Detect identical code in both branches of ternary operator 2015-01-03 18:01:49 +01:00
checkpostfixoperator.cpp Updated copyright year to 2015 2015-01-03 12:14:58 +01:00
checkpostfixoperator.h Updated copyright year to 2015 2015-01-03 12:14:58 +01:00
checksizeof.cpp CheckSizeof: only report warnings when --enable=warning has been used 2015-01-06 15:20:42 +01:00
checksizeof.h Updated copyright year to 2015 2015-01-03 12:14:58 +01:00
checkstl.cpp Fixed GCC warnings in checkstl.cpp 2015-01-04 14:32:20 +01:00
checkstl.h Updated copyright year to 2015 2015-01-03 12:14:58 +01:00
checkstring.cpp Fixed #6415 - FP stringCompare memcmp(ptr, ptr+offset, length). 2015-01-07 08:30:05 +01:00
checkstring.h Updated copyright year to 2015 2015-01-03 12:14:58 +01:00
checktype.cpp Updated copyright year to 2015 2015-01-03 12:14:58 +01:00
checktype.h Updated copyright year to 2015 2015-01-03 12:14:58 +01:00
checkuninitvar.cpp Fixed #6422 (symbol database: put function flags into a single flag variable) 2015-01-08 05:45:31 +01:00
checkuninitvar.h Updated copyright year to 2015 2015-01-03 12:14:58 +01:00
checkunusedfunctions.cpp Unused function check: Fix detection of func.usedOtherFile 2015-01-07 11:29:37 +01:00
checkunusedfunctions.h Updated copyright year to 2015 2015-01-03 12:14:58 +01:00
checkunusedvar.cpp Make sure we have a valid Variable pointer before dereferencing it 2015-01-14 23:00:28 +01:00
checkunusedvar.h Updated copyright year to 2015 2015-01-03 12:14:58 +01:00
checkvaarg.cpp Updated copyright year to 2015 2015-01-03 12:14:58 +01:00
checkvaarg.h Updated copyright year to 2015 2015-01-03 12:14:58 +01:00
config.h Refactorizations optimizing std::string usage: 2014-06-26 11:51:02 +02:00
cppcheck.cpp Fix typo in "internal error" message 2015-01-12 23:09:17 +01:00
cppcheck.h Fix typo in "internal error" message 2015-01-12 23:09:17 +01:00
cppcheck.vcxproj Change "obsolete" in all filenames into "obsolescent", and also update all references to such files. 2014-09-23 16:18:04 +02:00
cppcheck.vcxproj.filters Change "obsolete" in all filenames into "obsolescent", and also update all references to such files. 2014-09-23 16:18:04 +02:00
cxx11emu.h Updated copyright year to 2015 2015-01-03 12:14:58 +01:00
errorlogger.cpp Updated copyright year to 2015 2015-01-03 12:14:58 +01:00
errorlogger.h Updated copyright year to 2015 2015-01-03 12:14:58 +01:00
executionpath.cpp Uninitialized variables: bailout when ({..}) are used to avoid fp. it can be handled better. 2015-01-06 07:44:04 +01:00
executionpath.h Updated copyright year to 2015 2015-01-03 12:14:58 +01:00
lib.pri Revert "run dmake" 2014-09-23 21:04:31 +02:00
library.cpp Accept unknown elements in Library files, but print a warning. This fixes backward compatibility of libraries with older cppcheck versions 2015-01-10 22:18:57 +01:00
library.h Accept unknown elements in Library files, but print a warning. This fixes backward compatibility of libraries with older cppcheck versions 2015-01-10 22:18:57 +01:00
mathlib.cpp Updated copyright year to 2015 2015-01-03 12:14:58 +01:00
mathlib.h Updated copyright year to 2015 2015-01-03 12:14:58 +01:00
path.cpp Updated copyright year to 2015 2015-01-03 12:14:58 +01:00
path.h Updated copyright year to 2015 2015-01-03 12:14:58 +01:00
pcrerules.pri pro and pri files: remove unneeded empty lines, use spaces for consistency 2012-10-12 17:46:57 +02:00
preprocessor.cpp Fixed #6396 (There are false negatives when --include is used) 2015-01-03 18:22:52 +01:00
preprocessor.h Updated copyright year to 2015 2015-01-03 12:14:58 +01:00
settings.cpp Updated copyright year to 2015 2015-01-03 12:14:58 +01:00
settings.h Updated copyright year to 2015 2015-01-03 12:14:58 +01:00
standards.h Updated copyright year to 2015 2015-01-03 12:14:58 +01:00
suppressions.cpp Silence compiler warning about unused parameter 2015-01-07 16:30:30 +01:00
suppressions.h Updated copyright year to 2015 2015-01-03 12:14:58 +01:00
symboldatabase.cpp Destructor detected as constructor resulting in false variable not initialized warnings 2015-01-12 06:11:22 +01:00
symboldatabase.h Add bounds check to getVariableFromVarId() 2015-01-14 23:00:38 +01:00
templatesimplifier.cpp Updated copyright year to 2015 2015-01-03 12:14:58 +01:00
templatesimplifier.h Updated copyright year to 2015 2015-01-03 12:14:58 +01:00
timer.cpp Updated copyright year to 2015 2015-01-03 12:14:58 +01:00
timer.h Updated copyright year to 2015 2015-01-03 12:14:58 +01:00
token.cpp Library: Add <container> tag to Libraries, provide configuration for std::vector, std::deque, std::array and STL strings 2015-01-03 22:18:33 +01:00
token.h Refactorization: 2015-01-09 20:18:09 +01:00
tokenize.cpp Fixed #5906 (false negative: 'else if' expression is always false (use library to determine if function is pure)) 2015-01-10 12:21:55 +01:00
tokenize.h Updated copyright year to 2015 2015-01-03 12:14:58 +01:00
tokenlist.cpp Updated copyright year to 2015 2015-01-03 12:14:58 +01:00
tokenlist.h Updated copyright year to 2015 2015-01-03 12:14:58 +01:00
valueflow.cpp Library: More strict matching of functions 2015-01-08 19:31:41 +01:00
valueflow.h Updated copyright year to 2015 2015-01-03 12:14:58 +01:00
version.h Set version to 1.68.99/1.69 dev 2015-01-03 17:44:47 +01:00
version.rc Refactorized resource files: 2012-10-14 10:21:22 +02:00