Commit Graph

18407 Commits

Author SHA1 Message Date
Daniel Marjamäki 0a9d417266 add comments 2018-09-01 16:45:14 +02:00
Daniel Marjamäki 3cad3c901f Another patch to temporarily disable the followVariableExpression 2018-09-01 11:39:21 +02:00
IOBYTE 508e8c234b Fixed #8683 (Using deleted token with multiple template instantiations.) (#1353)
* Fixed #8683 (Using deleted token with multiple template instantiations.)

* Fixed #8321 (heap use after free: templatesimplifier)

* Add a flag to Token indicating that it has a pointer to it.

* Run dmake

* Fix one source of list pointers to deleted tokens.

Refactor TemplateSimplifier class to get access to template lists.
Remove many function parameters now that they are class variables.
Fix one source of list pointers to deleted tokens.
Add tests with no output to catch crashes.

* Run dmake again.

* Make 2 more functions private.

* Make requested changes.

* Missed one change request.

* Use TokenList rather than Tokenizer.

* Move TokenAndName constructor to cpp file so token.h is not needed in header file.
2018-09-01 11:26:10 +02:00
Daniel Marjamäki 12b7c9e597 Fix Cppcheck warning 2018-09-01 08:41:41 +02:00
Daniel Marjamäki a331206b44 Temporarily disable followVariableExpressions(), there are problems that should be fixed. 2018-09-01 08:32:06 +02:00
Daniel Marjamäki d5a9332684 triage: show url and filename in edit boxes 2018-09-01 07:36:58 +02:00
Daniel Marjamäki 59731d70e8 triage: set error line properly 2018-09-01 06:39:22 +02:00
Daniel Marjamäki f388c77042 Fixed #8721 (Regression: False positive array index out of bounds) 2018-08-31 18:25:43 +02:00
Daniel Marjamäki c7e5176284 Fixed #8061 (Problems with handling of --project argument) 2018-08-31 16:06:52 +02:00
Daniel Marjamäki 173c737a5c Fixed #8718 (Donate CPU: Optionally allow specifying a custom workfolder) 2018-08-31 14:29:15 +02:00
Daniel Marjamäki 5767a0ed6f Donate CPU: Added crash report 2018-08-31 14:28:01 +02:00
Armin Müller b9cd7368f5 Typos found by running "codespell" (#1355)
* Update astutils.cpp

* Update checksizeof.cpp
2018-08-30 19:51:39 +02:00
Daniel Marjamäki 7591616f43 Fixed #8710 (Update message duplicateExpression when operand is integer literal) 2018-08-30 18:28:34 +02:00
Daniel Marjamäki 27aae8d032 Fixed #8644 (crash (CheckBufferOverrun::checkGlobalAndLocalVariable): local function) 2018-08-30 10:04:07 +02:00
Daniel Marjamäki c1f436f7c0 Donate CPU: Try to handle crashes better 2018-08-29 22:07:48 +02:00
Daniel Marjamäki 1547059a21 triage: handle daca@home diffs better 2018-08-29 22:07:31 +02:00
Daniel Marjamäki 4ef59754a4 Donate CPU: Added a '--stop-time' argument 2018-08-29 11:08:56 +02:00
Daniel Marjamäki 50ded8d789 Donate CPU: Include 'elapsed time' in the output 2018-08-29 06:51:33 +02:00
Daniel Marjamäki eadb4226e9 Donate CPU: Try to fix utf-8 decode problem. Just skip invalid chars, we're not very interested in those. 2018-08-28 12:02:28 +02:00
Daniel Marjamäki ec5a13d351 Donate CPU: Fix old path 2018-08-27 18:44:17 +02:00
Daniel Marjamäki 4002fcd3e3 Donate CPU: Improved the server, now you can see diff 2018-08-27 18:21:16 +02:00
Daniel Marjamäki 6223204a06 Fixed #8708 (FP: Accessing an item in container that is empty) 2018-08-27 13:49:47 +02:00
Daniel Marjamäki 4378327c43 astyle formatting
[ci skip]
2018-08-27 13:48:46 +02:00
Paul Fultz II fc135e1087 Check if member function modifies the variable (#1350)
* Check if member function modifies the variable

* Check for const pointer

* Add test for const condition

* Add more null checking

* Add todo assert for FN
2018-08-27 11:09:09 +02:00
Simon Martin acb0b9f07e Ticket #8679: Add support for C++11 thread_local and GCC's (among others) __thread extension. (#1351) 2018-08-26 19:46:36 +02:00
Daniel Marjamäki bbebdf0ab4 Donate CPU: Updated the 'latest.html' report 2018-08-26 16:57:09 +02:00
Daniel Marjamäki 629639f6ae Donate CPU: Updated scripts 2018-08-26 16:47:20 +02:00
Daniel Marjamäki 6ec6f70f2d Donate CPU: Concentrate on the diff 2018-08-26 16:23:42 +02:00
Daniel Marjamäki b2f0bd315d Donate CPU: Diff results in the client 2018-08-26 13:42:01 +02:00
Daniel Marjamäki 08837b2232 Donate CPU: Use CRLF in HTTP responses 2018-08-26 11:17:18 +02:00
Daniel Marjamäki ad0ebd8f1a astyle formatting
[ci skip]
2018-08-25 21:32:52 +02:00
Daniel Marjamäki c65d79c0ec Donate CPU: Speedup server. Keep packageIndex in package-index.txt 2018-08-25 20:58:31 +02:00
Daniel Marjamäki 829a373416 Python cleanup 2018-08-25 20:43:20 +02:00
Daniel Marjamäki c7880e2c8d Donate CPU: Made client python3 compatible 2018-08-25 20:34:43 +02:00
Daniel Marjamäki 5da38e33c0 Donate CPU: Make server more robust 2018-08-25 20:00:04 +02:00
Daniel Marjamäki 7049249460 Donate CPU: Tried to make scripts more robust 2018-08-25 18:38:51 +02:00
Paul Fultz II a5f4c5d0eb Improve message for same expressions (#1349)
* Improve message for same expressions

* Update message
2018-08-25 14:25:31 +02:00
Daniel Marjamäki 18343d1122 Donate CPU: get package 2018-08-25 11:08:41 +02:00
Daniel Marjamäki 4ece582bed Donate CPU: looking at packages 2018-08-25 10:59:49 +02:00
Daniel Marjamäki 33b93cdd3a Donate CPU: send data in chunks 2018-08-25 10:25:05 +02:00
Daniel Marjamäki 48f5792ca1 Donate CPU: Speedup the latest report 2018-08-25 09:06:15 +02:00
Daniel Marjamäki efe40950c9 Donate CPU: Added report http://cppcheck.osuosl.org:8000/latest.html 2018-08-25 08:49:40 +02:00
Daniel Marjamäki 045ef9a715 Donate CPU: More updates. Run both 1.84 and head. 2018-08-24 21:07:50 +02:00
Daniel Marjamäki 28d1682a54 Donate CPU: Some fixes in donate-cpu.py 2018-08-24 18:49:11 +02:00
Daniel Marjamäki 921a1a0396 Donate CPU: add a short sleep after git clone/pull 2018-08-24 18:21:16 +02:00
Sebastian dce3281766
addons/cert.py: Add MSC30-C: Do not use rand() (#1348)
Add function isStandardFunction() that checks if the given function is a standard function.
Only when this function returns true for the currently checked rand() tokens it is reported as a violation.
Tests added for C and C++.
2018-08-24 15:05:50 +02:00
Daniel Marjamäki a460ba422f Donate CPU: Fix unresolved reference 2018-08-24 14:46:59 +02:00
Daniel Marjamäki 138e53aeb9 Donate CPU: Updated client script. Try to catch compile errors better. 2018-08-24 13:20:38 +02:00
Daniel Marjamäki 8c88f65fb2 Donate CPU: minor updates in server 2018-08-24 13:04:25 +02:00
Daniel Marjamäki b049203be7 Donate CPU: updated server 2018-08-23 22:13:53 +02:00