aboutsummaryrefslogtreecommitdiffstats
path: root/util/string/fuzzing/collapse/main.cpp
blob: f2c2b2d5d6552d394d4dafb6c17b3330d7ce5a4c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
#include <util/string/strip.h>
#include <util/charset/wide.h>

extern "C" int LLVMFuzzerTestOneInput(const ui8* data, size_t size) {
    TUtf16String w((const wchar16*)data, size / 2); 
    Collapse(w);

    TString s((const char*)data, size); 
    CollapseInPlace(s);

    return 0; // Non-zero return values are reserved for future use.
}