From 35c4c22c815c1738052ee72f9c95929c841000f4 Mon Sep 17 00:00:00 2001 From: Luca Boccassi Date: Sun, 24 May 2020 14:26:02 +0100 Subject: [PATCH] Problem: z85 decode test might not always get valid input and pass Solution: do not fail the test in that case, what's important is checking for undefined behaviour --- tests/test_z85_decode_fuzzer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_z85_decode_fuzzer.cpp b/tests/test_z85_decode_fuzzer.cpp index 01351564..a3044927 100644 --- a/tests/test_z85_decode_fuzzer.cpp +++ b/tests/test_z85_decode_fuzzer.cpp @@ -50,7 +50,7 @@ extern "C" int LLVMFuzzerTestOneInput (const uint8_t *data, size_t size) TEST_ASSERT_NOT_NULL (secret_key = (uint8_t *) malloc (size * 4 / 5)); std::string z85_secret_key (reinterpret_cast (data), size); - TEST_ASSERT_NOT_NULL (zmq_z85_decode (secret_key, z85_secret_key.c_str ())); + zmq_z85_decode (secret_key, z85_secret_key.c_str ()); free (secret_key);