aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/http/io/fuzz/main.cpp
blob: 8ded9c7e32050032d63961eb27054b007ada555a (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.
}