Ben Rodes
939b2181d4
Wchar fp fixes ( #107 )
...
* Adding tests and updated expected file with false positives to correct.
(cherry picked from commit 26e58532ee )
* Modifications to the query to address false positives.
(cherry picked from commit cc24f1ed9f )
* Updating expected file, false positives now resolved.
(cherry picked from commit 92c8d39ba3 )
* Correct comment.
(cherry picked from commit 338ab96593 )
* Changing from hasIntermediateType to getABaseType.
(cherry picked from commit c4737c7fbb )
* Switching to looking for explicit declaration of unsigned char, to avoid cases where unsigned char is the default char width for `char`.
(cherry picked from commit 51e787b316 )
* Altering ordering for exists statement to be clearer.
(cherry picked from commit 31324fc778 )
* Altering exists predicate ordering to be clearer.
(cherry picked from commit c91f7f4918 )
* Changing name of predicate to be clearer, and removing an unused parameter.
(cherry picked from commit 318e75c094 )
* Removing unnecessary bracket/singleton set literal.
(cherry picked from commit 162519185d )
* Formatting.
(cherry picked from commit c496503053 )
2024-10-01 09:51:10 -04:00
Dilan Bhalla
14ce258807
2.19.0 upgrade
2024-09-18 14:28:42 -07:00
Dilan Bhalla
db7c90d3dd
2.18.3 upgrade
2024-09-03 00:02:09 -07:00
Simon Friis Vindum
e4ce003e87
C++: Fix tests and add an actual true negative
2024-08-21 09:44:45 +02:00
Simon Friis Vindum
1959e1929e
C++: Reuse bounded predicate in TaintedAllocationSize query
2024-08-19 08:23:32 +02:00
Dilan
0550ff1040
Merge tag 'codeql-cli/latest'
...
Compatible with the latest released version of the CodeQL CLI
2024-08-13 14:59:34 +00:00
Simon Friis Vindum
5e8ac5ef0d
C++: Update documentation for cpp/uncontrolled-allocation-size to clarify its scope
2024-08-13 16:27:04 +02:00
Ben Rodes
d4c0c4059d
Brodes/overflow buffer fixes ( #79 )
...
* Addreessing false positive due to incorrect use of getType
* Addressing false positive with strncpy.
* BufferAccess must be reachable. False positives observed where accesses occur in dead code.
* Formatting and updating tests.
2024-08-12 16:00:11 -04:00
Geoffrey White
d704fd9682
C++: Accept test changes caused by new CLI version.
2024-08-06 12:27:49 -04:00
Geoffrey White
bf66a787ab
C++: Accept test changes caused by new CLI version.
2024-08-06 16:45:48 +01:00
Jeroen Ketema
28702046aa
C++: Rename function to match what is actually being tested
2024-08-05 10:32:54 +01:00
Jeroen Ketema
bfae86e9e8
C++: Update test after extractor fix
2024-08-05 10:32:54 +01:00
Jeroen Ketema
59db802fa4
C++ Add test showing incorrect value categories for _Generics
2024-08-05 10:32:54 +01:00
Jeroen Ketema
9744c06933
C++: Expose explicit and explicit(bool) function specifiers
2024-08-02 15:39:18 +02:00
Jeroen Ketema
972d9ca2b8
C++: Add more deduction guide tests
2024-08-02 14:12:56 +02:00
Jeroen Ketema
4dcf67940c
C++: Add getTemplateClass to DeductionGuide
2024-08-01 20:54:53 +02:00
Geoffrey White
20672acb74
Merge pull request #17110 from geoffw0/memfree
...
C++: Improve cpp/memory-may-not-be-freed
2024-07-31 15:59:42 +01:00
Geoffrey White
4aea4c0323
C++: Simple fix.
2024-07-31 14:46:25 +01:00
Geoffrey White
c04428dedc
C++: Add test cases for the memory freed queries.
2024-07-31 14:03:56 +01:00
Mathias Vorreiter Pedersen
fe575df325
C++: Mark constexpr if as unevalauted.
2024-07-31 13:09:12 +01:00
Mathias Vorreiter Pedersen
4e62dc81d2
C++: Add constexpr if testcase.
2024-07-31 13:08:49 +01:00
Jeroen Ketema
f986484813
Merge pull request #17098 from jketema/deduction
...
C++: Update tests after extractor changes
2024-07-30 21:08:40 +02:00
Mathias Vorreiter Pedersen
ef0370b64e
C++: Respond to review comments.
2024-07-30 13:19:02 +01:00
Jeroen Ketema
5455a365d1
C++: Update tests after extractor changes
2024-07-30 13:52:23 +02:00
Mathias Vorreiter Pedersen
afc0d0a078
C++: Accept test changes.
2024-07-30 11:54:20 +01:00
Mathias Vorreiter Pedersen
f932e515a7
C++: Accept test changes.
2024-07-30 11:11:38 +01:00
Mathias Vorreiter Pedersen
8edf19adc0
C++: Add MaD model for 'std::format'.
2024-07-30 10:15:39 +01:00
Mathias Vorreiter Pedersen
ff788c93c0
C++: Add a model for 'std::format' and a failing test.
2024-07-30 10:13:39 +01:00
Alexandre Boulgakov
2396c3c798
C++: Update MaD tests with correct template parameter counting in the presence of packs.
2024-07-29 14:59:49 +01:00
Jeroen Ketema
e1329dff72
Merge pull request #16947 from github/calumgrant/attributes
...
C++: Update attributes test output
2024-07-26 21:05:46 +02:00
Mathias Vorreiter Pedersen
c0263bef5a
Merge pull request #17062 from MathiasVP/speed-up-alias-analysis-4
...
C++: Speed up alias analysis
2024-07-26 10:02:02 +01:00
Mathias Vorreiter Pedersen
6b68cf6bdc
Merge pull request #17076 from MathiasVP/add-missing-write-side-effect-to-remquo
...
C++: Add missing write side effect to `std::remquo`
2024-07-26 09:56:57 +01:00
Jeroen Ketema
a944922c97
C++: Add more explicit(bool) tests
2024-07-26 09:47:01 +02:00
Mathias Vorreiter Pedersen
b640bdccdc
C++: Accept test changes.
2024-07-25 17:13:10 +01:00
Mathias Vorreiter Pedersen
d2f5734ac5
C++: Add FP.
2024-07-25 17:08:47 +01:00
Jeroen Ketema
3e7a60c1a6
C++: Add additional test cases for explict and explicit(bool) specifiers
...
Note that the `explict(bool)` specifiers currently do not end up in the
database.
2024-07-25 14:41:44 +02:00
Mathias Vorreiter Pedersen
099c282277
C++: Move large function to its own file.
2024-07-25 12:11:09 +01:00
Mathias Vorreiter Pedersen
c5da43e691
Merge pull request #16981 from MathiasVP/phi-escape-5-follow-up-2
...
C++: Alias analysis follow-up to #16907
2024-07-25 11:59:44 +01:00
Calum Grant
d8cc92068a
C++: Update attributes test output
2024-07-24 17:48:35 +01:00
Mathias Vorreiter Pedersen
4a34dc125b
C++: Expand the macro manually to work around an extractor bug.
2024-07-24 15:51:54 +01:00
Mathias Vorreiter Pedersen
b3bffb6826
Merge branch 'main' into phi-escape-5-follow-up-2
2024-07-24 15:22:40 +01:00
Mathias Vorreiter Pedersen
5e484e4006
C++: Accept test changes.
2024-07-24 14:29:42 +01:00
Mathias Vorreiter Pedersen
28cff2ea20
C++: Add a testcase with many def/use pairs in alias analysis.
2024-07-24 13:46:31 +01:00
Mathias Vorreiter Pedersen
854a277ab5
Merge branch 'main' into more-alias-and-side-effect-models
2024-07-24 10:53:27 +01:00
Geoffrey White
eaf2949857
Merge pull request #17054 from geoffw0/scanf
...
C++: Fix false positives in cpp/incorrectly-checked-scanf
2024-07-24 10:51:25 +01:00
Geoffrey White
741a3289a1
Merge pull request #17055 from geoffw0/usefree
...
C++: More tests for cpp/use-after-free
2024-07-24 10:35:32 +01:00
Jeroen Ketema
acbca9c108
C++: Support destroying deletes
2024-07-24 08:21:01 +02:00
Geoffrey White
1456012b54
C++: Additional test cases for cpp/use-after-free.
2024-07-23 18:02:14 +01:00
Geoffrey White
4920039a00
C++: Test spacing.
2024-07-23 18:01:30 +01:00
Geoffrey White
6026f65f8b
C++: Fix FPs in cpp/incorrectly-checked-scanf.
2024-07-23 17:27:37 +01:00