From 01bdf9f9c16b63eb4272bd40abe61d089afc135f Mon Sep 17 00:00:00 2001 From: Justin Wood Date: Tue, 16 Jul 2024 09:23:04 -0700 Subject: [PATCH] Update src/setup_payload/tests/FuzzBase38Decode.cpp Co-authored-by: Boris Zbarsky --- src/setup_payload/tests/FuzzBase38Decode.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/setup_payload/tests/FuzzBase38Decode.cpp b/src/setup_payload/tests/FuzzBase38Decode.cpp index 11d29c2151c8e6..317473370230c7 100644 --- a/src/setup_payload/tests/FuzzBase38Decode.cpp +++ b/src/setup_payload/tests/FuzzBase38Decode.cpp @@ -16,6 +16,8 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t * data, size_t len) std::string base38EncodedString(reinterpret_cast(data), len); std::vector 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;