0
0
mirror of https://github.com/zeromq/libzmq.git synced 2024-12-26 23:01:04 +08:00

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
This commit is contained in:
Luca Boccassi 2020-05-24 14:26:02 +01:00
parent 85e198c5b4
commit 35c4c22c81

View File

@ -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<const char *> (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);