diff options
| author | Sergey Polovko <[email protected]> | 2022-02-10 16:47:02 +0300 | 
|---|---|---|
| committer | Daniil Cherednik <[email protected]> | 2022-02-10 16:47:02 +0300 | 
| commit | 3e0b762a82514bac89c1dd6ea7211e381d8aa248 (patch) | |
| tree | c2d1b379ecaf05ca8f11ed0b5da9d1a950e6e554 /library/cpp/monlib/encode/prometheus/fuzz/main.cpp | |
| parent | ab3783171cc30e262243a0227c86118f7080c896 (diff) | |
Restoring authorship annotation for Sergey Polovko <[email protected]>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/monlib/encode/prometheus/fuzz/main.cpp')
| -rw-r--r-- | library/cpp/monlib/encode/prometheus/fuzz/main.cpp | 36 | 
1 files changed, 18 insertions, 18 deletions
| diff --git a/library/cpp/monlib/encode/prometheus/fuzz/main.cpp b/library/cpp/monlib/encode/prometheus/fuzz/main.cpp index 24bda2d32e3..a9ed0afc45d 100644 --- a/library/cpp/monlib/encode/prometheus/fuzz/main.cpp +++ b/library/cpp/monlib/encode/prometheus/fuzz/main.cpp @@ -1,18 +1,18 @@ -#include <library/cpp/monlib/encode/prometheus/prometheus.h> -#include <library/cpp/monlib/encode/fake/fake.h> - -#include <util/stream/mem.h> - - -extern "C" int LLVMFuzzerTestOneInput(const ui8* buf, size_t size) { -    using namespace NMonitoring; - -    try { -        TStringBuf data(reinterpret_cast<const char*>(buf), size); -        auto encoder = EncoderFake(); -        DecodePrometheus(data, encoder.Get()); -    } catch (...) { -    } - -    return 0; -} +#include <library/cpp/monlib/encode/prometheus/prometheus.h>  +#include <library/cpp/monlib/encode/fake/fake.h>  +  +#include <util/stream/mem.h>  +  +  +extern "C" int LLVMFuzzerTestOneInput(const ui8* buf, size_t size) {  +    using namespace NMonitoring;  +  +    try {  +        TStringBuf data(reinterpret_cast<const char*>(buf), size);  +        auto encoder = EncoderFake();  +        DecodePrometheus(data, encoder.Get());  +    } catch (...) {  +    }  +  +    return 0;  +}  | 
