Files
simdjson-simdjson/tests/padded_string_tests.cpp
Paul Dreik f1b4a54991 add fuzz element (#1204)
* 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
2020-10-17 05:48:50 +02:00

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();
}