Benjamin Rodes
|
8d35db0fe6
|
Making argv filter positional.
|
2024-02-21 12:25:35 -05:00 |
|
Benjamin Rodes
|
639642fb67
|
Formatting.
|
2024-02-16 11:19:02 -05:00 |
|
Benjamin Rodes
|
0410ed734b
|
Adding exclusion for main's argv (I believe this and other changes were accidentally removed in prior merge with other non-const branches)
|
2024-02-16 11:18:06 -05:00 |
|
Benjamin Rodes
|
9f3dd6300f
|
Fixing query to use path graph.
|
2024-02-16 11:11:48 -05:00 |
|
Benjamin Rodes
|
aa7c677e13
|
Merge branch '51-2cppnon-constant-format-alter-not-const-source' into cpp-non-constant-format-as-path-query
# Conflicts:
# cpp/ql/src/Likely Bugs/Format/NonConstantFormat.ql
|
2024-02-16 10:49:05 -05:00 |
|
Benjamin Rodes
|
c38376a264
|
Merge branch '51-2cppnon-constant-format-alter-not-const-source' of https://github.com/microsoft/codeql into 51-2cppnon-constant-format-alter-not-const-source
|
2024-02-16 10:42:04 -05:00 |
|
Mathias Vorreiter Pedersen
|
7c22146f46
|
C++: Accept query test changes.
|
2024-02-16 16:33:44 +01:00 |
|
Mathias Vorreiter Pedersen
|
096073d295
|
C++: Add change note.
|
2024-02-16 16:29:34 +01:00 |
|
Benjamin Rodes
|
93f2e856af
|
Formatting update.
|
2024-02-16 10:28:14 -05:00 |
|
Benjamin Rodes
|
4a9b2d5027
|
Comment change.
|
2024-02-16 10:18:07 -05:00 |
|
Benjamin Rodes
|
5b0a3dcdbe
|
Accidental removal of an and.
|
2024-02-16 10:15:21 -05:00 |
|
Benjamin Rodes
|
95ebbb1bbd
|
Ql alterations for cleanup as part of merge suggestions.
|
2024-02-16 10:13:50 -05:00 |
|
Ben Rodes
|
1fb7f089ca
|
Update cpp/ql/src/Likely Bugs/Format/NonConstantFormat.ql
Co-authored-by: Mathias Vorreiter Pedersen <mathiasvp@github.com>
|
2024-02-16 10:06:34 -05:00 |
|
Benjamin Rodes
|
d6b0746b30
|
The non-constant format query is now a path query. Minor changes to the output alert to be more precise on what is being alerted. Minor changes to the query itself to avoid redundancies with argv.
|
2024-02-15 12:14:52 -05:00 |
|
Benjamin Rodes
|
9e50fc6893
|
Updating tests to account for removing const char* heuristic.
|
2024-02-15 09:54:03 -05:00 |
|
Benjamin Rodes
|
caf2ee27fa
|
Adding false negative tests for future work.
|
2024-02-15 09:43:26 -05:00 |
|
Benjamin Rodes
|
5c508553f3
|
Efficiency improvement (force a better join order)
|
2024-02-13 09:42:08 -08:00 |
|
Benjamin Rodes
|
091416131b
|
Removing 'const' specifier filtering after discussions with the team. We will test if this causes undesirable cases in DCA and then choose which approach is best.
|
2024-02-12 09:38:00 -05:00 |
|
Benjamin Rodes
|
d4bc2ceb37
|
Minor efficiency improvements and comments.
|
2024-02-08 10:11:50 -05:00 |
|
Benjamin Rodes
|
915aa94b13
|
Merge branch '51-2cppnon-constant-format-alter-not-const-source' of https://github.com/microsoft/codeql into 51-2cppnon-constant-format-alter-not-const-source
|
2024-02-07 14:15:40 -05:00 |
|
Benjamin Rodes
|
f12a1ecdf2
|
Simplifying the query.
|
2024-02-07 14:15:16 -05:00 |
|
Ben Rodes
|
2c962d51a9
|
Merge branch 'main' into 51-2cppnon-constant-format-alter-not-const-source
|
2024-02-07 10:57:31 -08:00 |
|
Benjamin Rodes
|
50134e644f
|
Merge branch '50-model-gettext-family-of-string-operations' into 51-2cppnon-constant-format-alter-not-const-source
# Conflicts:
# cpp/ql/src/Likely Bugs/Format/NonConstantFormat.ql
|
2024-02-07 13:56:39 -05:00 |
|
Benjamin Rodes
|
9fc2405681
|
Updating non-const source logic and associated tests and expected files.
|
2024-02-07 13:54:56 -05:00 |
|
Mathias Vorreiter Pedersen
|
ebefcb8d35
|
Merge pull request #15513 from microsoft/50-model-gettext-family-of-string-operations
Added model for gettext variants.
|
2024-02-07 15:48:16 +00:00 |
|
Mathias Vorreiter Pedersen
|
0ee3c9987f
|
Merge pull request #15539 from MathiasVP/fix-ir-gen-for-conditional-decl-expr-without-var-access
C++: Fix IR generation when `ConditionDeclExpr` does not have an immediate `VariableAccess`
|
2024-02-07 15:19:16 +00:00 |
|
Benjamin Rodes
|
5866fc1fd0
|
Updating expected file.
|
2024-02-07 10:12:25 -05:00 |
|
Mathias Vorreiter Pedersen
|
df181f2dc4
|
C++: Accept more test changes.
|
2024-02-07 14:50:18 +00:00 |
|
Mathias Vorreiter Pedersen
|
950b5f2235
|
C++: Block flow out of 'gettext' in 'cpp/non-constant-format'. (#52)
|
2024-02-07 09:10:12 -05:00 |
|
Mathias Vorreiter Pedersen
|
fe5eca4134
|
C++: Accept test changes.
|
2024-02-07 11:45:40 +00:00 |
|
Mathias Vorreiter Pedersen
|
edc7903c69
|
C++: Add a predicate for getting the 0'th child of a 'ConditionDeclExpr' without casting it to a 'VariableAccess' and use it in IR generation.
|
2024-02-07 11:45:13 +00:00 |
|
Mathias Vorreiter Pedersen
|
d0b0440427
|
C++: Add a testcase with failing IR generation.
|
2024-02-07 11:38:02 +00:00 |
|
Mathias Vorreiter Pedersen
|
4b046ad670
|
C++: Also clear the 0'th argument of 'swap'.
|
2024-02-07 10:31:18 +00:00 |
|
Mathias Vorreiter Pedersen
|
c5dc88345d
|
Merge pull request #15528 from MathiasVP/flow-barrier-interface
C++: Add an interface for models to block flow
|
2024-02-07 09:58:08 +00:00 |
|
Benjamin Rodes
|
80bf38d8cc
|
Initial working draft of non-const source refactor.
|
2024-02-06 14:20:01 -05:00 |
|
Benjamin Rodes
|
5e5fea8ef3
|
Merge branch '50-model-gettext-family-of-string-operations' into 51-2cppnon-constant-format-alter-not-const-source
|
2024-02-06 12:47:08 -05:00 |
|
Mathias Vorreiter Pedersen
|
7948911415
|
C++: Delete dead code.
|
2024-02-06 17:38:22 +00:00 |
|
Mathias Vorreiter Pedersen
|
f7fe84adb4
|
C++: Add change note.
|
2024-02-06 16:23:59 +00:00 |
|
Mathias Vorreiter Pedersen
|
21b9b3b87f
|
C++: Accept test changes.
|
2024-02-06 16:15:22 +00:00 |
|
Mathias Vorreiter Pedersen
|
359b6e14c6
|
C++: Block flow out of 'swap'.
|
2024-02-06 16:15:21 +00:00 |
|
Mathias Vorreiter Pedersen
|
e539aca337
|
C++: Add an interface for blocking flow out of functions that reach a certain argument.
|
2024-02-06 16:15:21 +00:00 |
|
Benjamin Rodes
|
fc509c2cbe
|
Added additional gettext variant test.
|
2024-02-06 09:17:10 -05:00 |
|
Ben Rodes
|
0023291903
|
Update cpp/ql/src/change-notes/2024-02-05-gettext-dataflows.md
Co-authored-by: Mathias Vorreiter Pedersen <mathiasvp@github.com>
|
2024-02-06 09:12:25 -05:00 |
|
Benjamin Rodes
|
256554df06
|
Added change log
|
2024-02-05 13:04:16 -05:00 |
|
Benjamin Rodes
|
5b2d15265f
|
gettext variant dataflow tests
|
2024-02-05 13:01:51 -05:00 |
|
Ben Rodes
|
e47df5c7bc
|
Update NonConstantFormat.ql
Removed dead comment
|
2024-02-05 09:39:05 -05:00 |
|
Ben Rodes
|
88a06ffc66
|
Update GetText.qll
Fixing issue based on review.
|
2024-02-05 09:18:30 -05:00 |
|
Benjamin Rodes
|
e8587d060d
|
Removing comments and formatting.
|
2024-02-02 16:23:14 -05:00 |
|
Benjamin Rodes
|
9577c35d85
|
Incremental update to NonConstantFormat.ql
|
2024-02-02 16:06:59 -05:00 |
|
Benjamin Rodes
|
022276badc
|
Added model for gettext variants.
|
2024-02-02 12:05:52 -05:00 |
|