Daniel Marjamäki
|
3169a2d215
|
astyle formatting
[ci skip]
|
2014-07-06 17:50:21 +02:00 |
amai2012
|
0ddd7752b5
|
Avoid crash reported in #5943 (using the example from duplicate ticket #5971)
Replace a few size_t/unsigned int by std::size_t
|
2014-07-06 14:48:24 +02:00 |
Daniel Marjamäki
|
a4a6f3e1be
|
Tokenizer: Removed Tokenizer::simplifyConditionOperator(). Using the AST and ValueFlow, it should be much easier to parse ?: than before.
|
2014-06-10 19:30:13 +02:00 |
Daniel Marjamäki
|
8cc1f664d8
|
Uninitialized member variable: Fixed false negative when struct is read
|
2014-05-10 20:20:55 +02:00 |
Daniel Marjamäki
|
4c344adcf1
|
Uninitialized struct member: fixed false negative when struct assignment is seen
|
2014-05-10 19:56:44 +02:00 |
Daniel Marjamäki
|
04cd261ee2
|
Fixed #5664 (false positive: (error) Uninitialized variable: j (Comma operator in for loop))
|
2014-04-21 10:32:29 +02:00 |
Daniel Marjamäki
|
c8ae1e4751
|
Fixed #5658 (false positive: (error) Uninitialized variable: s)
|
2014-04-10 15:59:37 +02:00 |
Daniel Marjamäki
|
9b1d058410
|
Fixed #5660 (false positive: (error) Uninitialized variable: result)
|
2014-04-10 06:40:53 +02:00 |
Daniel Marjamäki
|
71fda0ea0c
|
Fixed GCC warning about shadowed variable settings
|
2014-04-04 07:02:36 +02:00 |
PKEuS
|
7e4081f7f5
|
Treat syntaxError and cppcheckError as InternalErrors (throw as exception, #4268)
|
2014-03-27 13:15:21 +01:00 |
PKEuS
|
9b4b90f6a0
|
Avoid loading libraries multiple times in test suite
-> Massive speedup for test suite (especially on slow systems)
|
2014-03-24 09:59:05 +01:00 |
PKEuS
|
5f2067e401
|
Refactorized dead code elimination:
- Use library to get noreturn functions
- Fixed do-while simplification (#4940)
|
2014-03-23 10:59:41 +01:00 |
orbitcowboy
|
6507824a34
|
Added support for putchar() to std.cfg.
|
2014-03-20 05:49:38 +01:00 |
orbitcowboy
|
80e3b49cfc
|
Added support for ftell() and puts() to std.cfg.
|
2014-03-20 04:10:41 +01:00 |
orbitcowboy
|
30006cf06f
|
Added support for fputs() to std.cfg.
|
2014-03-20 02:13:41 +01:00 |
orbitcowboy
|
b37e9601c1
|
Added support for fgetc() to std.cfg.
|
2014-03-20 00:59:52 +01:00 |
Daniel Marjamäki
|
8de4246713
|
Uninitialized variables: Improved handling of function calls when struct members are checked
|
2014-03-20 06:48:17 +01:00 |
Martin Ettl
|
fe1b46c174
|
Extended std.cfg
|
2014-03-19 21:08:48 +01:00 |
Alexander Mai
|
29d401ff38
|
Fixed #3098 (false negative: unitialized variable being passed to strcoll())
|
2014-03-06 16:31:31 +01:00 |
Daniel Marjamäki
|
fd3a8a2a18
|
Update copyright
|
2014-02-15 07:45:39 +01:00 |
Daniel Marjamäki
|
0c47555423
|
CheckNullPointer: use library instead of hard coded info
|
2014-01-26 16:19:49 +01:00 |
Daniel Marjamäki
|
bc9ad08831
|
Fixed #5245 (false positive: Uninitialized variable (assignment inside ternary operator))
|
2014-01-25 10:12:50 +01:00 |
Daniel Marjamäki
|
30cae358d8
|
Removed the --value-flow flag. ValueFlow analysis will always be enabled from now on.
|
2014-01-17 18:07:05 +01:00 |
Daniel Marjamäki
|
e45a2e2c61
|
Fixed #5347 (False positive: uninitialized variable (try catch))
|
2014-01-14 06:24:09 +01:00 |
PKEuS
|
4f0121ee2f
|
Splitted simplification out of tokenize()
|
2013-12-30 17:45:28 +01:00 |
Daniel Marjamäki
|
6182394966
|
Uninitialized variables: Fixed false positive taking value of pointer that is allocated but not initialized
|
2013-12-25 14:00:27 +01:00 |
Daniel Marjamäki
|
26dfddac6b
|
UninitVar: Fixed false positive when checking if allocated pointer is null
|
2013-12-24 12:48:17 +01:00 |
Daniel Marjamäki
|
753559fff3
|
Uninitialized variables: Don't warn about try/catch exception variables
|
2013-12-24 07:39:15 +01:00 |
Daniel Marjamäki
|
661784a170
|
Fixed #5255 (False positive (error) Uninitialized variable: ptr2 - calling a static member function)
|
2013-12-23 16:50:27 +01:00 |
Daniel Marjamäki
|
e2fa6a291c
|
Uninitialized variables: Fixed false negatives for loop variables / pointer dereference
|
2013-12-23 12:27:00 +01:00 |
Daniel Marjamäki
|
80dec5a976
|
Uninitialized variables: Fixed FP when taking address of uninitialized variable
|
2013-12-13 20:10:22 +01:00 |
Daniel Marjamäki
|
7fe923bfc5
|
Uninitialized variables: Fixed FP when the variable is initialized in do-while condition
|
2013-12-13 13:27:01 +01:00 |
Daniel Marjamäki
|
3e6fbc6517
|
Fixed uninitialized variable FP after realloc if it fails. Related with ticket: #5240
|
2013-12-13 07:15:59 +01:00 |
Daniel Marjamäki
|
35189e80f2
|
Uninitialized variables: Fixed false positive for '*p=..'
|
2013-12-12 15:33:31 +01:00 |
Daniel Marjamäki
|
1b86615a69
|
Uninitialized variables: Fixed false positive for 'p=malloc; if (p) {}'
|
2013-12-12 11:44:07 +01:00 |
Daniel Marjamäki
|
4e7594748d
|
Uninitialized variables: Fixed false positive for 'p=malloc; if (python tools/daca2.py b)'
|
2013-12-12 09:17:41 +01:00 |
Daniel Marjamäki
|
9f62740e1d
|
Fixed #5236 (varid 0: vlc: src/misc/objects.c:126)
|
2013-12-12 08:44:00 +01:00 |
Daniel Marjamäki
|
a4f9cb78d5
|
Uninitialized variables: Fixed false positives when passing allocated pointer to function
|
2013-12-11 05:54:42 +01:00 |
Daniel Marjamäki
|
ef15e40de5
|
Uninitialized variables: error when passing uninit pointer to function
|
2013-12-10 18:36:16 +01:00 |
Daniel Marjamäki
|
be5c00d215
|
Uninitialized variables: check function arguments
|
2013-12-09 15:58:42 +01:00 |
Daniel Marjamäki
|
14a00046a3
|
Fixed #5207 (Struct uninitialized members useage is not giving error (malloc).)
|
2013-12-04 20:32:20 +01:00 |
Daniel Marjamäki
|
d8b25da73c
|
Fixed #4740 (False Positive: Uninitialised variable 'int *a[2][19]; int **b = a[0];')
|
2013-11-25 06:38:23 +01:00 |
Daniel Marjamäki
|
7fc07989a7
|
UninitVar: Fixed false positive 'data is allocated but not initialized' when there is assignment
|
2013-11-23 10:24:29 +01:00 |
Daniel Marjamäki
|
71e61fb1ed
|
Uninitialized variables: Fixed false positive when using ?:
|
2013-11-17 12:42:53 +01:00 |
Daniel Marjamäki
|
77e09d72a1
|
Uninitialized variables: Fixed false negatives when using ({})
|
2013-11-17 12:11:18 +01:00 |
Daniel Marjamäki
|
d342387b95
|
Uninitialized var: Fixed false negatives for self assignment
|
2013-11-16 18:07:33 +01:00 |
Daniel Marjamäki
|
cfd6b0c384
|
UninitVar: fixed false negatives for function calls
|
2013-11-16 12:02:21 +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
|
7996d609be
|
Fixed #5108 (false positive: uninitialized variable (assignment in function parameter))
|
2013-11-04 23:09:15 +01:00 |
Daniel Marjamäki
|
51ad9ab6ac
|
Fixed #4896 (FP Uninitialized variable on template function)
|
2013-10-26 18:39:40 +02:00 |
Felipe Pena
|
c37ba4cbcf
|
- Fixed false positive when using typeof/__alignof__
|
2013-10-12 13:46:14 -03:00 |
Daniel Marjamäki
|
e3b7bce72b
|
Fixed #4907 (False positive 'uninitStructMember' on structs with unions)
|
2013-09-30 06:35:31 +02:00 |
Daniel Marjamäki
|
698e9e2b59
|
reverted ee14ea4f . I think this fix was too generic. If there is a union in the struct then only the union members should be skipped.
|
2013-09-23 17:52:42 +02:00 |
Daniel Marjamäki
|
ee14ea4fc2
|
Fixed #4907 (False positive "uninitStructMember" on structs with unions)
|
2013-09-23 07:20:20 +02:00 |
Daniel Marjamäki
|
64454068ec
|
Fixed #4934 (false positive: Uninitialized variable (loop with inner condition '(x=1)'))
|
2013-09-23 06:07:01 +02:00 |
Lucas Manuel Rodriguez
|
acd65a6829
|
Fixed #4991: False Positive - Dangerous usage of 'arr' (not null-terminated)
|
2013-08-29 08:12:05 -03:00 |
PKEuS
|
a9a5dc0354
|
Updated to AStyle 2.03, require this version
|
2013-08-07 16:27:37 +02:00 |
Daniel Marjamäki
|
2a1af1acda
|
CheckUninitVar: Assertion for '} while (' after 'do {..' in debug builds. Bail out in release builds to avoid segfaults.
|
2013-07-28 12:41:38 +02:00 |
Daniel Marjamäki
|
8f332af849
|
Uninitialized variables: Avoid FP when using '?:'
|
2013-07-10 16:44:35 +02:00 |
Daniel Marjamäki
|
2ef0a40aec
|
Fixed #4893 (FP Uninitialized variable on sizeof of itself)
|
2013-07-06 08:52:47 +02:00 |
Daniel Marjamäki
|
ba23b65179
|
Fixed #4885 (FP Uninitialized variable when using comma)
|
2013-06-29 09:33:51 +02:00 |
Daniel Marjamäki
|
6997d38881
|
Uninitialized variables: fixed false positive in while loop
|
2013-06-27 18:28:00 +02:00 |
Daniel Marjamäki
|
6b01d2d5a8
|
Fixed #4747 (Can not find uninitialized variable (variable used in rhs in assignment))
|
2013-06-27 16:53:15 +02:00 |
Daniel Marjamäki
|
2265c61734
|
Fixed #4879 (false positive: uninitialized variable in inner for inside while (regression))
|
2013-06-26 17:02:57 +02:00 |
Daniel Marjamäki
|
cfd960d794
|
Fixed #3765 (false negative: unitialized variable)
|
2013-06-25 18:40:41 +02:00 |
Daniel Marjamäki
|
ae36472a1b
|
Fixed #4778 (FP: Uninitialized variable: av)
|
2013-06-14 07:21:53 +02:00 |
Daniel Marjamäki
|
2d955bb9a6
|
Uninitvar: Added TODO test case for false negatives. Related with #4652
|
2013-06-02 18:26:03 +02:00 |
Daniel Marjamäki
|
065853a59a
|
Fixed #4652 (False positive: variable value tracking into loop body)
|
2013-05-29 16:16:12 +02:00 |
Frank Zingsheim
|
bca751b9f4
|
Fixed #4773 (Regression: wrong detection of unitialized variable)
|
2013-05-06 18:45:00 +02:00 |
Daniel Marjamäki
|
bfb1bc50e3
|
Fixed #4760 (false negative: (error) usage of uninitialized variable (struct member))
|
2013-05-02 20:34:15 +02:00 |
Daniel Marjamäki
|
44cb070e13
|
Fixed #4737 (False positive: Uninitialized variable 'do_something(&((char*)&var)[0],1);')
|
2013-05-01 13:52:28 +02:00 |
Daniel Marjamäki
|
80cb2a9b20
|
Updated TestUninitVar test cases. They should not have unsimplified code.
|
2013-04-17 21:06:19 +02:00 |
Daniel Marjamäki
|
7fdaba43ed
|
Uninitialized variables: Fixed fp when initializing struct with function in loop body
|
2013-04-10 20:46:44 +02:00 |
Daniel Marjamäki
|
96a5429cee
|
Uninitialized variables: Assume that function initializes struct if it is unknown if it does
|
2013-04-10 20:04:32 +02:00 |
Daniel Marjamäki
|
4c8b17c040
|
Fixed #4717 (False positive: Uninitialized variable inside ({..}))
|
2013-04-09 17:02:11 +02:00 |
Daniel Marjamäki
|
894a2435ae
|
Fixed #4718 (False positive: unititialized variable (value flow))
|
2013-04-08 19:34:39 +02:00 |
Daniel Marjamäki
|
c9469993e2
|
Uninitialized variables: Fixed false positives when using sizeof inside loop
|
2013-03-22 08:10:46 +01:00 |
Daniel Marjamäki
|
a79354d51c
|
Uninitialized variables: Fixed false positive when taking address of uninitialized array that is a struct member
|
2013-03-20 16:59:45 +01:00 |
Ettl Martin
|
1b9c1c03fa
|
unittests: removed not needed '\n' at the end of testcases.
|
2013-03-20 15:36:16 +01:00 |
Daniel Marjamäki
|
1f04e2c228
|
Fixed #4439 (False positive: Uninitialized variable (casting address))
|
2013-03-13 17:32:47 +01:00 |
Daniel Marjamki
|
ee435bf885
|
Fixed #4600 (False positive Uninitialized struct member when using it as 'out parameter')
|
2013-02-23 15:57:58 +01:00 |
Daniel Marjamäki
|
382d7a10e8
|
Uninitialized variables: improved checking of c++ code
|
2013-02-15 18:13:47 +01:00 |
Daniel Marjamäki
|
28e38a9e56
|
Fixed #4519 (false positive: (error) Uninitialized variable: eax (inline assembly usage))
|
2013-02-12 15:59:23 +01:00 |
Daniel Marjamäki
|
75cf951c56
|
add return value to test case
|
2013-02-11 18:39:03 +01:00 |
Daniel Marjamäki
|
442db6cdf9
|
Fixed #4569 (False Positive: Uninitialised variable)
|
2013-02-11 18:31:14 +01:00 |
Daniel Marjamäki
|
94f1d34dcb
|
Fixed #4560 (false positive: (error) Uninitialized variable: s)
|
2013-02-11 17:05:59 +01:00 |
Mathias De Maré
|
dfd557888d
|
Fixed #4565 (false positive: dangerous usage (not null-terminated))
|
2013-02-10 13:36:40 +01:00 |
Frank Zingsheim
|
5144307642
|
Raise syntax error for if-condition without parentheses according to #2518 #4171
|
2013-02-05 21:13:57 +01:00 |
Daniel Marjamäki
|
4ac5648656
|
Uninitialized struct: Fixed false positive in for loop
|
2013-02-05 17:01:46 +01:00 |
Frank Zingsheim
|
89560564ed
|
Refactoring: Add braces to an if-block, for-block, etc. in tokenizer.
Fixed #4521 (Tokenizer: Wrong braces for triple if else)
|
2013-02-02 16:01:34 +01:00 |
Daniel Marjamäki
|
3679a809dd
|
Uninitialized variables: fixed false positive
|
2013-01-28 18:08:20 +01:00 |
Daniel Marjamki
|
8738223e82
|
Fixed #4512 (Improve check: Uninitialized variable not detected)
|
2013-01-26 08:16:53 +01:00 |
Daniel Marjamäki
|
ae43b12bf1
|
Fixed #4511 (False positive: uninitialized struct member)
|
2013-01-25 18:20:57 +01:00 |
Robert Reif
|
3b08b410a2
|
Symbol database: Improved function lookup (a.b.f()). Ticket: #4494
|
2013-01-25 06:49:04 +01:00 |
Daniel Marjamäki
|
c235737b6c
|
Uninitialized variables: improved checking of loops
|
2013-01-24 19:41:15 +01:00 |
Robert Reif
|
cecd726b11
|
Symbol database: Improved function lookup for foo.f(). Ticket #4494
|
2013-01-23 16:53:55 +01:00 |
Robert Reif
|
ddb604d1a5
|
Symbol database: function lookup when :: is used. Ticket #4494
|
2013-01-22 06:55:25 +01:00 |
Daniel Marjamki
|
c478a3214f
|
Uninitialized variables: Added TODO test case (while)
|
2013-01-20 18:40:24 +01:00 |
Daniel Marjamki
|
76534ccd1b
|
Uninitialized struct member: Fixed false negatives for return statements
|
2013-01-20 17:54:32 +01:00 |
Daniel Marjamki
|
e63f2c3b5b
|
Uninitialized struct member: Avoid false positive when struct member is passed by address
|
2013-01-20 13:12:40 +01:00 |