Simon Martin
|
f43431408b
|
Ticket #7685: Properly handle function calls as argument to a dealloc function. (#853)
Add an optional extended description…
|
2016-12-29 13:17:46 +01:00 |
Daniel Marjamäki
|
85ae3adeb2
|
Fixed #5144 (FP old memleak - tree structure)
|
2016-12-27 08:12:37 +01:00 |
Daniel Marjamäki
|
1b21767954
|
Fixed #5666 (False positive when modifiying std::string by pointer)
|
2016-12-26 17:13:35 +01:00 |
Daniel Marjamäki
|
770abcf453
|
Fixed #5398 (False positive: Scope of variable can be reduced does not account for other variables not reduceable)
|
2016-12-26 14:14:40 +01:00 |
Daniel Marjamäki
|
c8a450c9be
|
uninitvar: Fixed a FP seen in daca2
|
2016-12-25 22:43:29 +01:00 |
Matthias Krüger
|
ecc91ba914
|
fix a couple of issues in shell scripts found by codacy.
|
2016-12-25 00:43:47 +01:00 |
PKEuS
|
ea53bd22b7
|
Fixed false positive returnTempReference with operator++ (#7874)
|
2016-12-22 11:49:59 +01:00 |
Daniel Marjamäki
|
df6ae9f3b4
|
Fixed #7847 (Can't detect shift negative values when some op is executed)
|
2016-12-22 09:40:19 +01:00 |
Daniel Marjamäki
|
d79688c40b
|
Fixed #7822 (False positive for uninitialized variable if array type is used)
|
2016-12-21 23:11:11 +01:00 |
Daniel Marjamäki
|
28af5c0379
|
Integer Overflow: Don't warn about left-shift expressions with negative result like '1<<31'. That is common practice.
|
2016-12-21 18:19:59 +01:00 |
Daniel Marjamäki
|
426d1b4196
|
Merge pull request #846 from simartin/ticket_7805
Ticket #7805: Ignore enumerators when simplifying known variables.
|
2016-12-21 17:58:48 +01:00 |
Daniel Marjamäki
|
f40bdddbab
|
ValueFlow: Better handling when casting calculation result
|
2016-12-20 23:09:50 +01:00 |
Daniel Marjamäki
|
f0d91fb74b
|
Fixed #7869 (False positive: Array index out of bounds)
|
2016-12-20 22:01:19 +01:00 |
Daniel Marjamäki
|
44ccbdedec
|
ValueFlow: Improved value for cast
|
2016-12-20 21:37:25 +01:00 |
Daniel Marjamäki
|
606bb78297
|
ValueFlow: Better handling of casts
|
2016-12-20 19:32:21 +01:00 |
Daniel Marjamäki
|
e14e86c103
|
ValueFlow: only set values in conditional code in subfunctions when sure
|
2016-12-20 11:06:20 +01:00 |
Daniel Marjamäki
|
807b653739
|
ValueFlow: Fix FP in for loops when 2nd expression is 0
|
2016-12-20 07:54:38 +01:00 |
Daniel Marjamäki
|
f1ad7368f6
|
ValueFlow: bool values
|
2016-12-19 21:21:18 +01:00 |
Daniel Marjamäki
|
aaf19c1e4f
|
Fixed #7839 (Prefix increment triggers parameter modification warning)
|
2016-12-19 15:25:36 +01:00 |
Daniel Marjamäki
|
f5ad7482a8
|
CheckBufferOverrun: Skip warnings about array index out of bounds in unions. Theoretically, the array is at least as large as the biggest union member.
|
2016-12-18 22:10:30 +01:00 |
Daniel Marjamäki
|
4558701c08
|
varid: don't generate varid and symboldatabase variable for function call parameter
|
2016-12-18 20:16:38 +01:00 |
Daniel Marjamäki
|
17aaecbd6b
|
ValueFlow: Improved handling of sizeof
|
2016-12-18 14:03:48 +01:00 |
Daniel Marjamäki
|
461e5cc5c9
|
CheckBufferOverrun: Moved check from simplified to normal. This fixes a FP in asterisk.
|
2016-12-18 11:14:05 +01:00 |
Daniel Marjamäki
|
72e4bc9d88
|
ValueFlow: skip values that cause false assertion condition
|
2016-12-17 21:23:14 +01:00 |
Frank Zingsheim
|
cb5a5e6a25
|
Improve Fix #6180 (Access of moved variable still allowed until function is called)
|
2016-12-17 16:42:46 +01:00 |
Frank Zingsheim
|
9a871d33f7
|
Improve Fix #6180 ("reset" and "clear" clears the move status)
|
2016-12-17 16:39:30 +01:00 |
Frank Zingsheim
|
f4ab45f13b
|
Improve Fix #6180 (Do not warn about move if it is part of a reassignment of the variable)
|
2016-12-17 16:39:30 +01:00 |
Simon Martin
|
5119ae84b8
|
Ticket #7805: Ignore enumerators when simplifying known variables.
|
2016-12-17 14:05:26 +01:00 |
Daniel Marjamäki
|
8cba02dc66
|
Readd test case I removed in b098d5fbd6
|
2016-12-11 21:24:12 +01:00 |
Daniel Marjamäki
|
31337dda27
|
ValueFlow: Better handling of && and || in for loop to avoid FP
|
2016-12-11 21:19:24 +01:00 |
Daniel Marjamäki
|
d4f2512421
|
Tokenizer::simplifyKnownVariables: Added bailout when pointer alias is simplified and loop is encountered
|
2016-12-11 19:12:23 +01:00 |
Frank Zingsheim
|
e0d4720e19
|
Fix #7829 (false-positive: knownConditionTrueFalse linked to virtual method)
Return values of virtual functions in valueflow are only possible values
since function might be overloaded.
|
2016-12-11 10:44:05 +01:00 |
Daniel Marjamäki
|
87abe1174f
|
floatConversionOverflow: Avoid warnings when 255.5 is converted to unsigned char etc.
|
2016-12-10 23:14:40 +01:00 |
Daniel Marjamäki
|
b098d5fbd6
|
ValueFlow: We need better handling of casts
|
2016-12-10 22:09:01 +01:00 |
PKEuS
|
120fe2e4d6
|
Fixed false positive: The function 'operatorstd::string' is never used. (#7853)
|
2016-12-08 13:54:54 +01:00 |
PKEuS
|
cfac3b457d
|
Several small refactorizations
|
2016-12-06 22:12:02 +01:00 |
Daniel Marjamäki
|
7fc9fbc746
|
synthetic: reduce controlflow testcases
|
2016-12-06 21:45:51 +01:00 |
PKEuS
|
40401534d7
|
Refactorized Library
|
2016-12-06 14:50:27 +01:00 |
PKEuS
|
2f6350a0d0
|
Refactorized Library
|
2016-12-06 14:09:28 +01:00 |
PKEuS
|
d665641a76
|
Refactorizations:
- use std::string::pop_back() and std::string::back()
- pass argument as const std::string&
- Moved iterator into for loop head
|
2016-12-05 14:50:01 +01:00 |
Daniel Marjamäki
|
5df8e7f50c
|
Fixed #7596 (ValueFlow: better handling for 'x*(1-x-1)')
|
2016-12-04 22:39:59 +01:00 |
Daniel Marjamäki
|
c12cb69cc2
|
ValueType: Handle function pointers
|
2016-12-04 16:02:50 +01:00 |
Daniel Marjamäki
|
9c69546d72
|
Fixed #7842 (Preprocessor::getConfigs: #error in #ifndef not handled well)
|
2016-12-03 11:59:48 +01:00 |
orbitcowboy
|
8a45c3192b
|
There is not need to clear a string directly after its creation.
|
2016-11-30 10:39:14 +01:00 |
PKEuS
|
36d12d7866
|
SymbolDatabase: Function::retDef should not point at "static" or "extern"
|
2016-11-28 17:23:39 +01:00 |
Stefan Weil
|
57b57428c2
|
Fix some typos in comments (found by codespell)
Signed-off-by: Stefan Weil <sw@weilnetz.de>
|
2016-11-27 11:40:42 +01:00 |
Daniel Marjamäki
|
b6cba4a55c
|
Fixed #7784 (Token: can't be both type and variable)
|
2016-11-26 22:39:47 +01:00 |
orbitcowboy
|
55ae961ac2
|
std.cfg and windows.cfg: Improved support for <use-retval/> for functions like ftell(), [f]get[w]c().
|
2016-11-26 21:31:15 +01:00 |
orbitcowboy
|
8a0f856e95
|
Fixed regression in test/cfg/std.c introduced by b0d09926fb .
|
2016-11-26 21:14:31 +01:00 |
Matthias Krüger
|
213589ee68
|
ValueFlow: don't perform UB when a function returns shifts of/by negative values. Fixes #7814.
|
2016-11-24 23:23:47 +01:00 |