cppcheck/test
Richard Quirk 665cdfabdc Warn when sizeof is used in strncmp ticket #2095
This checks for the case where the user thought sizeof(buf) gave the
size in bytes of 'buf' in code like the following:

  const char *buf = "Hello World";
  strncmp(buf, other, sizeof(buf));
2011-10-28 22:14:55 +02:00
..
options.cpp changed the astyle formatting flags 2011-10-13 20:53:06 +02:00
options.h changed the astyle formatting flags 2011-10-13 20:53:06 +02:00
redirect.h changed the astyle formatting flags 2011-10-13 20:53:06 +02:00
test.cxx renamed gui/test.cpp to test/test.cxx 2010-02-19 07:21:16 +01:00
test.pro test/test.pro: indentation update 2011-10-23 15:45:56 +02:00
test64bit.cpp changed the astyle formatting flags 2011-10-13 20:53:06 +02:00
testassignif.cpp changed the astyle formatting flags 2011-10-13 20:53:06 +02:00
testautovariables.cpp changed the astyle formatting flags 2011-10-13 20:53:06 +02:00
testboost.cpp Fixed #3232 (Check if container is modified inside BOOST_FOREACH) 2011-10-23 13:07:43 +02:00
testbufferoverrun.cpp Refactor readlink() buffer check to also handle readlinkat() 2011-10-24 21:23:18 +02:00
testcharvar.cpp changed the astyle formatting flags 2011-10-13 20:53:06 +02:00
testclass.cpp changed the astyle formatting flags 2011-10-13 20:53:06 +02:00
testcmdlineparser.cpp Test: Fixed testing 2011-10-23 10:22:10 +02:00
testconstructors.cpp changed the astyle formatting flags 2011-10-13 20:53:06 +02:00
testcppcheck.cpp changed the astyle formatting flags 2011-10-13 20:53:06 +02:00
testdivision.cpp changed the astyle formatting flags 2011-10-13 20:53:06 +02:00
testerrorlogger.cpp changed the astyle formatting flags 2011-10-13 20:53:06 +02:00
testexceptionsafety.cpp changed the astyle formatting flags 2011-10-13 20:53:06 +02:00
testfilelister.cpp changed the astyle formatting flags 2011-10-13 20:53:06 +02:00
testincompletestatement.cpp changed the astyle formatting flags 2011-10-13 20:53:06 +02:00
testmathlib.cpp changed the astyle formatting flags 2011-10-13 20:53:06 +02:00
testmemleak.cpp Test to close Ticket #1879 2011-10-25 22:38:23 +02:00
testnonreentrantfunctions.cpp Fix #3243 (Improve non reentrant function check) 2011-10-22 11:54:52 +02:00
testnullpointer.cpp added unittest for ticket #1780 2011-10-27 23:54:03 +02:00
testobsoletefunctions.cpp Fixed #3238 (Crash in obsolete functions check.) 2011-10-22 12:36:45 +02:00
testoptions.cpp changed the astyle formatting flags 2011-10-13 20:53:06 +02:00
testother.cpp Warn when sizeof is used in strncmp ticket #2095 2011-10-28 22:14:55 +02:00
testpath.cpp changed the astyle formatting flags 2011-10-13 20:53:06 +02:00
testpathmatch.cpp changed the astyle formatting flags 2011-10-13 20:53:06 +02:00
testpostfixoperator.cpp changed the astyle formatting flags 2011-10-13 20:53:06 +02:00
testpreprocessor.cpp Preprocessor: Unit test #error and missing includes. Ticket: #2131 2011-10-25 19:55:47 +02:00
testrunner.cpp Change year 2010 -> 2011 in license texts. 2011-01-09 21:33:36 +02:00
testrunner.vcproj Visual Studio: auto generated new visual studio project files 2011-10-23 15:42:02 +02:00
testrunner.vcxproj Visual Studio: auto generated new visual studio project files 2011-10-23 15:42:02 +02:00
testrunner.vcxproj.filters Visual Studio: auto generated new visual studio project files 2011-10-23 15:42:02 +02:00
testsimplifytokens.cpp Fixes false positives in test suite, adds unit test for void-simplification 2011-10-27 21:54:42 +03:00
teststl.cpp STL check: Detect return of implict string conversion + .c_str() 2011-10-26 22:14:47 +02:00
testsuite.cpp changed the astyle formatting flags 2011-10-13 20:53:06 +02:00
testsuite.h changed the astyle formatting flags 2011-10-13 20:53:06 +02:00
testsuppressions.cpp changed the astyle formatting flags 2011-10-13 20:53:06 +02:00
testsymboldatabase.cpp changed the astyle formatting flags 2011-10-13 20:53:06 +02:00
testthreadexecutor.cpp changed the astyle formatting flags 2011-10-13 20:53:06 +02:00
testtoken.cpp Document and test Token::concatStr() 2011-10-23 21:21:42 +02:00
testtokenize.cpp Fixes false positives in test suite, adds unit test for void-simplification 2011-10-27 21:54:42 +03:00
testuninitvar.cpp changed the astyle formatting flags 2011-10-13 20:53:06 +02:00
testunusedfunctions.cpp changed the astyle formatting flags 2011-10-13 20:53:06 +02:00
testunusedprivfunc.cpp changed the astyle formatting flags 2011-10-13 20:53:06 +02:00
testunusedvar.cpp changed the astyle formatting flags 2011-10-13 20:53:06 +02:00
testutils.h changed the astyle formatting flags 2011-10-13 20:53:06 +02:00