We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 456209b commit c0b3d98Copy full SHA for c0b3d98
1 file changed
python/ql/lib/semmle/python/dataflow/new/internal/VariableCapture.qll
@@ -10,6 +10,8 @@ private import codeql.dataflow.VariableCapture as Shared
10
// - JS: Capture flow: https://github.com/github/codeql/pull/14412/commits/7bcf8b858babfea0a3e36ce61145954c249e13ac
11
// - JS: Disallow consecutive captured contents: https://github.com/github/codeql/pull/14412/commits/46e4cdc6232604ea7f58138a336d5a222fad8567
12
// The first is the main implementation, the second is a performance motivated restriction.
13
+// The restriction is to clear any `CapturedVariableContent` before writing a new one
14
+// to avoid long access paths (see the link for a nice explanation).
15
private module CaptureInput implements Shared::InputSig<Location> {
16
private import python as PY
17
0 commit comments