main.cpp 385 B

12345678910111213
  1. #include <library/cpp/string_utils/base64/base64.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. const TStringBuf example{reinterpret_cast<const char*>(data), size};
  6. const auto converted = Base64Decode(Base64Encode(example));
  7. Y_ABORT_UNLESS(example == converted);
  8. return 0;
  9. }