Closed Wenzel closed 1 year ago
This behavior is triggered when len(data) - len(entry)
is negative, and max()
is evaluated to 0
:
https://github.com/IntelLabs/kafl.fuzzer/blob/master/kafl_fuzzer/technique/havoc_handler.py#L301
the rand.int()
function is therefore called with a limit of 0
, and fails with ValueError.
For some reason, the exception isn't catched by the try except block. Maybe the C implementation doesn't respect CPython expectations ?
In the end, it makes the worker fail.
Facing an exception in
havoc_handler.py:dict_insert_sequence
:The above exception can be traced back to
fastrand
library: https://github.com/lemire/fastrand/blob/master/fastrandmodule.c#L73