Python: Moves statement out of quantifier that it didnt need to be in

This commit is contained in:
Rebecca Valentine
2020-03-03 14:57:30 -08:00
parent 19c1ee5427
commit ce204ac949

View File

@@ -16,7 +16,8 @@ import python
import semmle.python.strings
predicate string_format(BinaryExpr operation, StrConst str, Value args, AstNode origin) {
exists(Value fmt, Context ctx | operation.getOp() instanceof Mod |
operation.getOp() instanceof Mod and
exists(Value fmt, Context ctx |
operation.getLeft().pointsTo(ctx, fmt, str) and
operation.getRight().pointsTo(ctx, args, origin)
)