We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6d5a8e4 commit f3ab52bCopy full SHA for f3ab52b
python/ql/src/Security/CWE-022/TarSlip.ql
@@ -40,7 +40,7 @@ class TarfileOpen extends TaintSource {
40
* this tarfile is safe.
41
*/
42
43
- not this.(CallNode).getAnArg().pointsTo(Value::forString(_)) and
+ not this.(CallNode).getAnArg().pointsTo(any(StringValue str)) and
44
/* Ignore opens within the tarfile module itself */
45
not this.(ControlFlowNode).getLocation().getFile().getBaseName() = "tarfile.py"
46
}
0 commit comments