Skip to content

Commit

Permalink
Update src/setup_payload/tests/FuzzBase38Decode.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: Boris Zbarsky <[email protected]>
  • Loading branch information
woody-apple and bzbarsky-apple committed Jul 16, 2024
1 parent 3880674 commit 01bdf9f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/setup_payload/tests/FuzzBase38Decode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t * data, size_t len)
std::string base38EncodedString(reinterpret_cast<const char *>(data), len);
std::vector<uint8_t> decodedData;

// Ignoring return value, because in general the data is garbage and won't decode properly.
// We're just testing that the decoder does not crash on the fuzzer-generated inputs.
chip::base38Decode(base38EncodedString, decodedData);

return 0;
Expand Down

0 comments on commit 01bdf9f

Please sign in to comment.