handle shrinking correctly

This commit is contained in:
Alex Groce
2018-09-03 13:09:06 -07:00
parent b047dee43d
commit 6f3a4a9bdd
+2 -3
View File
@@ -101,9 +101,8 @@ def main():
print("ORIGINAL TEST HAS", len(currentTest), "BYTES")
s = structure(initial)
print("LAST BYTE READ IS", s[1])
if s[1] < len(currentTest):
if (s[1]+1) < len(currentTest):
print("LAST BYTE READ IS", s[1])
print("SHRINKING TO IGNORE UNREAD BYTES")
currentTest = currentTest[:s[1]+1]