Aditya Sharad
b1803d0ac2
Merge rc/3.12 into main
2023-12-21 16:40:51 -08:00
Rasmus Lerchedahl Petersen
da4aef80e9
Revert "Python: make it a real consistency check"
...
This reverts commit 45411f4a93 .
2023-12-20 16:15:17 +01:00
Rasmus Lerchedahl Petersen
0f89f69555
Python: fix VariableWrite and remove unneded step
2023-12-20 15:45:18 +01:00
Rasmus Lerchedahl Petersen
d039ceb689
Python: add test for fields
2023-12-20 15:23:45 +01:00
Rasmus Lerchedahl Petersen
706e9dc896
Python: fix compilation
2023-12-20 15:23:33 +01:00
Rasmus Lerchedahl Petersen
45411f4a93
Python: make it a real consistency check
2023-12-20 14:53:37 +01:00
Rasmus Lerchedahl Petersen
215b146f06
Python: remove unused member predicate
2023-12-20 14:45:00 +01:00
Rasmus Lerchedahl Petersen
491ca3f1e6
Python: hide synthetic variable node
2023-12-20 14:42:45 +01:00
Rasmus Lerchedahl Petersen
afb3d1da6f
Python: move capture node to DataFlowPrivate
2023-12-20 14:41:17 +01:00
Rasmus Lerchedahl Petersen
3cea46fe7b
Python: fix typos
2023-12-20 14:35:10 +01:00
Rasmus Lerchedahl Petersen
f8417b0dd8
Merge branch 'main' of https://github.com/github/codeql into python/captured-variables-basic
2023-12-20 13:16:42 +01:00
Rasmus Lerchedahl Petersen
7749b8e60e
Python: add change-note
2023-12-20 12:53:37 +01:00
Rasmus Lerchedahl Petersen
07c88dc0be
Python: remove unnecessary post-processing
...
also, it is slightly incorrect...
2023-12-20 12:09:15 +01:00
Rasmus Lerchedahl Petersen
169d7a3c98
Python: Add scope entry definition nodes
...
otherwise we confuse captured variables
in the single scope entry cfg node. Now
we have one for each defined variable.
2023-12-20 12:09:00 +01:00
Rasmus Lerchedahl Petersen
3b7e29bed6
Python: add test for crosstalk
2023-12-20 12:08:05 +01:00
github-actions[bot]
8f72b0e4f7
Post-release preparation for codeql-cli-2.15.5
2023-12-19 10:32:57 +00:00
Rasmus Wriedt Larsen
2305d55967
Merge pull request #15101 from yoff/python/update-InlineTaintTestPaths-to-new-api
...
Python: update to new API update is in a comment, so compilation never failed in CI.
2023-12-19 11:10:55 +01:00
yoff
1417c2cdd5
Update python/ql/lib/change-notes/2023-12-18-support-variable-capture.md
...
Co-authored-by: Rasmus Wriedt Larsen <rasmuswriedtlarsen@gmail.com >
2023-12-19 10:08:59 +01:00
yoff
a60c52b8b7
Merge branch 'main' into python/captured-variables-basic
2023-12-18 23:44:46 +01:00
Rasmus Lerchedahl Petersen
8b7b58279a
Python: add change-note
...
I chose `category: majorAnalysis`, the description is
"An API has changed in a way that may affect the results produced
by a query that consumes the API."
The API in question here is `flowPath` which is used by all our
data flow queries.
2023-12-18 23:42:39 +01:00
Rasmus Lerchedahl Petersen
78c484faab
Python: remove support for capturing callbacks
...
This will be added in a follow-up PR instead.
2023-12-18 23:24:57 +01:00
Rasmus Lerchedahl Petersen
6e4011d2ae
Python: rename sythetic nodes
...
Avoid the term "closure" as it is somewhat academic.
2023-12-18 23:16:51 +01:00
Rasmus Lerchedahl Petersen
c0b3d98c6d
Python: Add a bit more detail to comment.
2023-12-18 22:44:26 +01:00
Rasmus Lerchedahl Petersen
456209b269
Python: Move predicate closer to its use
2023-12-18 22:29:09 +01:00
Rasmus Lerchedahl Petersen
86bb884f67
Python: better comment
2023-12-18 22:26:46 +01:00
github-actions[bot]
19af35b29a
Release preparation for version 2.15.5
2023-12-18 21:22:44 +00:00
Rasmus Lerchedahl Petersen
7324177786
Python: address QL alerts
2023-12-18 22:20:28 +01:00
Rasmus Lerchedahl Petersen
25c83dc70d
Python: adjust comment
2023-12-18 22:15:37 +01:00
Rasmus Lerchedahl Petersen
bf1ad23678
Python: add comments
...
- on debug predicates
- on JS implementation
2023-12-18 22:00:13 +01:00
Rasmus Lerchedahl Petersen
c88d686ce4
Python: move SynthCapturePostUpdateNode
...
next to `SynthCaptureNode`
2023-12-18 21:37:52 +01:00
yoff
f50817e92a
Merge pull request #15104 from RasmusWL/fewer-meta-queries
...
Python: Remove `@tags meta` from internal debug queries
2023-12-18 21:27:33 +01:00
yoff
e0c027f13c
Merge pull request #14848 from hvitved/python/shared-type-tracking
...
Python: Adopt shared type tracking library
2023-12-18 21:14:42 +01:00
Rasmus Lerchedahl Petersen
d6544cc550
Python: remove consistency exclusion
2023-12-18 15:24:49 +01:00
Tom Hvitved
a776132a10
Python: Deprecate more predicates
2023-12-18 13:05:17 +01:00
Rasmus Lerchedahl Petersen
64655a0ea8
Python: Use enw class name
2023-12-16 01:36:46 +01:00
Rasmus Lerchedahl Petersen
b505778bc8
Python: remove non-local steps
2023-12-16 01:03:27 +01:00
Rasmus Lerchedahl Petersen
661ba1ca7b
Python: move restriction into branch predicate
...
Otherwise we get loads of nodes with missing locations
from the brnach nodes that are not matched.
2023-12-16 00:33:11 +01:00
Rasmus Lerchedahl Petersen
5de1725648
Python: update class name
2023-12-15 23:50:29 +01:00
Rasmus Lerchedahl Petersen
4a1fcde649
Python: abandon synthetic node
...
for `CapturingClosureArgumentNode`.
Unless we define it for every single `CallNode`, we need a more
sophisticated mutual recursion with the call graph construction.
There is built-in support for that, but we are currently not using it.
2023-12-15 23:42:29 +01:00
Rasmus Lerchedahl Petersen
e36b079e0f
Python: fix compilation error
...
introduced by bad merge
2023-12-15 21:27:22 +01:00
Rasmus Lerchedahl Petersen
416ba6a709
Python: use updated API
2023-12-15 21:26:05 +01:00
Rasmus Lerchedahl Petersen
1ee11ae7af
Merge branch 'main' of https://github.com/github/codeql into python/captured-variables-basic
2023-12-15 14:31:57 +01:00
Rasmus Lerchedahl Petersen
8601105988
Python: Address TODO comment
2023-12-15 14:03:38 +01:00
Rasmus Lerchedahl Petersen
e1bf2821d9
Python: split variable capture instantiation out
...
into its own file.
2023-12-15 13:59:52 +01:00
Rasmus Lerchedahl Petersen
f668453d01
Python: move things around
2023-12-15 13:48:50 +01:00
Rasmus Lerchedahl Petersen
739b839628
Python: use updated names
2023-12-15 13:48:28 +01:00
yoff
b07316f4ae
Update python/ql/lib/semmle/python/dataflow/new/internal/DataFlowPrivate.qll
...
Co-authored-by: Rasmus Wriedt Larsen <rasmuswriedtlarsen@gmail.com >
2023-12-15 13:41:04 +01:00
Rasmus Lerchedahl Petersen
a311582285
Python: Bring back (now simplified) exclusion
2023-12-15 13:28:16 +01:00
yoff
4b89a412c6
Update python/ql/lib/semmle/python/dataflow/new/internal/DataFlowDispatch.qll
...
Co-authored-by: Rasmus Wriedt Larsen <rasmuswriedtlarsen@gmail.com >
2023-12-15 12:59:01 +01:00
Rasmus Lerchedahl Petersen
d3b237bf7e
Python: rename synthetic lambda nodes
2023-12-15 12:55:26 +01:00