Python: Use StringValue instead of Value::forString

This commit is contained in:
Rasmus Wriedt Larsen
2020-02-17 14:35:18 +01:00
parent 6d5a8e4995
commit f3ab52b1fe

View File

@@ -40,7 +40,7 @@ class TarfileOpen extends TaintSource {
* this tarfile is safe.
*/
not this.(CallNode).getAnArg().pointsTo(Value::forString(_)) and
not this.(CallNode).getAnArg().pointsTo(any(StringValue str)) and
/* Ignore opens within the tarfile module itself */
not this.(ControlFlowNode).getLocation().getFile().getBaseName() = "tarfile.py"
}