Reijo Tomperi
|
39092150e2
|
Fix #763 (Tokenizer: Goto incorrectly simplified)
http://sourceforge.net/apps/trac/cppcheck/ticket/763
|
2009-10-01 10:25:32 +03:00 |
Reijo Tomperi
|
f9871c2d54
|
Fix #745 (false positive: possible null pointer dereference , while)
http://sourceforge.net/apps/trac/cppcheck/ticket/745
|
2009-09-30 21:42:14 +03:00 |
Reijo Tomperi
|
ec44f8f6c7
|
Fix #744 (False positive: (possible error) Array index out of bounds)
http://sourceforge.net/apps/trac/cppcheck/ticket/744
|
2009-09-30 15:51:33 +03:00 |
Reijo Tomperi
|
6ed727564c
|
Fix #759 (Tokenizer: Incorrect var id when two variables with same name)
http://sourceforge.net/apps/trac/cppcheck/ticket/759
|
2009-09-30 14:40:10 +03:00 |
Reijo Tomperi
|
7852d38f54
|
Fix #761 (Tokenizer: typedef inside class is incorrectly simplified)
http://sourceforge.net/apps/trac/cppcheck/ticket/761
|
2009-09-30 14:35:00 +03:00 |
Reijo Tomperi
|
bb1a9a07e4
|
Fix #760 (Tokenizer: Goto not simplified)
http://sourceforge.net/apps/trac/cppcheck/ticket/760
|
2009-09-30 14:30:53 +03:00 |
Reijo Tomperi
|
724c78fb4d
|
Fix #750 (cppcheck wants variable outside do-loop to be only inside loop)
http://sourceforge.net/apps/trac/cppcheck/ticket/750
Fix #758 (False positive on variable scope with boost foreach)
http://sourceforge.net/apps/trac/cppcheck/ticket/758
|
2009-09-30 00:56:43 +03:00 |
Reijo Tomperi
|
9d9d600d43
|
Changed simplifyConditionOperator() to create also {} around if and else
Fixed validate() in tokenizer.
|
2009-09-29 23:27:10 +03:00 |
Reijo Tomperi
|
1b1047a5e4
|
Fix #757 (Change message: (style) The class 'KClass' has no constructor)
http://sourceforge.net/apps/trac/cppcheck/ticket/757
|
2009-09-29 21:27:17 +03:00 |
Slava Semushin
|
88dd9846ae
|
Tokenizer::tokenize(): removed useless const_cast.
No functional change.
|
2009-09-30 00:37:56 +07:00 |
Daniel Marjamäki
|
12b29e35ad
|
Ashim Kapoor: deal with backspace better (#694)
|
2009-09-29 17:02:19 +02:00 |
Reijo Tomperi
|
63523316a2
|
Check nullpointer check is now executed without --style flag
Added TODO test case for nullpointer check
|
2009-09-29 16:38:05 +03:00 |
Reijo Tomperi
|
64f0f3b308
|
Fix #751 (if-condition considered redundant even with else-branch)
http://sourceforge.net/apps/trac/cppcheck/ticket/751
Fix also other issue with if(a.b) delete c.b;
Fix also other issue with if(a.b.c) delete a.b.c;
|
2009-09-29 00:18:40 +03:00 |
Daniel Marjamäki
|
311f6dc92e
|
Fixed #746 (False positive, Memory leak when goto is used)
|
2009-09-28 22:58:06 +02:00 |
Daniel Marjamäki
|
1427f0a2c7
|
memory leaks: fixed a TODO_ASSERT_EQUALS for a false positive
|
2009-09-28 22:41:45 +02:00 |
Reijo Tomperi
|
949ad462c7
|
Fix #739 (Pre-defined output format templates)
http://sourceforge.net/apps/trac/cppcheck/ticket/739
Patch from lanurmi. Slightly modified by me.
|
2009-09-28 22:48:27 +03:00 |
Reijo Tomperi
|
2d4404f030
|
Fix #754 (Tokenizer: transform modifier "signed" to "int")
http://sourceforge.net/apps/trac/cppcheck/ticket/754
Also fix int unsigned -> unsigned int
|
2009-09-28 21:25:05 +03:00 |
Slava Semushin
|
b9237db9a3
|
Fixed #753 (Tokenizer: don't simplify variables inside do {} while loop)
http://sourceforge.net/apps/trac/cppcheck/ticket/753
|
2009-09-28 22:15:31 +07:00 |
Daniel Marjamäki
|
a61abcbbc8
|
Fixed #728 (False positive, resource leak, when released in a loop)
|
2009-09-27 21:49:07 +02:00 |
Slava Semushin
|
342e71803f
|
src/checkbufferoverrun.cpp: fixed regression.
test suite was broken after my
e8c83613e4 commit.
|
2009-09-27 23:03:11 +07:00 |
Slava Semushin
|
e8c83613e4
|
Fixed #740 (False positive, buffer overrun with --all)
Regression since 07f41f4563 commit.
http://sourceforge.net/apps/trac/cppcheck/ticket/740
|
2009-09-27 22:50:59 +07:00 |
Slava Semushin
|
f62e5f1672
|
src/checkbufferoverrun.cpp: removed useless semicolon.
No functional change.
|
2009-09-27 22:14:58 +07:00 |
Slava Semushin
|
661ce78b69
|
Fixed #738 (False Buffer overrun with -a when i is increased by more than 1 inside loop body)
http://sourceforge.net/apps/trac/cppcheck/ticket/738
|
2009-09-27 22:14:51 +07:00 |
Reijo Tomperi
|
fdde2182b9
|
Fix GPL comments in all files. ">." was missing from the end.
|
2009-09-27 18:08:31 +03:00 |
Reijo Tomperi
|
9df2b84233
|
Remove redundant comparison
|
2009-09-27 17:53:09 +03:00 |
Slava Semushin
|
07f41f4563
|
Fixed #714 (False Buffer overrun with -a when i is increased by more than 1 in a loop)
http://sourceforge.net/apps/trac/cppcheck/ticket/714
|
2009-09-27 21:12:46 +07:00 |
Reijo Tomperi
|
d1f3953cce
|
Fix #720 (String length for strings like this "\x61" is calculated wrong)
http://sourceforge.net/apps/trac/cppcheck/ticket/720
|
2009-09-27 17:04:10 +03:00 |
Slava Semushin
|
7e2208b5cc
|
Detects invalid iterator inside for() when postfix form of increment used.
|
2009-09-27 15:10:21 +07:00 |
Slava Semushin
|
5285635354
|
Fixed #735 (Detects invalid iterator after push_back() when iterator declared inside for())
http://sourceforge.net/apps/trac/cppcheck/ticket/735
|
2009-09-27 14:59:19 +07:00 |
Slava Semushin
|
acdbb20c99
|
Detect buffer overruns when ?: use as sprintf() argument.
|
2009-09-27 00:40:58 +07:00 |
Slava Semushin
|
19ed8e9311
|
Fixed #729 (False positive: Buffer overrun when ? is used to select parameter)
http://sourceforge.net/apps/trac/cppcheck/ticket/729
|
2009-09-27 00:06:54 +07:00 |
Slava Semushin
|
50a34b8a37
|
Fixed #731 (False positive, strcpy copying a buffer with a null character)
http://sourceforge.net/apps/trac/cppcheck/ticket/731
|
2009-09-26 22:58:14 +07:00 |
Slava Semushin
|
6d56ab9df6
|
CheckBufferOverrun::count(): commented out debug message.
Added in 3da779725d commit.
|
2009-09-26 21:59:16 +07:00 |
Daniel Marjamäki
|
3da779725d
|
Ashim Kapoor: handle %i,%f,%d,%x,%X better (#694)
|
2009-09-26 16:19:18 +02:00 |
Slava Semushin
|
a919f4541a
|
Fixed #732 (Tokenizer: Incorrect simplification)
Regression since 58a9e05697 commit.
http://sourceforge.net/apps/trac/cppcheck/ticket/732
|
2009-09-26 17:02:13 +07:00 |
Daniel Marjamäki
|
0b3a139b3b
|
Fixed #710 (False positive: invalid vector iterator after push_back)
|
2009-09-26 11:49:09 +02:00 |
Daniel Marjamäki
|
482a2f9d95
|
Fixed #718 (False positive, resource leak when break in a loop before exit)
|
2009-09-26 07:19:22 +02:00 |
Reijo Tomperi
|
6a63742dde
|
Fix #730 (False positive, buffer overrun with strncpy)
http://sourceforge.net/apps/trac/cppcheck/ticket/730
|
2009-09-25 23:32:18 +03:00 |
Daniel Marjamäki
|
fd311e3c72
|
Fixed #678 (False positive: Unused private function produced by inner class)
|
2009-09-25 20:42:22 +02:00 |
Daniel Marjamäki
|
fe3c8cab9f
|
Ashim Kapoor: Added function that returns minimum size of format strings (#694)
|
2009-09-25 18:23:44 +02:00 |
Reijo Tomperi
|
2594f9b63f
|
Merge branch 'master' of git@github.com:danmar/cppcheck
|
2009-09-24 23:47:28 +03:00 |
Reijo Tomperi
|
16e55f4f89
|
Improve C style pointer cast detection
http://sourceforge.net/apps/trac/cppcheck/ticket/724
|
2009-09-24 23:46:08 +03:00 |
Daniel Marjamäki
|
cd94d50526
|
Memory leaks: fixed a TODO_ASSERT_EQUALS
|
2009-09-24 22:40:18 +02:00 |
Daniel Marjamäki
|
fa4e0a617e
|
Fixed #700 (False positive: Memory leak)
|
2009-09-23 22:42:07 +02:00 |
Daniel Marjamäki
|
36c838c0e2
|
Replaced UNIT_TESTING ifdef with _MSC_VER
|
2009-09-23 22:16:46 +02:00 |
Reijo Tomperi
|
62ccda5677
|
Fix #713 (Tokenizer: Simplify 0L)
http://sourceforge.net/apps/trac/cppcheck/ticket/713
Use MathLib to handle other variations of 0.
|
2009-09-23 22:44:52 +03:00 |
Reijo Tomperi
|
832481b36e
|
Changed some CppcheckExecutor functions and variables protected and virtual.
|
2009-09-23 22:27:07 +03:00 |
Slava Semushin
|
313479cf8d
|
Tokenizer::simplifySizeof(): use Token::getStrLength().
Fixed wrong result when string contains escaped quotes.
Correction for 0e729fedc0 commit.
|
2009-09-23 23:02:53 +07:00 |
Reijo Tomperi
|
ef09f3475c
|
Fix #713 (Tokenizer: Simplify 0L)
http://sourceforge.net/apps/trac/cppcheck/ticket/713
|
2009-09-23 00:23:11 +03:00 |
Daniel Marjamäki
|
a705815a51
|
updated version to 1.37
|
2009-09-22 20:57:24 +02:00 |
Daniel Marjamäki
|
0e729fedc0
|
Fixed #716 (segmentation fault: sizeof string)
|
2009-09-22 20:50:00 +02:00 |
Slava Semushin
|
610529ab69
|
Tokenizer::createLinks(): fixed typo in comment.
Since commit 1c01dd64f3 .
|
2009-09-22 23:36:12 +07:00 |
Daniel Marjamäki
|
ad92aa4c20
|
Fixed #715 (False positive: Resource leak when exit() after if loop)
|
2009-09-22 18:09:29 +02:00 |
Daniel Marjamäki
|
faac5bccd6
|
Fixed #702 (If you see this, there is a bug - varid was 0)
|
2009-09-22 17:49:13 +02:00 |
Reijo Tomperi
|
4d2a8608a8
|
Fix #706 (false positive: invalid number of character ((), can't process file)
http://sourceforge.net/apps/trac/cppcheck/ticket/706
|
2009-09-21 23:27:06 +03:00 |
Reijo Tomperi
|
0fff5a23bf
|
Fix #701 (false positive: Invalid deallocation)
http://sourceforge.net/apps/trac/cppcheck/ticket/701
|
2009-09-20 23:38:32 +03:00 |
Reijo Tomperi
|
1c01dd64f3
|
Fix #703 (Tokenizer: Create links for [])
http://sourceforge.net/apps/trac/cppcheck/ticket/703
|
2009-09-20 23:13:06 +03:00 |
Reijo Tomperi
|
2dc1fe5dc1
|
astyle fix
|
2009-09-20 22:42:43 +03:00 |
Daniel Marjamäki
|
d287a8e1d2
|
Version: 1.36
|
2009-09-20 14:14:01 +02:00 |
Slava Semushin
|
7236230228
|
Additional fix for better simplifying array declaration.
Pointed out by hyd_danmar@ in IRC.
Addressed to #696
|
2009-09-20 18:28:56 +07:00 |
Slava Semushin
|
5dee65048f
|
Fixed #690 (False positive: (possible error) Buffer overrun)
http://sourceforge.net/apps/trac/cppcheck/ticket/690
|
2009-09-20 17:54:19 +07:00 |
Slava Semushin
|
58a9e05697
|
Fixed #696 (Tokenizer: Simplify array declaration)
http://sourceforge.net/apps/trac/cppcheck/ticket/696
|
2009-09-20 17:28:15 +07:00 |
Reijo Tomperi
|
003e27c10e
|
Fix #667 (Preprocessor does not handle macro inside macro correctly)
http://sourceforge.net/apps/trac/cppcheck/ticket/667
|
2009-09-20 00:09:05 +03:00 |
Daniel Marjamäki
|
7f2ca357b0
|
Fixed #673 (False positive: null pointer dereference when dynamic cast is used)
|
2009-09-19 10:54:10 +02:00 |
Slava Semushin
|
4c30ab0b88
|
Token::stringifyList(): removed const modifier from parameter.
const useless in this case because argument passed by value.
No functional change.
|
2009-09-19 14:16:01 +07:00 |
Slava Semushin
|
5ab6c6cf80
|
Preprocessor: document that removeComments() may throws exception.
No code change.
|
2009-09-19 13:30:54 +07:00 |
Daniel Marjamäki
|
8f96c1992a
|
Fixed #688 (False positive in error category when --all is used)
|
2009-09-19 08:23:10 +02:00 |
Daniel Marjamäki
|
14c45c2118
|
Preprocessor: Skip BOM
|
2009-09-18 19:42:06 +02:00 |
Daniel Marjamäki
|
e4291a5966
|
Fixed #676 (The scope of variable can actually not be limited)
|
2009-09-17 21:05:12 +02:00 |
Daniel Marjamäki
|
1dc738b1ae
|
Fixed #677 (False positive: Unused private function produced by class member initialization)
|
2009-09-16 23:04:13 +02:00 |
Daniel Marjamäki
|
c5368581d9
|
Fixed by #675 (false positive: when operator is overloaded)
|
2009-09-16 20:07:03 +02:00 |
Reijo Tomperi
|
55fc473a00
|
Fix #684 (Tokenizer: (65536*72/100) incorrectly simplified to zero)
http://sourceforge.net/apps/trac/cppcheck/ticket/684
|
2009-09-15 23:38:54 +03:00 |
Daniel Marjamäki
|
5efedf85d6
|
Fixed #671 (False positive. Leak when loop is before exit)
|
2009-09-15 22:26:38 +02:00 |
Daniel Marjamäki
|
36c7108a28
|
Fixed #669 (possible style without --all + false positives)
|
2009-09-15 20:46:47 +02:00 |
Daniel Marjamäki
|
020321769c
|
Fixed #658 (Assertion 'begin != __null' failed)
|
2009-09-14 21:49:41 +02:00 |
Reijo Tomperi
|
2b6955dde5
|
Fix #670 (Tokenizer: Simplify '\0' into 0)
http://sourceforge.net/apps/trac/cppcheck/ticket/670
|
2009-09-14 21:42:56 +03:00 |
Daniel Marjamäki
|
e3119235e0
|
Tokenizer: Added a simple validation function that we can use during debugging
|
2009-09-13 15:35:37 +02:00 |
Daniel Marjamäki
|
62bdf032ac
|
simplifyTemplates: assert that braces and parantheses are handled correctly
|
2009-09-13 15:00:48 +02:00 |
Slava Semushin
|
fc7413e43d
|
Token::getStrLength(): fixed errors from valgrind.
Correction for 13b2edd61e commit.
|
2009-09-13 17:50:21 +07:00 |
Slava Semushin
|
0fb89f8afa
|
Fixed #645 (Tokenizer::simplifyCasts() breaks link() if casts function)
http://sourceforge.net/apps/trac/cppcheck/ticket/645
|
2009-09-13 17:31:32 +07:00 |
Slava Semushin
|
13b2edd61e
|
Token::getStrLength(): use Token::strValue().
No functional change.
|
2009-09-13 15:03:28 +07:00 |
Slava Semushin
|
1617abf053
|
Token::strValue(): added const modifier.
Correction for 241f585d34 commit.
No functional change.
|
2009-09-13 15:02:59 +07:00 |
Slava Semushin
|
eb6b5cfce6
|
Tokenizer::simplifyMathFunctions(): change return type to void.
Correction for 241f585d34 commit.
No functional change.
|
2009-09-13 14:53:15 +07:00 |
Daniel Marjamäki
|
c0ca375ef7
|
Fixed #478 (Warnings in Visual Studio build with -W4)
|
2009-09-13 09:03:48 +02:00 |
Reijo Tomperi
|
241f585d34
|
Fix #594 (division by zero not detected when using atol or atof)
http://sourceforge.net/apps/trac/cppcheck/ticket/594
Simplify atol("0") into 0 (and other atol() calls also)
|
2009-09-12 23:54:47 +03:00 |
Daniel Marjamäki
|
5df28c51c6
|
memory leaks: minor refactorings
|
2009-09-12 21:13:47 +02:00 |
Daniel Marjamäki
|
f4b6c822d3
|
Fixed #375 (new check: Detect when using 'this-x')
|
2009-09-12 15:25:02 +02:00 |
Daniel Marjamäki
|
ab4a7fdef2
|
Fixed #518 (False positive for leaks when function from err()-family used)
|
2009-09-12 14:11:17 +02:00 |
Daniel Marjamäki
|
7479b943cc
|
Fixed #644 (Tokenizer::simplifyComma: Wrong simplification in cast)
|
2009-09-12 08:12:00 +02:00 |
Daniel Marjamäki
|
37dae83e06
|
More Fixing of #635 (Preprocessor: remove 'asm(...)')
|
2009-09-11 23:34:24 +02:00 |
Reijo Tomperi
|
ed1c9bed49
|
Fix ticket #632 (Mathlib isInt() identifies "330L" as not int)
http://sourceforge.net/apps/trac/cppcheck/ticket/632
|
2009-09-11 23:46:59 +03:00 |
Daniel Marjamäki
|
8837e0dcff
|
Simple fix for #635 (preprocessor: remove 'asm(...)')
|
2009-09-11 21:22:41 +02:00 |
Reijo Tomperi
|
9828117aff
|
Fixed some "is passed by value" errors from cppcheck source.
|
2009-09-10 22:22:57 +03:00 |
Reijo Tomperi
|
a6c809226e
|
Fix #656 (Improve const-correctness)
http://sourceforge.net/apps/trac/cppcheck/ticket/656
Applied slightly modified patch from elfring
|
2009-09-10 00:25:58 +03:00 |
Daniel Marjamäki
|
48846c008d
|
Fixed #650 ('possible style' pre-incrementing error shown without --all)
|
2009-09-08 21:41:11 +02:00 |
Daniel Marjamäki
|
80bf406a97
|
Settings: Added an 'append' command line flag that allows the user to provide extra information about functions. See ticket #260
|
2009-09-08 19:49:05 +02:00 |
Slava Semushin
|
572c206755
|
Refactoring: move code for sizeof() simplification to method.
Introduce and use Tokenizer::simplifySizeof() method.
No functional change.
|
2009-09-06 18:23:17 +07:00 |
Slava Semushin
|
587e96322d
|
Tokenizer(simplifyNestedStrcat): correctly set line numbers for new tokens.
Pointed out by aggro80@ in IRC. Thanks!
|
2009-09-06 17:33:55 +07:00 |
Daniel Marjamäki
|
535fe17ffd
|
Templates: Scaled up the handling of default values for template parameters (#638)
|
2009-09-06 08:22:45 +02:00 |
Reijo Tomperi
|
75a65a02a8
|
Fix another issue related to #647 (Crash during tokenizing (wrong) K&R function declaration)
http://sourceforge.net/apps/trac/cppcheck/ticket/647
|
2009-09-05 23:41:39 +03:00 |