Fix for an Issue #224

This commit is contained in:
Miroslav Stampar 2012-10-25 15:25:31 +02:00
parent bcf708f4b1
commit 235cc656b9

View File

@ -634,7 +634,7 @@ def checkSuhoshinPatch(injection):
kb.injection = injection kb.injection = injection
randInt = randomInt() randInt = randomInt()
_ = " " * SUHOSHIN_MAX_VALUE_LENGTH / 2 _ = " " * (SUHOSHIN_MAX_VALUE_LENGTH / 2)
if not checkBooleanExpression("%d%s=%s%d" % (randInt, _, _, randInt)): if not checkBooleanExpression("%d%s=%s%d" % (randInt, _, _, randInt)):
warnMsg = "parameter length constraint " warnMsg = "parameter length constraint "
warnMsg += "mechanism detected (e.g. Suhoshin patch). " warnMsg += "mechanism detected (e.g. Suhoshin patch). "