Commit Graph

27689 Commits

Author SHA1 Message Date
George Sokianos f158163f08 Updated the Makefile.os4 2024-01-09 21:21:54 +00:00
George Sokianos 620ff8a8a8 Merge branch 'amigaos_2.13.0' into amigaos 2024-01-09 21:14:55 +00:00
Daniel Marjamäki da29903ffc Makefile: run 'dmake --release' 2023-12-23 07:29:47 +01:00
Daniel Marjamäki c05a390370 dmake: in run-dmake target run dmake with --release in a release Makefile () 2023-12-23 07:29:47 +01:00
Daniel Marjamäki fef1ede35a
releasenotes: cleanup, list safety critical issues [ci skip] () 2023-12-22 22:39:09 +01:00
Daniel Marjamäki c23521adda
set version 2.13.0 () 2023-12-22 21:59:40 +01:00
Daniel Marjamäki 1324a808b5 CI: fix --version tests () 2023-12-22 20:02:11 +01:00
Daniel Marjamäki 5968a418b9
AUTHORS: Add syohex [ci skip] () 2023-12-20 22:14:47 +01:00
Daniel Marjamäki 948f822943
2.13: Update copyright year [ci skip] () 2023-12-20 21:41:58 +01:00
Daniel Marjamäki afcbe65e0b
GUI: Update translations () 2023-12-20 21:37:23 +01:00
Daniel Marjamäki d36d26dcdd AUTHORS: Add dirkmueller [ci skip] 2023-12-19 20:45:59 +01:00
Dirk Mueller 76695f6be2
Fix (removeContradiction() Avoid use-after-free on multiple remove) ()
As reported in
https://sourceforge.net/p/cppcheck/discussion/general/thread/fa43fb8ab1/
removeContradiction() minValue/maxValue.remove(..) can access free'd
memory as it removes all matching values by iterating over the complete
list. Creating a full copy instead of a reference avoids this issue.

Signed-off-by: Dirk Müller <dirk@dmllr.de>
2023-12-19 20:44:22 +01:00
Daniel Marjamäki 49da3e3821
Fixed (IDE plugin integration is broken by checkers report) () 2023-12-19 15:55:29 +01:00
Eric Sesterhenn 3b1c701766
fix casing in variable name ()
The attribute movedValue is misspelled with an uppercase V, this leads
to errors when printing token values:

```
$ python3 runaddon.py test.py test.c.dump 
Checking test.c.dump...
Checking test.c.dump, config ...
line 2 str=""lala\n""
Traceback (most recent call last):
  File "/home/eric/tools/cppcheck/addons/runaddon.py", line 11, in <module>
    cppcheck.runcheckers()
  File "/home/eric/tools/cppcheck/addons/cppcheck.py", line 39, in runcheckers
    c(cfg, data)
  File "test.py", line 9, in func
    print(f'    {value}')
  File "/home/eric/tools/cppcheck/addons/cppcheckdata.py", line 907, in __repr__
    ", ".join(("{}={}".format(a, repr(getattr(self, a))) for a in attrs))
  File "/home/eric/tools/cppcheck/addons/cppcheckdata.py", line 907, in <genexpr>
    ", ".join(("{}={}".format(a, repr(getattr(self, a))) for a in attrs))
AttributeError: 'Value' object has no attribute 'movedValue'
```
2023-12-18 18:57:08 +01:00
Daniel Marjamäki 5aa1710dd0
Fix (Add safety mode that makes cppcheck more strict about critical errors) () 2023-12-18 18:26:23 +01:00
Oliver Stöneberg aa7629d969
aligned and optimized unique error handling ()
The handling in `CppCheck::reportErr()` and `Executor::hasToLog()` was
slightly different. I hope this can somehow be shared after the executor
reworking.

We were also using a very inappropriate container for the error list
which caused a lot of overhead.

`-D__GNUC__ --debug-warnings --template=daca2 --check-library -j2
../test/testsymboldatabase.cpp`

Clang 15
main process  `284,218,587` -> `175,691,241`
worker process `9,123,697,183` -> `8,951,903,360`
2023-12-17 21:59:06 +01:00
Daniel Marjamäki 34fb24d5a9
tools/extracttests.py: test code was not extracted properly for some tests () 2023-12-17 20:04:17 +01:00
Daniel Marjamäki 2932ab7592
Revert "Fixed (suppressing critical error, no indication to user that analysis of file fails) ()" ()
This reverts commit 7c316fb76d.
2023-12-17 19:13:14 +01:00
Daniel Marjamäki 1c7036f174
daca@home: update client version [ci skip] () 2023-12-17 16:38:52 +01:00
Daniel Marjamäki e7d0bb0009
daca@home: If cppcheck binary does not handle --unsafe-exitcode then execute without it [ci skip] () 2023-12-17 16:33:00 +01:00
Daniel Marjamäki 150ca20404
daca@home: use --unsafe-exitcode ()
the daca script will think that analysis crashed otherwise.
2023-12-17 16:11:38 +01:00
Daniel Marjamäki 7c316fb76d
Fixed (suppressing critical error, no indication to user that analysis of file fails) () 2023-12-17 15:42:17 +01:00
Oliver Stöneberg 086ceea333
fixed - memory leak with `-j2` and `--cppcheck-build-dir` () 2023-12-17 15:07:13 +01:00
Oliver Stöneberg f2622a673f
more cleanups in handling of ignored files () 2023-12-16 21:04:45 +01:00
Paul Fultz II ef27c29f27
Fix assertion failure in evalSameCondition () 2023-12-16 19:27:26 +01:00
olabetskyi 7191ed92b9
: Constant Error 'missingInclude' ()
Small adjustment of the log of the error.

- printed only when there was `--enabled=information` and no mentioning
of `missingInclude`
2023-12-16 18:38:30 +01:00
chrchr-github 3329e2f633
Fix FP knownConditionTrueFalse minus/negation confuses check () 2023-12-16 17:03:56 +01:00
Oliver Stöneberg 1135520aa8
run more tests in sanitizer workflows () 2023-12-16 17:03:03 +01:00
Daniel Marjamäki 22613dc7fb
Fixed (Misra.py: crashes in 17.7 checker when there is macro in variable declaration) () 2023-12-15 22:53:19 +01:00
Oliver Stöneberg c79ec60bee
fixed - auto-detection of Python in Visual Studio built binaries when `python3.exe` does not exist ()
I also suppressed the unwanted output from the `system()`.
2023-12-15 12:34:32 +01:00
olabetskyi 42547aac9e
REOPENED (false positive: unusedVariable with side effects in member initialization) () 2023-12-15 11:35:55 +01:00
chrchr-github 02fed7a266
Fix performance regression (hang) in 2.13dev ()
Co-authored-by: chrchr-github <chrchr@github>
2023-12-15 11:01:08 +01:00
Oliver Stöneberg 61bbcbeeee
fixed - Crash in `CTU::FileInfo::getErrorPath()` with Clang-built binary ()
This is actually just a workaround as it seems the issue is an upstream
Clang one.
2023-12-14 17:44:09 +01:00
Oliver Stöneberg fcb41e2533
small cleanup of handling of ignored paths () 2023-12-14 16:55:42 +01:00
olabetskyi 61127950b0
Fixed (false positive: unusedVariable with side effects in member initialization) ()
revert old changes
2023-12-14 15:16:30 +01:00
Oliver Stöneberg d7835f199f
astutils.cpp: optimized `followAllReferences()` a bit ()
Scanning `common/file.c` of the `xrdp` project with `--force --std=c11
--std=c++11 --inline-suppr --enable=warning`:

Clang 16 `4,208,373,435` -> `4,143,907,657`
Clang 16 (Boost) `3,837,285,621` -> `3,609,164,192`
GCC 13 `4,336,042,153` -> `4,331,137,034`
GCC 13 (Boost) `3,896,319,383` -> `3,795,013,995`
2023-12-13 21:08:22 +01:00
chrchr-github 8205b4a4b3
Fix FP nullPointerRedundantCheck with try/catch / FP knownConditionTrueFalse with nested try/catch () 2023-12-13 19:22:54 +01:00
Daniel Marjamäki bc5023775d
Partial fix for (cppcheck.cfg can't be loaded from relative paths anymore) () 2023-12-13 06:53:03 +01:00
chrchr-github b26b78b86d
Fix Assert failure in setSymbolic() () 2023-12-12 22:37:33 +01:00
chrchr-github 2c54f31bfe
Fix internalError while cppcheck tries to parse Clang AST () 2023-12-12 20:47:58 +01:00
chrchr-github 30e8814ecb
Fix Crash in executeMultiCondition() () 2023-12-11 17:15:21 +01:00
Daniel Marjamäki faafd93b89
createrelease: get_checkers.py should be executed before a release [ci skip] () 2023-12-11 16:27:54 +01:00
Oliver Stöneberg 7c456ac1f7
updated releasenotes.txt [skip ci] () 2023-12-11 15:40:14 +01:00
Daniel Marjamäki d695c6c766
Update tools/get_checkers.py and lib/checkers.cpp () 2023-12-11 15:18:19 +01:00
Paul Fultz II 243fa66bd3
Fix 12031: False positive: uninitialized variable () 2023-12-10 19:42:35 +01:00
chrchr-github 233e27b579
Add tests for #8399/#10646/#10833 () 2023-12-09 00:36:55 +01:00
Oliver Stöneberg 7452e681dd
fixed - de-duplicate input source files (regression) () 2023-12-08 22:17:22 +01:00
Daniel Marjamäki 1af83ad821
Fix (False negative: Uninitialized variable read in subfunction (regression)) () 2023-12-08 21:54:23 +01:00
chrchr-github f5109df632
Add tests for #9822/#9823 () 2023-12-08 21:20:10 +01:00
chrchr-github 735831fc54
Update releasenotes.txt [skip ci] () 2023-12-08 18:30:56 +01:00