Commit Graph

118 Commits

Author SHA1 Message Date
Daniel Marjamäki 0e219ec24b Memory leak : Added test case "if10" which is similar to "if9" 2009-01-02 08:16:32 +00:00
Daniel Marjamäki 8ff5124233 Memory leak: Improved the checking of usage after free (if str is freed then "char c = str[0];" is illegal) 2009-01-02 08:00:12 +00:00
Daniel Marjamäki cc569d164d Memory leak: Renamed the test case "func12" to "if9" 2009-01-02 07:44:49 +00:00
Nicolas Le Cam 0c2f90dceb Memory leak : Add a new test that currently fail to highlight a regression 2009-01-02 01:29:07 +00:00
Nicolas Le Cam 2e439d8cea Memory leak : Completly fix false positive when using callbacks (Bug 2458510) 2009-01-02 00:05:08 +00:00
Reijo Tomperi 94923cca1a Refactoring: Prefer ++i; over i++; 2009-01-01 22:22:28 +00:00
Daniel Marjamäki b7b737c8f2 Memory leak : fixed false positive when there are recursive calls. (using memory after it has been freed) 2009-01-01 11:02:30 +00:00
Daniel Marjamäki 0b69a13205 Memory leak : Fixed false positives for "memory is used after it has been freed" 2009-01-01 10:14:52 +00:00
Daniel Marjamäki cf355c9e75 Memory leak : Fix to avoid false positives 2009-01-01 08:15:27 +00:00
Daniel Marjamäki 085e97fd36 Memory leak : Added check "Using resource after it has been released" 2008-12-31 09:02:45 +00:00
Daniel Marjamäki 7f1b98d7ae Memory leak : Fixed false positive for "list += data" 2008-12-28 20:57:50 +00:00
Daniel Marjamäki 76239fcdf9 Memory leak : Fixed a problem with a fclose inside an if condition 2008-12-28 19:57:50 +00:00
Daniel Marjamäki a01ebc819f Memory leak: Added check "TestMemoryLeak::throw2" (no false positive upon throw) 2008-12-27 11:29:38 +00:00
Daniel Marjamäki 6ef11f3f49 Memory leaks : Fixed false positive for "p" when there is a line such as "p2 = p + 1;" 2008-12-26 20:12:42 +00:00
Daniel Marjamäki 12a898c2fa Memory leak : Added TODO test case "class3". It currently fails 2008-12-26 09:13:49 +00:00
Daniel Marjamäki 492082f4f2 Memory leaks : Fixed false positive with return (Bug 2458436) 2008-12-25 08:27:07 +00:00
Daniel Marjamäki 20ae03d0d0 Memory leak : Fixed false positive when using callbacks (Bug 2458510) 2008-12-25 07:50:25 +00:00
Daniel Marjamäki a148e67168 Memory leaks : Reduce "if { dealloc ; return ; } if return ;" to "if return ;". Related with bug 2458532 2008-12-22 14:42:54 +00:00
Reijo Tomperi e272630604 Copyright and app name changed in each file 2008-12-19 21:15:06 +00:00
Nicolas Le Cam a5fa323a0b Formatting: uniformize end of lines. 2008-12-18 21:28:57 +00:00
Daniel Marjamäki ee5e20ed1f memory leak : fixed 2 bugs related to the testcases TestMemleak::if7 and TestMemleak::simple9 2008-12-17 19:21:39 +00:00
Daniel Marjamäki fc325ac98a Memory leak : Added a test case for future checking of struct members 2008-12-16 19:16:52 +00:00
Daniel Marjamäki b145bf3650 Memory leak : Fixed issue 2429936 - false positive reported on the break in the code "loop { dealloc ; alloc ; if break ; }" 2008-12-16 19:01:15 +00:00
Daniel Marjamäki 87de37bcb4 Memory leaks : Added test case for bug 2429936 2008-12-16 17:27:52 +00:00
Daniel Marjamäki a8661baac5 Memory leak : Fixed bug described in issue 2432631. False positive on something like this.. "alloc ; if(!var) alloc;" 2008-12-16 17:06:59 +00:00
Reijo Tomperi 3851c0f019 Refactoring: Renamed all files to lower case. Also added testfilelister.cpp which was forgotted from previous commit. 2008-12-14 20:49:55 +00:00
Daniel Marjamäki 1e9863d671 Tokenizer : Simplify function calls for functions that only returns a constant value 2008-12-13 17:57:36 +00:00
Daniel Marjamäki 3a1196e5f9 Tokenizer : Added function for simplifying casts 2008-12-13 16:42:39 +00:00
Nicolas Le Cam 661068bcd4 Formatting: uniformize end of lines. 2008-12-13 11:39:36 +00:00
Nicolas Le Cam 13bcb66c14 Add three memoryleak tests involving pointer casting that currently 'fail' 2008-12-13 11:19:09 +00:00
Daniel Marjamäki 46205bde8e Memory leak : Added a test case for false positive when using function call 2008-12-13 10:01:05 +00:00
Reijo Tomperi 8ad2c58c56 Slightly improved test case 2008-12-12 23:01:39 +00:00
Reijo Tomperi dd7e012509 Added test case for false positive, fails currently 2008-12-12 22:25:36 +00:00
Reijo Tomperi a44c21da08 testmemleak: Added 2 tests, fopen() and popen() should return resource leak, instead of memory leak 2008-12-12 19:21:34 +00:00
Daniel Marjamäki a66a91c22a code cleanups 2008-12-10 19:34:04 +00:00
Daniel Marjamäki 8bd4c4278a Memory leaks : Minor updates and refactoring 2008-12-10 19:15:41 +00:00
Daniel Marjamäki 68bcdb103c testmemleak : added a unit test that ensures that the variable id handling works correctly. But it's currently not working, and therefore it's commented out 2008-12-09 07:27:11 +00:00
Nicolas Le Cam aaabacfe87 Formatting: uniformize end of lines. 2008-12-09 00:49:32 +00:00
Nicolas Le Cam eb80c9786f Revert revisions 627 and 628 2008-12-08 23:41:34 +00:00
Nicolas Le Cam e8d2c7cfb3 Formatting: uniformize end of lines (part 2) 2008-12-08 23:10:13 +00:00
Nicolas Le Cam 625b77ec33 Formatting: uniformize end of lines. 2008-12-08 23:06:19 +00:00
Daniel Marjamäki ea57f2b820 Memory leaks : Handle assignments better - bug 2395524 2008-12-07 07:32:02 +00:00
Daniel Marjamäki 7c32b7b2bb Memory leaks: Better handling of "realloc". Fixing bug [ 2395262 ] 2008-12-06 13:33:22 +00:00
Daniel Marjamäki a8bf4d7e77 Memory leak: Refactoring and improvements of simplifycode etc 2008-12-01 18:52:40 +00:00
Daniel Marjamäki e968b42c38 Memory leaks: When "--debug" is given the checking will be different to
highlight problems in "getcode" and "simplifycode"
2008-12-01 07:50:36 +00:00
Daniel Marjamäki a7ece61734 Memory leak: The "do" must be handled differently. Made a first fix for it 2008-11-30 19:00:07 +00:00
Daniel Marjamäki f646684159 Memory leak: Fixed the test 'CheckMemoryLeak::func8' 2008-11-29 17:34:47 +00:00
Daniel Marjamäki 8c07a13cb6 Test Memory leak: Added a test case, currently a false positive is generated 2008-11-29 16:42:14 +00:00
Daniel Marjamäki 95c7e1a7d3 Memory leak: Moved the class member checking to the "--all" 2008-11-28 17:16:28 +00:00
Daniel Marjamäki 6fcbbf21ee Memory leaks: Reverted the sensitive checking in r536. And improved the
simplifycode function.
2008-11-27 07:27:50 +00:00