PKEuS
|
851c6e0ed5
|
Improved buffer overflow checking for scanf: %c with a width (#3494)
|
2016-05-22 14:00:26 +02:00 |
Daniel Marjamäki
|
dc2a92263a
|
Fixed #7426 (RFC: time to replace simplifyEnum?)
|
2016-04-22 06:02:54 +02:00 |
Daniel Marjamäki
|
00a584d8d1
|
astyle formatting
|
2016-04-22 06:01:34 +02:00 |
Roberto Martelloni
|
e89cd1b8a4
|
CWE mapping of unsafeClassCanLeak, zerodivcond, invalidPointerCast, redundantCopy, redundantAssignment, comparisonFunctionIsAlwaysTrueOrFalse, checkCastIntToCharAndBack, cstyleCast, passedByValue, clarifyCondition, exceptThrowInDestructor, exceptDeallocThrow, exceptRethrowCopy, catchExceptionByValue, fflushOnInputStream, seekOnAppendedFile, publicAllocationError
CWE mapping of unsafeClassCanLeak, zerodivcond, invalidPointerCast, redundantCopy, redundantAssignment, comparisonFunctionIsAlwaysTrueOrFalse, checkCastIntToCharAndBack, cstyleCast, passedByValue, clarifyCondition, exceptThrowInDestructor, exceptDeallocThrow, exceptRethrowCopy, catchExceptionByValue, fflushOnInputStream, seekOnAppendedFile, publicAllocationError
|
2016-04-12 19:29:40 +02:00 |
PKEuS
|
6d0c2f7253
|
Fixed false positive useClosedFile when noreturn function is called (#7359)
|
2016-01-31 10:39:35 +01:00 |
Daniel Marjamäki
|
5e10e680da
|
CWE: refactoring. use constants instead of magic numbers.
|
2016-01-25 20:01:48 +01:00 |
Roberto Martelloni
|
5ce69da02d
|
Mapped 26 errors to their CWEs ID.
|
2016-01-24 20:53:05 +00:00 |
Robert Reif
|
966d078dcc
|
CheckIO: Fix FN when using '%x' as format specifier for a 'signed int' variable
|
2016-01-15 09:29:29 +01:00 |
Lauri Nurmi
|
996c9244d8
|
Update copyright year to 2007-2016.
|
2016-01-01 15:34:45 +02:00 |
PKEuS
|
940d569980
|
Refactorization: Removed redundant %any% patterns.
|
2015-12-24 14:40:48 +01:00 |
PKEuS
|
8f22e4924c
|
Updated AStyle to version 2.05.1
Tweaked runastyle.bat a little bit.
|
2015-12-17 15:53:13 +01:00 |
Alexander Mai
|
f762affea0
|
Small refactoring: replace NULL by nullptr, remove redundant static keyword, Tokenizer::setVarId() uses const variable 'notstart'
|
2015-11-30 22:13:49 +01:00 |
PKEuS
|
e8522c7883
|
Small refactorizations:
- #include cleanup
- Use std::array instead of std::vector
- Do not create a stringstream to concatenate 4 strings
- Use std::cout instead of printf
|
2015-11-29 10:56:44 +01:00 |
Daniel Marjamäki
|
0f9d90d2be
|
Changed Copyrights. Removed my name.
|
2015-11-18 20:04:50 +01:00 |
PKEuS
|
eefea507b9
|
Use ValueFlow in CheckIO::checkWrongPrintfScanfArguments() (#6563)
|
2015-11-06 09:52:22 +01:00 |
PKEuS
|
3971f8625f
|
Fixed false positive seekOnAppendedFile if FILE* is reused (#6566)
|
2015-10-13 15:32:13 +02:00 |
Daniel Marjamäki
|
2c7c6b3e38
|
CheckIO: Try to use ValueType more
|
2015-10-11 17:35:54 +02:00 |
Daniel Marjamäki
|
37d9a95ef1
|
CheckIO: Refactoring. Split out CheckIO::checkFormatString() from CheckIO::checkWrongPrintfScanfArguments().
|
2015-10-10 20:08:15 +02:00 |
Daniel Marjamäki
|
6d256b01b6
|
CheckIO: Use ValueType::Type::LONGDOUBLE type also
|
2015-10-08 19:52:24 +02:00 |
Daniel Marjamäki
|
a500f6f703
|
Improved handling of 'long double' and address-of in ValueType. Removed Tokenizer::simplifyFloatCasts() to handle float casts better.
|
2015-10-08 19:50:10 +02:00 |
Daniel Marjamäki
|
be72b7413a
|
ValueType: Handling of originalTypeName
|
2015-10-07 20:24:17 +02:00 |
Daniel Marjamäki
|
604a9acb48
|
ValueType: Handling constness
|
2015-10-07 19:08:26 +02:00 |
Daniel Marjamäki
|
b77203a277
|
CheckIO: Handle AST pointer type better
|
2015-10-05 19:59:15 +02:00 |
Daniel Marjamäki
|
b9036c2ca8
|
AST types: Fix for 'long long' handling
|
2015-10-05 19:20:42 +02:00 |
Daniel Marjamäki
|
bc8f1b972e
|
CheckIO: Early return
|
2015-10-05 19:04:29 +02:00 |
Daniel Marjamäki
|
8f6bd7fd0d
|
Fixed #7014 (False positive for printf("%c", "hello"[0]))
|
2015-10-05 10:12:30 +02:00 |
Dmitry-Me
|
aa60358458
|
Temp variables, better names
|
2015-09-15 15:34:12 +03:00 |
PKEuS
|
ee4a5843bb
|
Some small refactorizations
|
2015-08-15 19:46:31 +02:00 |
PKEuS
|
4d80df2f4a
|
Added pointer to Type to Token (similar to Token::Variable() and Token::function()):
- Accessible via Token::type()
- Renamed former Token::type() to Token::tokType()
- Removed SymbolDatabase::isClassOrStruct()
|
2015-08-15 11:19:21 +02:00 |
PKEuS
|
b0bf69bae7
|
Fixed false positive #6763 and reordered conditions
Ran AStyle
|
2015-08-14 12:50:45 +02:00 |
Daniel Marjamäki
|
e578988832
|
invalidScanf: removed the checking for 'scanf crash with huge input data for old glibc'. new systems are not vulnerable to this bug anymore.
|
2015-08-14 08:03:46 +02:00 |
Dmitry-Me
|
d81776b8c8
|
Avoid deep copying std::string
|
2015-08-07 17:16:41 +03:00 |
PKEuS
|
a0890ecd2c
|
Fixed false positive: Do not print useClosedFile on arrays (#6823)
|
2015-07-20 22:40:19 +02:00 |
Alexander Mai
|
b3c7a3f798
|
Fix more (potential) multi-threading issues
|
2015-06-20 22:26:51 +02:00 |
Alexander Mai
|
eebb5b8c77
|
Fix some compiler warnings in checkio.cpp. Fix some (potential) multi-threading issues in checkinternal.cpp
|
2015-06-17 21:25:15 +02:00 |
orbitcowboy
|
06e818f89d
|
Running astyle, no functional change.
|
2015-06-17 09:09:23 +02:00 |
amai2012
|
33d7631ee3
|
Fix another Borlad-specific test by setting Windows platform type
Refactoring: make CheckIO::ArgumentInfo aware of language (C vs. C++) to perform some optimizations
|
2015-06-16 23:11:34 +02:00 |
Alexander Mai
|
d704e97203
|
Fix (potential) multi-threading issues by moving static local vars (non-POD-type) to file scope
|
2015-06-10 21:14:17 +02:00 |
Alexander Mai
|
f0bc300198
|
#6510 False positive performance warning for std::list::size(). Fix this and other similar false positives. Refactoring of Variable::isStlType(), use fail-safe std::set instead of plain array. Run astyle
|
2015-05-17 20:02:41 +02:00 |
Daniel Marjamäki
|
88f59ad7e8
|
Partial fix for #6656 (Allow that CWE is mapped for error message)
|
2015-04-25 17:48:11 +02:00 |
Simon Martin
|
e5745d7d4a
|
Restore build with libc++ and revert PR#228 and PR#562.
|
2015-04-12 20:29:49 +02:00 |
Matthias Krüger
|
42f0955e3f
|
Move more setting checks out of loops and use const bools instead. Reorder a few related checks.
Follow up to eedcb6abcb .
|
2015-04-10 14:31:19 +02:00 |
Matthias Krüger
|
eedcb6abcb
|
move setting flags checks out of for loops, make them const.
|
2015-04-07 07:23:28 +02:00 |
PKEuS
|
b2835051df
|
Refactorization: Renamed Token::Match pattern %var% to %name%, implement new pattern %var% which is true if varId > 0.
|
2015-01-31 12:32:04 +01:00 |
PKEuS
|
5c56e63996
|
Fixed false positive #6452: Handle member functions in CheckIO::checkFileUsage()
|
2015-01-27 21:52:52 +01:00 |
Daniel Marjamäki
|
228f5960fc
|
CheckIO: only report warnings when --enable=warning has been used
|
2015-01-06 15:08:25 +01:00 |
Thomas Jarosch
|
1ef1143609
|
Make local functions static
|
2015-01-05 01:25:49 +01:00 |
Daniel Marjamäki
|
ff11ba9847
|
Updated copyright year to 2015
|
2015-01-03 12:14:58 +01:00 |
Daniel Marjamäki
|
051d42ae6b
|
astyle formatting
|
2014-11-20 14:20:09 +01:00 |
orbitcowboy
|
f5d804f71a
|
running astyle
|
2014-11-20 10:13:03 +01:00 |