aboutsummaryrefslogtreecommitdiffstats
path: root/util/string/fuzzing/collapse/main.cpp
blob: e26ec54f796bacf7d42d3376844753438a58572e (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.
}