mirror of
https://github.com/simon987/hexlib.git
synced 2025-04-10 14:06:43 +00:00
fix fuzz bug
This commit is contained in:
parent
b0de37d4f9
commit
2d74f61553
@ -26,7 +26,7 @@ def fuzz(buf: bytes, n: int, width: int):
|
|||||||
i = random.randint(0, len(buf))
|
i = random.randint(0, len(buf))
|
||||||
for off in range(width):
|
for off in range(width):
|
||||||
if i + off < len(buf):
|
if i + off < len(buf):
|
||||||
fuzzed[i + off] = fuzzed[i + off] + 1
|
fuzzed[i + off] = random.randint(0, 255)
|
||||||
return fuzzed
|
return fuzzed
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user