aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/http/io/fuzz/main.cpp
blob: 60bc30848f5ad5bd763dd5e172c86ca07b3947cb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <library/cpp/http/io/stream.h>
 
#include <util/generic/vector.h> 
#include <util/stream/mem.h> 
 
extern "C" int LLVMFuzzerTestOneInput(const ui8* data, size_t size) { 
    TMemoryInput mi(data, size); 
 
    try { 
        THttpInput(&mi).ReadAll(); 
    } catch (...) { 
    } 
 
    return 0; // Non-zero return values are reserved for future use. 
}