mirror of
https://github.com/simdjson/simdjson
synced 2026-06-08 17:27:07 +00:00
f1b4a54991
* add definitions for is_number and tie (by lemire) * add fuzzer for element * update fuzz documentation * fix UB in creating an empty padded string * don't bother null terminating padded_string, it is done by the std::memset already * refactor fuzz data splitting into a separate class
17 lines
264 B
C++
17 lines
264 B
C++
|
|
#include "simdjson.h"
|
|
|
|
#include <cstdlib>
|
|
|
|
// this test is needed, because memcpy may be invoked on a null pointer
|
|
// otherwise
|
|
static void testNullString() {
|
|
std::string_view empty;
|
|
simdjson::padded_string blah(empty);
|
|
}
|
|
|
|
int main() {
|
|
|
|
testNullString();
|
|
}
|