Merge "Long fuzz strings now truncated in output"
This commit is contained in:
commit
c6c41ebb87
@ -250,9 +250,14 @@ class ImpactedParameter(object):
|
||||
self.name = name
|
||||
|
||||
def as_dict(self):
|
||||
trunc_string = self.fuzz_string
|
||||
if len(self.fuzz_string) >= 512:
|
||||
trunc_string = "{0}...({1} chars)...{2}".format(
|
||||
self.fuzz_string[:256], len(self.fuzz_string),
|
||||
self.fuzz_string[-256:])
|
||||
return {
|
||||
"method": self.method,
|
||||
"location": self.location,
|
||||
"name": self.name,
|
||||
"value": self.fuzz_string
|
||||
"value": trunc_string
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user