blob: aa733cec76d1abb437165520ba921895f7161816 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
#include <util/generic/string.h>
#include <util/string/escape.h>
extern "C" int LLVMFuzzerTestOneInput(const ui8* const data, const size_t size) {
const TString src(reinterpret_cast<const char*>(data), size);
const auto escaped = EscapeC(src);
const auto dst = UnescapeC(escaped);
Y_VERIFY(src == dst);
return 0;
}
|