Skip to content

Commit f3ab52b

Browse files
committed
Python: Use StringValue instead of Value::forString
1 parent 6d5a8e4 commit f3ab52b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/ql/src/Security/CWE-022/TarSlip.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class TarfileOpen extends TaintSource {
4040
* this tarfile is safe.
4141
*/
4242

43-
not this.(CallNode).getAnArg().pointsTo(Value::forString(_)) and
43+
not this.(CallNode).getAnArg().pointsTo(any(StringValue str)) and
4444
/* Ignore opens within the tarfile module itself */
4545
not this.(ControlFlowNode).getLocation().getFile().getBaseName() = "tarfile.py"
4646
}

0 commit comments

Comments
 (0)