main.cpp 397 B

1234567891011121314
  1. #include <library/cpp/string_utils/base32/base32.h>
  2. #include <util/system/types.h>
  3. #include <util/system/yassert.h>
  4. extern "C" int LLVMFuzzerTestOneInput(const ui8* data, size_t size)
  5. {
  6. const std::string_view example{reinterpret_cast<const char*>(data), size};
  7. const auto converted = Base32StrictDecode(Base32Encode(example));
  8. Y_ABORT_UNLESS(example == converted);
  9. return 0;
  10. }