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 |
Reijo Tomperi
|
eebbc1b906
|
Fix #884 (False positive: Possible null pointer reference about a non-pointer)
http://sourceforge.net/apps/trac/cppcheck/ticket/884
|
2009-11-01 13:08:37 +02:00 |
Daniel Marjamäki
|
543d5cbf45
|
Fixed #831 (Exception safety: multiple new in a simple execution path)
|
2009-10-31 18:58:42 +01:00 |
Daniel Marjamäki
|
c83d9cd786
|
Fixed #843 (new check: Passing uninitialized array to strlen/strdup/strcpy/strcat/etc)
|
2009-10-31 16:36:56 +01:00 |
Daniel Marjamäki
|
395ce30d81
|
Fixed #877 (False positive: After insert, iterator may be invalid)
|
2009-10-31 15:27:33 +01:00 |
Daniel Marjamäki
|
a337708ae5
|
Fixed #430 (Tokenizer: handle templates with partial specialisation)
|
2009-10-31 12:34:52 +01:00 |
Daniel Marjamäki
|
266291baf4
|
Fixed #876 (false positive: uninitialized variable)
|
2009-10-31 10:30:32 +01:00 |
Daniel Marjamäki
|
45df223bfb
|
Fixed #875 (Uninitialized variable: initialization in subfunction)
|
2009-10-30 18:28:01 +01:00 |
Daniel Marjamäki
|
7dbf22aa3f
|
null pointer: fixed false positive when condition checks if pointer is ok
|
2009-10-30 15:14:24 +01:00 |
Daniel Marjamäki
|
feb065abc8
|
Fixed #867 (unused member function warning)
|
2009-10-30 15:00:13 +01:00 |
Daniel Marjamäki
|
2cf849a9b8
|
uninitialized variables: fixed false positive when switch is used
|
2009-10-30 14:52:20 +01:00 |
Daniel Marjamäki
|
765c824c6f
|
Uninitialized pointers: It's allowed to dereference uninitialized non-pointer variables
|
2009-10-30 14:31:37 +01:00 |
Daniel Marjamäki
|
44a9c9b458
|
Fixed #874 (false positive: uninitialized variable)
|
2009-10-30 14:06:40 +01:00 |
Daniel Marjamäki
|
768225bb1b
|
uninitialized variables: fixed false positives for member variables
|
2009-10-30 13:43:00 +01:00 |
Daniel Marjamäki
|
c424d4c8af
|
uninitialized variables: Added TODO testcase for removing false positives
|
2009-10-29 22:51:08 +01:00 |
Daniel Marjamäki
|
c6d7fad84f
|
uninitialized variables: added check
|
2009-10-29 21:34:43 +01:00 |
Reijo Tomperi
|
4a61bd0432
|
Fix #870 (The CheckClass::getVarList method detects 'const' as a variable name.)
http://sourceforge.net/apps/trac/cppcheck/ticket/870
|
2009-10-29 21:54:51 +02:00 |
Reijo Tomperi
|
504ae8e22d
|
Fix #868 (False positive - buffer access out of bounds in for loop)
http://sourceforge.net/apps/trac/cppcheck/ticket/868
|
2009-10-29 16:04:23 +02:00 |
Reijo Tomperi
|
9db22d9b48
|
Modify CheckBufferOverrun::checkGlobalAndLocalVariable() to use varid only.
Also add some TODO test cases.
|
2009-10-28 22:42:54 +02:00 |
Daniel Marjamäki
|
ffb5bbd4d1
|
Visual Studio: Manually edited the vcproj files. The absolute paths were replaced with relative paths
|
2009-10-28 20:15:56 +01:00 |
Daniel Marjamäki
|
cba94feded
|
Restructuring: Updated the Visual Studio project files. They are now generated by qmake
|
2009-10-28 17:37:38 +01:00 |
Daniel Marjamäki
|
0682db47a7
|
Memory leaks: Detect simple leak
|
2009-10-27 23:08:11 +01:00 |
Daniel Marjamäki
|
45b0758e71
|
Fixed #860 (Improve double delete detection)
|
2009-10-27 21:28:03 +01:00 |
Reijo Tomperi
|
0e695ea527
|
Test case for #863 (false positive memset array of pointers)
http://sourceforge.net/apps/trac/cppcheck/ticket/863
|
2009-10-27 20:54:35 +02:00 |
Reijo Tomperi
|
59acfbc4df
|
Fix #863 (false positive memset array of pointers)
http://sourceforge.net/apps/trac/cppcheck/ticket/863
Also fix test cases for 64 bit systems.
|
2009-10-27 20:23:45 +02:00 |
Daniel Marjamäki
|
2525b0131a
|
Restructuring: Updated test/test.pro
|
2009-10-26 22:20:25 +01:00 |
Daniel Marjamäki
|
09859c1019
|
refactoring the folder structure
|
2009-10-25 12:49:06 +01:00 |
Daniel Marjamäki
|
26a81e82cc
|
Fixed #253 (MemoryLeakInClass: False positive when memory is released in function, which is called from destructor)
|
2009-10-24 15:07:14 +02:00 |
Daniel Marjamäki
|
2c8a418c7e
|
Memory leaks: Added and fixed testcase TestMemleakInClass::class13
|
2009-10-23 20:04:47 +02:00 |
Daniel Marjamäki
|
88070b044b
|
Fixed #851 (Tokenizer: sizeof(*a) returns incorrect result)
|
2009-10-22 23:00:27 +02:00 |
Daniel Marjamäki
|
701d622ff0
|
Fixed #428 (Memory leak not detected with class)
|
2009-10-22 21:51:58 +02:00 |
Daniel
|
b80a954f55
|
Fixed #844 (Tokenizer: Simplify 'sizeof *ptr' correctly)
|
2009-10-21 21:08:00 +02:00 |
Reijo Tomperi
|
9d42194562
|
Fix #767 (Tokenizer: Known variable variable not simplified)
http://sourceforge.net/apps/trac/cppcheck/ticket/767
|
2009-10-20 23:58:46 +03:00 |
Daniel
|
e5f13b4de2
|
Fixed #839 (False positive: possible null pointer dereference after new)
|
2009-10-20 20:57:38 +02:00 |
Reijo Tomperi
|
6fbf873d25
|
Improved countSprintfLength() to detect more errors with %d.
Fixed some errors from test cases.
Added more test cases.
|
2009-10-20 00:48:29 +03:00 |
Daniel Marjamäki
|
a36c31628d
|
Fixed by #828 (Exception Safety: No throwing in destructors)
|
2009-10-19 20:57:11 +02:00 |
Daniel Marjamäki
|
857c95e7b5
|
Null pointers: Detect code where the assignment is conditional
|
2009-10-19 17:32:43 +02:00 |
Daniel Marjamäki
|
0e56e4cd37
|
STL: checking that containers are matching
|
2009-10-18 18:42:01 +02:00 |
Daniel Marjamäki
|
50e542c183
|
Fixed #827 (Tokenizer: sizeof is incorrectly simplified)
|
2009-10-18 18:06:32 +02:00 |
Daniel Marjamäki
|
58790eda82
|
Fixed #449 (false postive:: resource leak when using errno)
|
2009-10-18 13:17:05 +02:00 |
Reijo Tomperi
|
aca743c9ed
|
Fix #826 (False positive: sprintf with "f%s")
http://sourceforge.net/apps/trac/cppcheck/ticket/826
|
2009-10-18 13:58:48 +03:00 |
Daniel Marjamäki
|
cb76061118
|
unused struct member: bail out when casting
|
2009-10-17 19:31:14 +02:00 |
Daniel Marjamäki
|
2ec1b676ea
|
Pointer Aliasing: Handle pointer aliasing through the Tokenizer::simplifyKnownVariables
|
2009-10-17 18:21:13 +02:00 |
Daniel Marjamäki
|
2e9f7755ee
|
Unused struct members: bail out upon casting
|
2009-10-17 17:36:55 +02:00 |
Daniel Marjamäki
|
ffbf8e38ac
|
stl: after vector::insert, iterators may become invalid
|
2009-10-15 21:29:56 +02:00 |
Daniel Marjamäki
|
01af70cc88
|
Fixed #823 (Buffer overrun with memcpy)
|
2009-10-15 19:36:48 +02:00 |
Daniel Marjamäki
|
91de8f399b
|
Fixed #821 (Preprocessor: Wrong stringification in macros)
|
2009-10-14 20:40:17 +02:00 |
Reijo Tomperi
|
be90d34962
|
Buffer overrun errors behind function call should be possible errors.
|
2009-10-14 00:09:37 +03:00 |
Reijo Tomperi
|
3dc45903bc
|
Move buffer overrun errors behind --all
Fix one possible error issue with arrayindexoutofbounds
Make sure that possible errors are not shown without --all
|
2009-10-13 23:33:41 +03:00 |
Reijo Tomperi
|
a3a55547d8
|
Merge branch 'master' of git@github.com:danmar/cppcheck
|
2009-10-13 22:41:21 +03:00 |
Reijo Tomperi
|
4036dd5eff
|
arrayIndexOutOfBounds check is now done without --all
Errors with buf[1] are still listed only with --all due to false positive risk in them.
|
2009-10-13 22:39:51 +03:00 |
Daniel Marjamäki
|
a33b4744a3
|
stl: better checking for invalid iterator after push_back
|
2009-10-13 20:55:33 +02:00 |
Daniel Marjamäki
|
ed3860a0a7
|
Fixed #805 (False positive: Member functions not handled correctly)
|
2009-10-12 21:36:28 +02:00 |
Reijo Tomperi
|
b6999d010f
|
Fix #812 (False positive: sprintf with "%.4s" with --all)
http://sourceforge.net/apps/trac/cppcheck/ticket/812
|
2009-10-11 22:07:18 +03:00 |
Reijo Tomperi
|
59aad35137
|
Fix #694 (False (possible error) Buffer overrun with %-1s)
ashim2009 did most of the work
http://sourceforge.net/apps/trac/cppcheck/ticket/694
|
2009-10-11 21:36:22 +03:00 |
Reijo Tomperi
|
1401e3f668
|
Fix #810 (false positive: Division with signed and unsigned operators)
http://sourceforge.net/apps/trac/cppcheck/ticket/810
|
2009-10-11 17:52:35 +03:00 |
Reijo Tomperi
|
ea36632ca3
|
Fix #808 (Segfault in Preprocessor)
http://sourceforge.net/apps/trac/cppcheck/ticket/808
|
2009-10-10 23:23:48 +03:00 |
Slava Semushin
|
237dcb9533
|
Fixed #809 (Tokenizer: don't replace sizeof() of unknown type to zero)
http://sourceforge.net/apps/trac/cppcheck/ticket/809
|
2009-10-10 19:26:03 +07:00 |
Daniel Marjamäki
|
b67fe861b8
|
Added testcase for #807 (cppcheck crashes scanning ruby 1.9.1)
|
2009-10-10 10:13:56 +02:00 |
Daniel Marjamäki
|
67f53661a9
|
Fixed #806 (cppcheck crashes scanning openssl)
|
2009-10-09 21:11:29 +02:00 |
Reijo Tomperi
|
a078c9353d
|
More test cases for sprintf counter
|
2009-10-08 17:36:00 +03:00 |
Reijo Tomperi
|
5eee9af974
|
sprintf counter improvements
|
2009-10-08 16:27:46 +03:00 |
Reijo Tomperi
|
ad5d87ee14
|
Fix #802 (possible null pointer dereference reported for reference)
http://sourceforge.net/apps/trac/cppcheck/ticket/802
|
2009-10-08 11:55:37 +03:00 |
Reijo Tomperi
|
014ad937cf
|
Optimize speed and fix one false positive with stl checks.
|
2009-10-07 23:38:21 +03:00 |