mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-10 23:17:27 +00:00
Fixed FlexBuffers verifier fuzzer timing out
Change-Id: I3a408da08676e522069adf83730d6bcc2b5493b3
This commit is contained in:
@@ -11,6 +11,9 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
|
||||
std::vector<uint8_t> reuse_tracker;
|
||||
// Check both with and without reuse tracker paths.
|
||||
flexbuffers::VerifyBuffer(data, size, &reuse_tracker);
|
||||
flexbuffers::VerifyBuffer(data, size, nullptr);
|
||||
// FIXME: we can't really verify this path, because the fuzzer will
|
||||
// construct buffers that time out.
|
||||
// Add a simple #define to bound the number of steps just for the fuzzer?
|
||||
//flexbuffers::VerifyBuffer(data, size, nullptr);
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user