mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-29 02:10:00 +00:00
Updated FlexBuffers fuzzer
This commit is contained in:
@@ -8,7 +8,9 @@
|
|||||||
#include "flatbuffers/flexbuffers.h"
|
#include "flatbuffers/flexbuffers.h"
|
||||||
|
|
||||||
extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
|
extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
|
||||||
std::vector<bool> reuse_tracker;
|
std::vector<uint8_t> reuse_tracker;
|
||||||
|
// Check both with and without reuse tracker paths.
|
||||||
flexbuffers::VerifyBuffer(data, size, &reuse_tracker);
|
flexbuffers::VerifyBuffer(data, size, &reuse_tracker);
|
||||||
|
flexbuffers::VerifyBuffer(data, size, nullptr);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user