minor update of false positive check (in considerable amount of cases minus char is filtered/used for other means)

This commit is contained in:
Miroslav Stampar 2011-11-20 20:27:30 +00:00
parent 440b7efe55
commit 8c32b3653b

View File

@ -556,9 +556,9 @@ def checkFalsePositives(injection):
retVal = None
elif checkBooleanExpression("%d=%d" % (randInt1, randInt2)):
retVal = None
elif not checkBooleanExpression("%d=(%d-%d)" % (abs(randInt1 - randInt2), max(randInt1, randInt2), min(randInt1, randInt2))):
if not checkBooleanExpression("%d=(%d+%d)" % (randInt1 + randInt2, randInt1, randInt2)):
retVal = None
elif checkBooleanExpression("(%d+%d)=(%d-%d)" % (randInt1, randInt2, randInt1, randInt2)):
elif checkBooleanExpression("%d=%d" % (randInt2, randInt1)):
retVal = None
if retVal is None: