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:
parent
85e198c5b4
commit
35c4c22c81
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user