Daniel Marjamäki
|
0b09c36851
|
Fixed #1026 (false positive: buffer access out of bounds)
|
2009-12-05 11:41:30 +01:00 |
Daniel Marjamäki
|
84a6fe6b54
|
Fixed #1034 (change --enable to --enable=all)
|
2009-12-04 19:35:58 +01:00 |
Reijo Tomperi
|
54629ff221
|
Fix #1037 (tokenizing a nested do while, while loop fails)
http://sourceforge.net/apps/trac/cppcheck/ticket/1037
|
2009-12-04 00:06:03 +02:00 |
Daniel Marjamäki
|
48bb1fdc83
|
Eric Sesterhenn: Fixed #1032 (False positive resource leak with exit at end of function)
|
2009-12-03 19:19:20 +01:00 |
Daniel Marjamäki
|
96268b4caf
|
Fixed #1030 (wrong line number with goto)
|
2009-12-02 19:47:35 +01:00 |
Reijo Tomperi
|
f5c81429cb
|
Refactoring: Parse --enable values in Settings class
|
2009-11-30 23:48:58 +02:00 |
Daniel Marjamäki
|
153a13272c
|
ericsesterhenn: Fix #1028 (False positive resource leak)
|
2009-11-30 16:45:19 +01:00 |
Daniel Marjamäki
|
ded2e68c2e
|
Fix #1022 (False positive: uninitialized variable when using local struct)
|
2009-11-29 19:23:31 +01:00 |
Daniel Marjamäki
|
e6b5fe99f6
|
Fixed #1027 (Internal error: sizeof a++)
|
2009-11-29 17:25:35 +01:00 |
Daniel Marjamäki
|
e7d7507c65
|
Fixed #1020 (lib/tokenize.cpp:4615: bool Tokenizer::validate() const: Assertion 0 failed)
|
2009-11-29 12:14:42 +01:00 |
Daniel Marjamäki
|
a57af3b3e9
|
use checked STL in debugmode
|
2009-11-28 18:29:32 +01:00 |
Martin Ettl
|
03e7914c98
|
partial fix of ticket #997; added check for write() two testcases
|
2009-11-28 13:41:24 +01:00 |
Daniel Marjamäki
|
f75c9619d1
|
Fixed #1021 (Out-of-bounds access false positive)
|
2009-11-28 12:51:23 +01:00 |
Reijo Tomperi
|
2c51542cf1
|
Fix #1018 (strcat(strcat()) causes assertion in Tokenizer::validate)
Test case provided by povaddict
http://sourceforge.net/apps/trac/cppcheck/ticket/1018
|
2009-11-27 23:21:13 +02:00 |
Daniel Marjamäki
|
c94ecfe1a3
|
Fixed #1015 (SIGABRT: Tokenizer::validate for openttd/src/ai/ai_config.cpp)
|
2009-11-27 17:32:53 +01:00 |
Daniel Marjamäki
|
7616246597
|
Fixed #1014 (Preprocessor: Invalid preprocessing of '#define some_delete(x) delete x;')
|
2009-11-26 17:32:18 +01:00 |
Reijo Tomperi
|
12a87fa3a4
|
Fix #1007 (False positive array index out of bounds concerning a switch statement in a for loop)
Bailout if switch is found in for loop.
http://sourceforge.net/apps/trac/cppcheck/ticket/1007
|
2009-11-25 22:40:51 +02:00 |
Daniel Marjamäki
|
128b2b8c59
|
Fixed #989 (CppCheck crashes on Win XP when scanning large directories/subdirectories)
|
2009-11-23 18:59:50 +01:00 |
Daniel Marjamäki
|
9b397afeca
|
Temporary fix for #994 (cppcheck cannot check my sources with segfaulting)
|
2009-11-22 13:38:45 +01:00 |
Daniel Marjamäki
|
7f6f41fd53
|
Fixed #993 (Latest Git drop aborts at 63% of wine tree)
|
2009-11-22 09:06:39 +01:00 |
Daniel Marjamäki
|
092f64b77a
|
Fixed #982 (Preprocessor: detects and remove conditions which always true)
|
2009-11-21 19:53:07 +01:00 |
Reijo Tomperi
|
9bdf4502ed
|
Fix #995 (false positive: buffer access out of bounds when using fgets)
http://sourceforge.net/apps/trac/cppcheck/ticket/995
|
2009-11-21 15:45:52 +02:00 |
Reijo Tomperi
|
6417704577
|
Fix #985 (Detect buffer overrun with read())
http://sourceforge.net/apps/trac/cppcheck/ticket/985
|
2009-11-20 23:47:06 +02:00 |
Daniel Marjamäki
|
531d0fa685
|
Fixed #965 (Division by zero false positive with nested macros)
|
2009-11-20 20:42:28 +01:00 |
Slava Semushin
|
41b2a52915
|
Fixed #990 (Tokenizer::simplifyIfAddBraces() handle case where statement after if doesn't end by semicolon)
http://sourceforge.net/apps/trac/cppcheck/ticket/990
|
2009-11-21 01:40:46 +06:00 |
Daniel Marjamäki
|
91f7c15c24
|
Fixed #960 (Tokenizer::validate() assertion failure with mismatched brackets)
|
2009-11-20 20:10:42 +01:00 |
Daniel Marjamäki
|
7890589693
|
Fixed #912 (### Unlogged error at Tokenizer::syntaxError: Invalid number of character (())
|
2009-11-20 19:18:57 +01:00 |
Slava Semushin
|
5369965e55
|
Fixed #983 (Tokenizer::simplifyTypedef() incorrectly substitute type inside namespace)
http://sourceforge.net/apps/trac/cppcheck/ticket/983
|
2009-11-20 00:02:16 +06:00 |
Reijo Tomperi
|
7ddc4f4e02
|
Fix #971 (Preprocessor: Handle partial macro in macro)
http://sourceforge.net/apps/trac/cppcheck/ticket/971
|
2009-11-19 00:34:00 +02:00 |
Daniel Marjamäki
|
42ffea4f16
|
Fixed #968 (False positive when TEMP_FAILURE_RETRY used)
|
2009-11-18 17:17:37 +01:00 |
Reijo Tomperi
|
8f07e2711c
|
Added a few TODO test cases for #971 (Invalid number of characters (())
http://sourceforge.net/apps/trac/cppcheck/ticket/971
|
2009-11-18 00:21:21 +02:00 |
Reijo Tomperi
|
bd2ca8babd
|
astyle fix
|
2009-11-17 22:15:25 +02:00 |
Daniel Marjamäki
|
a3a3ff4349
|
fixed testcase so it's valid syntax
|
2009-11-17 19:06:53 +01:00 |
Slava Semushin
|
42c5025000
|
Fixed #970 (Tokenizer: Incorrect comparison order simplification)
Revert changes from 11cb7b4710 commit
for lib/tokenize.cpp (fixed it by another way).
Teach unsignedint() to expand "unsigned" in casts.
http://sourceforge.net/apps/trac/cppcheck/ticket/970
|
2009-11-18 00:05:18 +06:00 |
Daniel Marjamäki
|
d866c174cf
|
Fixed
|
2009-11-15 20:26:07 +01:00 |
Daniel Marjamäki
|
469a8e4032
|
Fixed #925 (uninitialized deletion not detected)
|
2009-11-15 20:01:57 +01:00 |
Reijo Tomperi
|
9275b49688
|
Fix #964 (Integer division by zero exception)
http://sourceforge.net/apps/trac/cppcheck/ticket/964
|
2009-11-15 17:44:30 +02:00 |
Daniel Marjamäki
|
2b1b7f78f5
|
Fixed #883 (Add new command line argument --enable)
|
2009-11-15 15:24:33 +01:00 |
Slava Semushin
|
6669a50634
|
Fixed #842 (out of bounds: when buffer is allocated with malloc)
http://sourceforge.net/apps/trac/cppcheck/ticket/842
|
2009-11-15 18:38:57 +06:00 |
Slava Semushin
|
3911dd79cb
|
Fixed #900 (Improve out-of-bounds check to detect error with "new char(x)")
http://sourceforge.net/apps/trac/cppcheck/ticket/900
|
2009-11-15 18:04:17 +06:00 |
Daniel Marjamäki
|
822f64ec9a
|
Fixed #953 (false positive: 'uninitialized variable' with function pointer)
|
2009-11-15 12:42:04 +01:00 |
Daniel Marjamäki
|
b5cbc509f3
|
Fixed #483 (False positive: found leak when foreach for lists used)
|
2009-11-15 10:30:00 +01:00 |
Daniel Marjamäki
|
14fd0154d2
|
memory leaks: simple code cleanup
|
2009-11-15 09:53:38 +01:00 |
Daniel Marjamäki
|
5dd7b054f9
|
Fixed #915 (false positive: memory leak for struct member (allocated in condition)
|
2009-11-15 09:28:08 +01:00 |
Daniel Marjamäki
|
ebf907cbc0
|
Fixed #936 (false positive: uninitialized variable '.. else return; .. ')
|
2009-11-14 20:37:54 +01:00 |
Slava Semushin
|
11cb7b4710
|
Fixed #961 (Tokenizer: call simplifyCasts() before removing "unsigned" keyword)
http://sourceforge.net/apps/trac/cppcheck/ticket/961
|
2009-11-14 17:01:59 +06:00 |
Daniel Marjamäki
|
fee96f3cd6
|
Fixed #944 (new false positives against Wine Git Tree)
|
2009-11-14 09:06:28 +01:00 |
Daniel Marjamäki
|
ec6d66ff45
|
Fixed #913 (false positive: uninitialized variable)
|
2009-11-14 08:00:17 +01:00 |
Daniel Marjamäki
|
a36c410d45
|
Preprocessor: When #error is encountered the result is an empty string => don't check configuration
|
2009-11-13 22:12:29 +01:00 |
Daniel Marjamäki
|
1187587521
|
Fixed #919 (possible memory leak not detected)
|
2009-11-13 20:22:28 +01:00 |
Slava Semushin
|
2ec5438186
|
Fixed #954 (Tokenizer: correctly simplify sizeof of class members)
http://sourceforge.net/apps/trac/cppcheck/ticket/954
|
2009-11-14 01:07:44 +06:00 |
Reijo Tomperi
|
c4244ac9e8
|
Fix #945 (Array index out of bounds not detected, because of "int const")
http://sourceforge.net/apps/trac/cppcheck/ticket/945
|
2009-11-12 23:49:39 +02:00 |
Reijo Tomperi
|
3d5760b149
|
Fix #947 (Errors not detected when size_t is used instead of int)
http://sourceforge.net/apps/trac/cppcheck/ticket/947
|
2009-11-12 23:31:13 +02:00 |
Reijo Tomperi
|
0518eed937
|
Fix #946 (False positive: Buffer access out-of-bounds)
http://sourceforge.net/apps/trac/cppcheck/ticket/946
|
2009-11-12 23:24:44 +02:00 |
Daniel Marjamäki
|
b2cec721c0
|
Fixed #951 (Preincremented struct member confused with numeric constant)
|
2009-11-12 22:16:24 +01:00 |
Reijo Tomperi
|
d2db4d3a27
|
Test case for #903 (segmentation fault of cppcheck)
http://sourceforge.net/apps/trac/cppcheck/ticket/903
|
2009-11-12 21:04:11 +02:00 |
Daniel Marjamäki
|
c337b4eb33
|
Fixed #950 (Bug in cppcheck tokenize.cpp)
|
2009-11-12 18:53:26 +01:00 |
Daniel Marjamäki
|
39614a699e
|
Uninitialized variables: detect uninitialized pointer array
|
2009-11-10 19:35:54 +01:00 |
Daniel Marjamäki
|
c301dc1907
|
Fixed #928 (false positive: member variable not initialized in constructor)
|
2009-11-10 19:30:37 +01:00 |
Daniel Marjamäki
|
b470ea06b8
|
Fixed #931 (Invalid interator false positive with identical variable names)
|
2009-11-10 19:07:04 +01:00 |
Daniel Marjamäki
|
e0b1303b50
|
Fixed #929 (Uninitialized variable false positive)
|
2009-11-10 18:05:55 +01:00 |
Daniel Marjamäki
|
51f983629b
|
Fixed #932 (false positive: Dereferenced iterator 'i' has been erased)
|
2009-11-10 17:20:20 +01:00 |
Daniel Marjamäki
|
d85fb9dd3d
|
unit testing: minor syntax updates
|
2009-11-09 20:40:30 +01:00 |
Daniel Marjamäki
|
1fe94d74b8
|
unit testing: minor syntax fixes
|
2009-11-09 20:34:36 +01:00 |
Daniel Marjamäki
|
41e59d8348
|
Fixed #832 (Exception Safety: deallocating member pointer and then throwing exception)
|
2009-11-08 09:54:08 +01:00 |
Daniel Marjamäki
|
4b04ed9ad9
|
Fixed #910 (false positive: uninitialized variable for array)
|
2009-11-08 07:31:01 +01:00 |
Daniel Marjamäki
|
52eb32eb5b
|
testbufferoverrun.cpp: fixed unit test error
|
2009-11-07 19:59:03 +01:00 |
Daniel Marjamäki
|
3b9b3b241e
|
testbufferoverrun.cpp: minor updates to make it work better as extracted code
|
2009-11-07 19:51:18 +01:00 |
Daniel Marjamäki
|
3bd36226d6
|
testbufferoverrun: minor updates to make the code more easily compilable
|
2009-11-07 18:03:33 +01:00 |
Daniel Marjamäki
|
d88c236efe
|
uninitialized data: minor fix to handle 'new char [' better
|
2009-11-07 14:54:12 +01:00 |
Daniel Marjamäki
|
60caefe069
|
uninitialized data: added more checking for allocated data
|
2009-11-07 09:10:15 +01:00 |
Daniel Marjamäki
|
0c8d327809
|
Fixed #907 (Tokenizer: known result of strlen)
|
2009-11-07 08:25:39 +01:00 |
Reijo Tomperi
|
b222ef89be
|
Fix #903 (false positive: buffer access out of bounds)
http://sourceforge.net/apps/trac/cppcheck/ticket/903
|
2009-11-07 00:58:33 +02:00 |
Daniel Marjamäki
|
77b676937d
|
cleanup in testbufferoverrun.cpp
|
2009-11-06 19:15:59 +01:00 |
Daniel Marjamäki
|
c561a36cc7
|
uninitialized variables: better checking of strncpy
|
2009-11-06 19:06:45 +01:00 |
Daniel Marjamäki
|
7397bfc765
|
Fixed #904 (false positive: uninitialized variable)
|
2009-11-06 16:50:02 +01:00 |
Daniel Marjamäki
|
53f7b12b4f
|
Fixed #902 (false positive: uninitialized variable when variable is initialized in macro)
|
2009-11-06 16:02:13 +01:00 |
Daniel Marjamäki
|
58c54d2ed4
|
Fixed #898 (Tokenizer: remove unneeded const after *)
|
2009-11-05 21:30:05 +01:00 |
Daniel Marjamäki
|
442584151b
|
Fixed #897 (false positive: uninitialized variable when assigning pointer to array to struct member)
|
2009-11-05 21:07:04 +01:00 |
Reijo Tomperi
|
de4ca924b5
|
Fixed #896 (False positive with --all when return value of open() is positive in a loop)
http://sourceforge.net/apps/trac/cppcheck/ticket/896
|
2009-11-05 00:58:15 +02:00 |
Daniel Marjamäki
|
141b91ae08
|
updated error message when memory leaks upon exception
|
2009-11-04 20:45:26 +01:00 |
Reijo Tomperi
|
9a55f4ca43
|
Add one more test case for #895 (false positive: Suspicious pointer subtraction)
|
2009-11-04 21:38:40 +02:00 |
Reijo Tomperi
|
80c66f8ebc
|
Fix #895 (false positive: Suspicious pointer subtraction)
http://sourceforge.net/apps/trac/cppcheck/ticket/895
|
2009-11-04 21:36:27 +02:00 |
Reijo Tomperi
|
00b62442b6
|
Fix #894 (Invalid line number in "Invalid number of character")
http://sourceforge.net/apps/trac/cppcheck/ticket/894
|
2009-11-03 22:21:28 +02:00 |
Daniel Marjamäki
|
c3dff9a6d3
|
Fixed #893 (False Positive: Uninitialized variable b in a[0] = b[0] = '\0';)
|
2009-11-03 21:02:16 +01:00 |
Daniel Marjamäki
|
68f63fdd75
|
Exception safety: added check for unsafe reallocation of member pointer
|
2009-11-03 20:26:52 +01:00 |
Daniel Marjamäki
|
616a760b6c
|
Exception Safety: detect unsafe multiple new in a execution path (#831)
|
2009-11-03 19:43:51 +01:00 |
Daniel Marjamäki
|
797e9aeaf5
|
Fixed #890 (false positive: Uninitialized variable when pointer takes the address to array)
|
2009-11-03 17:03:53 +01:00 |
Reijo Tomperi
|
7fc72484ec
|
Fix #881 (Tokenizer: Something seems to be wrong in Tokenizer::simplifyKnownVariables)
http://sourceforge.net/apps/trac/cppcheck/ticket/881
|
2009-11-03 00:07:15 +02:00 |
Daniel Marjamäki
|
87800185c4
|
STL: refactoring and fixing
|
2009-11-02 21:53:01 +01:00 |
Daniel Marjamäki
|
89d94895a4
|
Refactoring
|
2009-11-02 21:17:33 +01:00 |
Daniel Marjamäki
|
bc3b12db72
|
astyle formatting
|
2009-11-02 20:25:08 +01:00 |
Daniel Marjamäki
|
df3ffa2eda
|
STL: added check for dangerous usage of std::find (#829)
|
2009-11-02 20:24:38 +01:00 |
Daniel Marjamäki
|
8d57cef7f9
|
Fixed #764 (usage of unitialized variable not detected)
|
2009-11-02 19:58:49 +01:00 |
Daniel Marjamäki
|
169bcfcff2
|
Fixed #882 (false positive: uninitialized variable)
|
2009-11-02 18:31:22 +01:00 |
Daniel Marjamäki
|
4abbe9ffd4
|
Fixed #889 (false positive: uninitialized variable)
|
2009-11-02 16:28:15 +01:00 |
Daniel Marjamäki
|
3e4dd22eed
|
fixed todo testcase
|
2009-11-01 21:00:43 +01:00 |
Reijo Tomperi
|
618eed3d59
|
Fixed segmentation fault.
Had to change one test case to TODO for now.
|
2009-11-01 21:49:43 +02:00 |
Daniel Marjamäki
|
319cdc2b43
|
Fixed #880 (Tokenizer: The Tokenizer::simplifyTemplates doesn't handle recursive templates)
|
2009-11-01 19:03:52 +01:00 |
Daniel Marjamäki
|
fec7acdc27
|
Templates: Better handling of recursive templates
|
2009-11-01 15:56:00 +01:00 |