Ian Lynagh
050a9e155f
C++: Add changenote for changes to some queries
...
Queries affected:
cpp/wrong-type-format-argument
cpp/comparison-with-wider-type
cpp/integer-multiplication-cast-to-long
cpp/implicit-function-declaration
cpp/suspicious-add-sizeof
2025-09-11 15:56:41 +01:00
Ian Lynagh
cc131a09a1
C++: Accept changes to cpp/ql/integration-tests/query-suite
2025-09-11 15:01:04 +01:00
Asger F
ae4cf302f2
Remove failures from dataflow-consistency expectations
2025-09-11 14:49:58 +02:00
Ian Lynagh
b3f4c68a1d
C++: Remove the BMN filter from some queries, but reduce precision to medium
...
Remove the `not any(Compilation c).buildModeNone() and` clause from:
cpp/wrong-type-format-argument
cpp/comparison-with-wider-type
cpp/integer-multiplication-cast-to-long
cpp/implicit-function-declaration
cpp/suspicious-add-sizeof
but reduce their precision to `medium`.
2025-09-11 13:32:11 +01:00
Jeroen Ketema
2bc035cfcf
C++: Update test results after extractor changes
2025-09-11 10:31:01 +02:00
Jeroen Ketema
d224f85b24
C++: Add uninitialized variable FP test
2025-09-11 10:31:00 +02:00
Mathias Vorreiter Pedersen
72d7223fd0
C++: Small drive by cleanup. Delete unnecessary nested 'exists'.
2025-09-10 12:35:59 +01:00
Mathias Vorreiter Pedersen
d097946e1f
C++: No need for this additional case.
2025-09-10 12:35:24 +01:00
Mathias Vorreiter Pedersen
417e79c3c0
Merge pull request #20382 from MathiasVP/simplify-ssl-result-not-checked
...
C++: Simplify `cpp/certificate-not-checked`
2025-09-09 12:23:39 +01:00
Mathias Vorreiter Pedersen
702d6d80c4
Update cpp/ql/lib/semmle/code/cpp/controlflow/IRGuards.qll
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-09-08 16:19:33 +01:00
Mathias Vorreiter Pedersen
a81989d2d8
C++: Simplify the 'SSLResultNotChecked' query.
2025-09-08 12:28:28 +01:00
Mathias Vorreiter Pedersen
9f47996448
C++: Lift a few more predicates to expression guards.
2025-09-08 12:28:18 +01:00
Mathias Vorreiter Pedersen
4645bd766a
C++: Sync identical files.
2025-09-04 19:27:31 +01:00
Mathias Vorreiter Pedersen
a551a55ca0
C++: Get rid of a parenthesis pair.
2025-09-04 19:27:23 +01:00
Mathias Vorreiter Pedersen
3c35e1e6ee
C++: Require a unique IRFunction for each value number case and assign instructions with a non-unique IRFUnction a unique value number.
2025-09-04 19:26:42 +01:00
Mathias Vorreiter Pedersen
76f2c6a9f1
C++: Remove the IRFunction column from the TUniqueValueNumber branch. The next commits will protect the recursion from instructions which has multiple IRFunctions and assign such instructions a unique value number so it won't make sense for them to have an IRFunction column.
2025-09-04 19:10:22 +01:00
Jeroen Ketema
af82da5db3
Merge pull request #20350 from michaelnebel/cpp/ql4qlexperimental
...
C++: Fix some Ql4Ql violations (crypto).
2025-09-04 16:21:44 +02:00
Michael Nebel
64d68feab3
Merge pull request #20325 from michaelnebel/cpp/ql4ql
...
C++: Fix some Ql4Ql violations.
2025-09-04 14:17:11 +02:00
Michael Nebel
61e8ad264f
C++: Address review comments.
2025-09-04 12:52:46 +02:00
Michael Nebel
83d53baf82
C++: Fix some Ql4Ql violations.
2025-09-03 08:19:18 +02:00
Michael Nebel
462d639627
C++: Fix some Ql4Ql violations.
2025-09-03 08:13:20 +02:00
Jeroen Ketema
ab3ad20a1e
Merge pull request #20319 from jketema/ir-vla-sizeof
...
C++: Support `sizeof` VLAs in the IR
2025-09-02 17:29:18 +02:00
Jeroen Ketema
8de1ed0d85
C++: Address review comments
2025-09-02 17:03:48 +02:00
Arthur Baars
0bb7fdccf6
Merge pull request #20347 from github/post-release-prep/codeql-cli-2.23.0
...
Post-release preparation for codeql-cli-2.23.0
2025-09-02 14:14:03 +02:00
github-actions[bot]
e8a2600a0c
Post-release preparation for codeql-cli-2.23.0
2025-09-02 11:46:23 +00:00
Jeroen Ketema
9431b0c754
C++: Add change note for new VlaDeclStmt predicates
2025-09-02 13:17:26 +02:00
github-actions[bot]
0bfa93828b
Release preparation for version 2.23.0
2025-09-02 11:09:32 +00:00
Jeroen Ketema
f4df3881f8
C++: Handle *& sequences in sizeof VLA expressions
2025-09-02 12:29:24 +02:00
Jeroen Ketema
438cc961da
C++: Document TranslatedSizeofExpr
2025-09-02 12:29:21 +02:00
Jeroen Ketema
8a7553232f
C++: Add more sizeof VLA tests
2025-09-02 12:29:19 +02:00
Jeroen Ketema
f68d3477d4
C++: Output necessary conversions in the sizeof VLA IR
2025-09-02 12:29:17 +02:00
Jeroen Ketema
f0f66c6d58
C++: Minor refactor
...
* Introduce new instruction tag for the base size
* Introduce some convenience predicates on `VlaDeclStmt`
2025-09-02 12:29:15 +02:00
Jeroen Ketema
6a9324fab0
C++: Fix obtaining the base type of a VLA
2025-09-02 12:29:13 +02:00
Jeroen Ketema
ffbc83deeb
C++: Update expected test results
2025-09-02 12:29:10 +02:00
Jeroen Ketema
6e8f44da42
C++: Handle sizeof VLAs with typedefs
2025-09-02 12:29:09 +02:00
Jeroen Ketema
74f5687660
C++: Update expected test results
2025-09-02 12:29:07 +02:00
Jeroen Ketema
fdab63fd5f
C++: Handle ArrayExprs in sizeof VLAs
2025-09-02 12:29:04 +02:00
Jeroen Ketema
5bd08e8174
C++: Add more sizeof VLA tests
2025-09-02 12:29:02 +02:00
Jeroen Ketema
dc78330529
C++: Update expected test results
2025-09-02 12:29:00 +02:00
Jeroen Ketema
d9320b3c16
C++: Support sizeof VLAs in the IR
2025-09-02 12:28:59 +02:00
Jeroen Ketema
60845001dd
C++: Add sizeof VLA IR test cases
2025-09-02 12:28:56 +02:00
Anders Schack-Mulligen
144e34c669
Shared: Use shared SuccessorType in shared Cfg and BasicBlock libs.
2025-09-01 13:43:32 +02:00
Anders Schack-Mulligen
70a871c1e5
Merge pull request #20253 from aschackmull/shared/basicblock-signature2
...
Shared: Add and use a signature for basic blocks
2025-09-01 12:39:33 +02:00
Jeroen Ketema
93f4721418
Merge pull request #20316 from jketema/stats
...
C++: Update dbscheme stats file
2025-09-01 11:54:43 +02:00
Anders Schack-Mulligen
09b2c5abf0
BasicBlock: Replace entryBlock predicate with subclass.
2025-09-01 11:48:44 +02:00
Anders Schack-Mulligen
6ffb9b129f
C++: Extend final IRBlock
2025-09-01 11:26:36 +02:00
Anders Schack-Mulligen
a7b2a2fa9f
C++: Sync files.
2025-09-01 11:26:35 +02:00
Anders Schack-Mulligen
f459ddc40a
Languages: Adapt to api changes.
2025-09-01 11:26:33 +02:00
Anders Schack-Mulligen
bb3abc815f
SSA: Update input to use member predicates.
2025-09-01 11:19:48 +02:00
Jeroen Ketema
b361b0f3c3
Merge pull request #20310 from MathiasVP/add-comptr-model-now-with-more-models
...
C++: Add `ComPtr` conversion operators
2025-08-29 16:45:39 +02:00