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