Simple brute-force fuzzer (#134)

This commit is contained in:
Alex Groce
2018-12-08 15:41:10 -07:00
committed by ggrieco-tob
parent c9a4d676e3
commit 375659421d
5 changed files with 189 additions and 9 deletions
+2
View File
@@ -130,6 +130,8 @@ def main():
cuts = s[0]
for c in cuts:
newTest = currentTest[:c[0]] + currentTest[c[1]+1:]
if len(newTest) == len(currentTest):
continue # Ignore non-shrinking reductions
r = writeAndRunCandidate(newTest)
if checks(r):
print("ONEOF REMOVAL REDUCED TEST TO", len(newTest), "BYTES")