Adding a switch --invalid-string

This commit is contained in:
Miroslav Stampar
2014-01-23 21:56:06 +01:00
parent f88f6dcd7e
commit f97fcb7bb3
5 changed files with 14 additions and 0 deletions

View File

@@ -122,6 +122,8 @@ class Agent(object):
value = "%s%s AND %s=%s" % (origValue, match.group() if match else "", _, _ + 1)
elif conf.invalidBignum:
value = randomInt(6)
elif conf.invalidString:
value = randomStr(6)
else:
if newValue.startswith("-"):
value = ""

View File

@@ -72,6 +72,7 @@ optDict = {
"os": "string",
"invalidBignum": "boolean",
"invalidLogical": "boolean",
"invalidString": "boolean",
"noCast": "boolean",
"noEscape": "boolean",
"prefix": "string",