Daniel Marjamäki
|
0dd17f9fad
|
Merge pull request #198 from simartin/ticket_5073
Ticket #5073: Don't crash upon invalid do-while loop.
|
2013-11-10 03:09:16 -08:00 |
Daniel Marjamäki
|
cadb284a3d
|
Refactored the AST checking of CheckOther::checkIncorrectLogicOperator()
|
2013-11-10 11:59:18 +01:00 |
Martin Ettl
|
babbee4e73
|
Fixed typos in comments, no functional changes.
|
2013-11-09 16:07:28 +01:00 |
Simon Martin
|
185b88c6e3
|
Ticket #5073: Don't crash upon invalid do-while loop.
|
2013-11-08 23:13:21 +01:00 |
Daniel Marjamäki
|
20b84fcdee
|
Null pointers: Don't warn when first argument to freopen() is NULL
|
2013-11-08 13:22:07 +01:00 |
Robert Reif
|
52df31b501
|
Fixed #5153 ((debug) Scope::checkVariable found variable ')')
|
2013-11-08 12:56:32 +01:00 |
Robert Reif
|
a6ef3a224a
|
Fixed #5151 (false negative: improper formatstring - vector::at())
|
2013-11-08 12:44:05 +01:00 |
Daniel Marjamäki
|
b0ce42565e
|
AST: Added experimental new implementations for CheckAssignIf::comparison, CheckOther::checkIncorrectLogicOperator and CheckOther::checkDuplicateExpression
|
2013-11-07 14:38:08 +01:00 |
orbitcowboy
|
43103c84d8
|
Checkother:memsetZeroBytes: removed not needed '\n' from verbose message.
|
2013-11-07 05:15:36 -08:00 |
orbitcowboy
|
3d47ae9463
|
checkother:memsetZeroBytes: improved verbose message.
|
2013-11-06 06:42:27 -08:00 |
orbitcowboy
|
86aa2a27ab
|
checkother: improved constness of local variables, no functional change.
|
2013-11-06 06:15:32 -08:00 |
Daniel Marjamäki
|
a572c0b728
|
AST : cleanup unused functions
|
2013-11-06 12:38:58 +01:00 |
Martin Ettl
|
4eba02d901
|
Checkbufferoverrun: improved constness of local variables, no functional changes.
|
2013-11-03 04:48:41 +01:00 |
Daniel Marjamäki
|
fb04c8ff84
|
Fixed #5107 (redundantAssignment when pointer changes)
|
2013-11-04 23:46:07 +01:00 |
Daniel Marjamäki
|
7996d609be
|
Fixed #5108 (false positive: uninitialized variable (assignment in function parameter))
|
2013-11-04 23:09:15 +01:00 |
orbitcowboy
|
929cda6696
|
fixed #5141: Tokenizer: Dereference before null check (Scan.coverity id 1061759)
|
2013-11-04 03:53:23 -08:00 |
Daniel Marjamäki
|
8ff412fcee
|
Fixed #5142 (False positive with floating-point special cases in conditions)
|
2013-11-04 11:56:43 +01:00 |
Daniel Marjamäki
|
dde46527f3
|
AST: Handle ternary operators
|
2013-11-04 11:44:54 +01:00 |
Daniel Marjamäki
|
de29991c11
|
AST: Rewrite using standard approach
|
2013-11-04 11:26:16 +01:00 |
Daniel Marjamki
|
9959c2866c
|
AST: fixed hang for ',&x..'
|
2013-11-03 15:05:58 +01:00 |
Daniel Marjamki
|
bcc8384a95
|
Fixed #5145 (False Positive: Variable 'A' hides enumerator with same name)
|
2013-11-03 09:34:48 +01:00 |
Daniel Marjamäki
|
5f0cfa0ee4
|
Fixed #4983 (False positive warning 'Possible null pointer dereference: lblList - otherwise it is redundant to check it against null.' with sizeof lblList[0])
|
2013-11-02 23:56:10 +01:00 |
Daniel Marjamäki
|
769b4617c3
|
Fixed #5142 (False positive with floating-point special cases in conditions)
|
2013-11-02 22:58:23 +01:00 |
Daniel Marjamäki
|
a50e5c2c23
|
Merge pull request #195 from simartin/ticket_5139
Ticket #5139: Properly handle recursive macro definitions
|
2013-11-02 11:21:13 -07:00 |
Daniel Marjamäki
|
c505f5ea23
|
Fixed AST problem for 'if ((a.b&c)==d){}'
|
2013-11-02 19:18:58 +01:00 |
Daniel Marjamäki
|
bbdfd8b5c7
|
Make it possible to create AST, by using the --ast flag
|
2013-11-02 18:37:35 +01:00 |
Daniel Marjamäki
|
f0a621a952
|
Tokenizer: Added MAXTIME so cppcheck can be compiled with a hard max time. Will be used for the daca2.
|
2013-11-02 17:31:14 +01:00 |
Simon Martin
|
95c08d5613
|
Ticket #5139: Properly simplify recursive macro definitions
|
2013-11-01 16:47:22 +01:00 |
Robert Reif
|
ac3b1c0611
|
Fixed #5134 (Memory leak below CheckIO::checkWrongPrintfScanfArguments())
|
2013-11-01 05:42:37 +01:00 |
Martin Ettl
|
083af88801
|
Checkio: removed redundant NULL-pointer check, introduced by me.
|
2013-11-01 00:18:13 +01:00 |
Martin Ettl
|
3e13408da2
|
Merge branch 'master' of https://github.com/danmar/cppcheck
|
2013-10-31 20:03:13 +01:00 |
Martin Ettl
|
897533ab93
|
Checkio: fixed potential NULL-pointer dereference (Coverity-ScanId: CID 1113428).
|
2013-10-31 20:03:05 +01:00 |
XhmikosR
|
a60252ce7b
|
Fix compilation error with VS after e446a28b3d .
|
2013-10-31 20:56:47 +02:00 |
Martin Ettl
|
5156481db4
|
Library: return false from load() when tinyxml::FirstChildElement() return a NULL pointer.
|
2013-10-31 19:49:36 +01:00 |
Daniel Marjamäki
|
e446a28b3d
|
Refactoring FileLister and Path so they don't depend on Library
|
2013-10-31 19:09:01 +01:00 |
Martin Ettl
|
c529de6e07
|
Library: tinyxml2::FirstChildElement() is capable of returning 0. This fixes a waring of scan.coverity(): CID 1113430 (#1 of 1): Dereference null return value (NULL_RETURNS)
|
2013-10-29 00:36:27 +01:00 |
Daniel Marjamäki
|
d3bd373798
|
Fixed #5131 (False Positive: %u in format string requires 'unsigned int' but the argument type is 'int'.)
|
2013-10-31 17:20:00 +01:00 |
Daniel Marjamäki
|
352c459e28
|
Merge pull request #194 from simartin/ticket_5121
Ticket #5121: Handle static variable declarations depending on one another
|
2013-10-30 22:09:44 -07:00 |
Alexander Mai
|
14787cde99
|
Fixed #5129 (FP:arithOperationsOnVoidPointer on void**)
|
2013-10-31 06:04:51 +01:00 |
Daniel Marjamäki
|
06c5bd0daa
|
Fixed #5128 (False positive zerodivcond 'a ? 1 / a : 0')
|
2013-10-30 16:51:00 +01:00 |
Simon Martin
|
d67722ebdf
|
Ticket #5121: Handle comma separated static variable declarations depending on one another
|
2013-10-30 15:48:00 +01:00 |
Simon Martin
|
463ef2e71e
|
Ticket #5120: New test case, that works now that #5125 is fixed
|
2013-10-30 10:15:03 +01:00 |
Simon Martin
|
052be76635
|
Ticket #5125: Avoid infinite recursion for recursive class definitions
|
2013-10-29 21:41:47 +01:00 |
Daniel Marjamäki
|
5c072993e3
|
CheckBool: Fixed false negative when assigning bool to pointer '; s.p = true; '
|
2013-10-29 16:16:52 +01:00 |
orbitcowboy
|
30984ff649
|
Tokenize: improved const correctness of local variables, no functional change.
|
2013-10-25 01:34:53 -07:00 |
orbitcowboy
|
76e092428a
|
Tokenize: improved const correctness of local variables, no functional change.
|
2013-10-25 01:31:55 -07:00 |
Daniel Marjamäki
|
514277e91b
|
Library: Fixed bug. Continue if there is no errors.
|
2013-10-27 17:38:39 +01:00 |
PKEuS
|
bd752cabcf
|
Let TinyXML2 handle fopen/fclose. Added testlibrary.cpp to VS10 solution
|
2013-10-27 17:32:38 +01:00 |
Daniel Marjamäki
|
e0244d343d
|
Library: Fixed resource leak
|
2013-10-27 17:17:54 +01:00 |
Daniel Marjamäki
|
569a29bc4a
|
Library: Added simple testing
|
2013-10-27 17:10:43 +01:00 |