define FUZZER_FLAG_INT(Name, Default, Description) int Name;
This results in 'stol: out of range' exceptions when processing a value larger than 2147483647. This was identified by running:
./fuzzer -seed=2574387484
on a 32-bit ARM device (Current AOSP, Nexus 6)
Fuzzing session replay requires first checking if the generated seed value is greater than 2147483647, and translating it to its hex representation, which does not trigger the out of range issue.
This only seems to be an issue when using the seed flag, the seed value in FuzzerDriver is an unsigned and appears to be handled correctly in the rest of the library.
In FuzzerDriver.cpp, this happened:
define FUZZER_FLAG_INT(Name, Default, Description) int Name;
This results in 'stol: out of range' exceptions when processing a value larger than 2147483647. This was identified by running:
./fuzzer -seed=2574387484
on a 32-bit ARM device (Current AOSP, Nexus 6)
Fuzzing session replay requires first checking if the generated seed value is greater than 2147483647, and translating it to its hex representation, which does not trigger the out of range issue.
This only seems to be an issue when using the seed flag, the seed value in FuzzerDriver is an unsigned and appears to be handled correctly in the rest of the library.