Dilan
878bd5b098
Merge tag 'codeql-cli/latest'
...
Compatible with the latest released version of the CodeQL CLI
2024-10-04 20:59:08 +00:00
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
Calum Grant
0ad2e193e5
C++: Update test case
2024-09-26 09:31:18 +01:00
Calum Grant
31684d2548
C++: Remove FPs in cpp/wrong-number-format-arguments due to BMN
2024-09-26 09:27:59 +01:00
Calum Grant
6a0212ea44
C++: Add regression test
2024-09-26 09:27:51 +01:00
Dilan Bhalla
14ce258807
2.19.0 upgrade
2024-09-18 14:28:42 -07:00
REDMOND\brodes
1005a89007
Updating test cases.
2024-09-05 15:25:23 -04:00
Ben Rodes
8ab22feae1
Update cpp/ql/test/query-tests/Security/CWE/CWE-119/semmle/tests/tests.cpp
...
Co-authored-by: Geoffrey White <40627776+geoffw0@users.noreply.github.com >
2024-09-05 10:07:19 -04:00
REDMOND\brodes
cc953c87d9
Added test case to demonstrate type error corrected in this branch.
2024-09-04 12:41:05 -04:00
REDMOND\brodes
e4d29905a9
Formatting and updating tests.
2024-09-04 11:16:24 -04:00
REDMOND\brodes
abd0a076a8
Addressing false positive with strncpy.
2024-09-04 11:16:21 -04:00
Dilan Bhalla
db7c90d3dd
2.18.3 upgrade
2024-09-03 00:02:09 -07:00
Jeroen Ketema
ae7bf6c97d
C++: Update expected test results after #17347
2024-09-02 21:17:55 +02:00
Simon Friis Vindum
ee6c255a7c
Merge pull request #17328 from paldepind/tweak-unbounded-barrier
...
C++: Tweak the `bounded` barrier
2024-09-02 14:30:44 +02:00
Simon Friis Vindum
660869e834
C++: Add test for cpp/uninitialized-local and va_copy
2024-09-02 13:25:02 +02:00
Simon Friis Vindum
e7f059ae55
C++: Tweak the bounded barrier
2024-08-29 10:32:31 +02:00
Simon Friis Vindum
edeefe5bb6
Merge pull request #17298 from paldepind/model-functions-that-dont-throw
...
C++: Add basic modeling of functions that don't throw
2024-08-28 19:50:31 +02:00
Simon Friis Vindum
128053e214
C++: Add basic modeling of functions that don't throw
2024-08-26 09:37:44 +02:00
Tom Hvitved
c92c96fa78
Data flow: Compute local big step relation per stage
2024-08-26 09:15:27 +02: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
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
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
Mathias Vorreiter Pedersen
b3bffb6826
Merge branch 'main' into phi-escape-5-follow-up-2
2024-07-24 15:22:40 +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
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
Geoffrey White
c3f2faff76
C++: Add another pattern I found in the wild.
2024-07-23 17:19:01 +01:00
Geoffrey White
a9f6b2110e
C++: Add new test cases for cpp/incorrectly-checked-scanf.
2024-07-23 15:27:22 +01:00
Geoffrey White
e467cc033e
Merge pull request #17037 from geoffw0/sizecheck
...
C++: Fix issue with cpp/suspicious-allocation-size
2024-07-23 14:47:17 +01:00
Geoffrey White
7b03f3268f
C++: Fix false positives.
2024-07-22 18:00:15 +01:00
Geoffrey White
45e92cec6a
C++: Extend tests for cpp/suspicious-allocation-size.
2024-07-22 17:34:49 +01:00
Geoffrey White
b4fa23d731
C++: Address false positive results in template instantiations.
2024-07-22 16:34:39 +01:00
Geoffrey White
8262330e4d
C++: Extend the placement new test cases for cpp/incorrect-allocation-error-handling.
2024-07-22 12:38:19 +01:00
Mathias Vorreiter Pedersen
7b8301ac7a
C++: Accept more test changes.
2024-07-17 15:44:52 +01:00
Mathias Vorreiter Pedersen
1c8e0c453c
C++: Fix more inconsistencies.
2024-07-17 15:44:50 +01:00
Mathias Vorreiter Pedersen
45ba0c3319
Merge pull request #16907 from MathiasVP/phi-escape-5
...
C++: Add a new `MemoryLocation` to represent sets of `Allocation`s
2024-07-17 15:44:04 +01:00
Mathias Vorreiter Pedersen
510bfb911a
C++: Accept test changes.
2024-07-16 13:05:45 +01:00
Mathias Vorreiter Pedersen
983acf23bc
C++: Add more FPs.
2024-07-16 13:04:42 +01:00
Mathias Vorreiter Pedersen
68e3be187a
C++: Accept test changes.
2024-07-16 13:03:22 +01:00
Mathias Vorreiter Pedersen
f5ec2315d7
C++: Add a FP from DCA.
2024-07-16 13:02:38 +01:00
Geoffrey White
0344381120
Merge remote-tracking branch 'upstream/main' into docsforautofix
2024-07-10 11:17:52 +01:00