main.cpp 406 B

1234567891011121314151617181920
  1. #include <library/cpp/monlib/encode/spack/spack_v1.h>
  2. #include <library/cpp/monlib/encode/fake/fake.h>
  3. #include <util/stream/mem.h>
  4. extern "C" int LLVMFuzzerTestOneInput(const ui8* data, size_t size) {
  5. using namespace NMonitoring;
  6. TMemoryInput min{data, size};
  7. auto encoder = EncoderFake();
  8. try {
  9. DecodeSpackV1(&min, encoder.Get());
  10. } catch (...) {
  11. }
  12. return 0;
  13. }