mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-25 11:58:40 +00:00
Add fuzzer test for scalar numbers in json. (#4996)
* Add fuzzer test for scalar numbers in json. Grammar-based regex used to check correctness. * Fix conversation
This commit is contained in:
committed by
Wouter van Oortmerssen
parent
efbb11e093
commit
55b30827f2
9
tests/fuzzer/fuzzer_assert.h
Normal file
9
tests/fuzzer/fuzzer_assert.h
Normal file
@@ -0,0 +1,9 @@
|
||||
#ifndef FUZZER_ASSERT_IMPL_H_
|
||||
#define FUZZER_ASSERT_IMPL_H_
|
||||
|
||||
// Declare Debug/Release independed assert macro.
|
||||
#define fuzzer_assert_impl(x) (!!(x) ? static_cast<void>(0) : __builtin_trap())
|
||||
|
||||
extern "C" void __builtin_trap(void);
|
||||
|
||||
#endif // !FUZZER_ASSERT_IMPL_H_
|
||||
Reference in New Issue
Block a user