diff --git a/tests/fuzz/corpora/fuzz-cryptomsg/solution-91d462b6755f937129fcab6715327f0e0f2e8c1e b/tests/fuzz/corpora/fuzz-cryptomsg/solution-91d462b6755f937129fcab6715327f0e0f2e8c1e new file mode 100644 index 000000000..2b8c079a5 --- /dev/null +++ b/tests/fuzz/corpora/fuzz-cryptomsg/solution-91d462b6755f937129fcab6715327f0e0f2e8c1e @@ -0,0 +1 @@ +CBBp0hu ΨӾ \ No newline at end of file diff --git a/tests/fuzz/corpora/fuzz-cryptomsg/solution-d5a84620e070d142563b0e6e5dd934c85242f3aa b/tests/fuzz/corpora/fuzz-cryptomsg/solution-d5a84620e070d142563b0e6e5dd934c85242f3aa new file mode 100644 index 000000000..bcdfdbee2 --- /dev/null +++ b/tests/fuzz/corpora/fuzz-cryptomsg/solution-d5a84620e070d142563b0e6e5dd934c85242f3aa @@ -0,0 +1 @@ +CB^~kcȦOzfB \ No newline at end of file diff --git a/tests/fuzz/fuzz-cryptomsg.c b/tests/fuzz/fuzz-cryptomsg.c index 5ce44dd44..c7b7c6429 100644 --- a/tests/fuzz/fuzz-cryptomsg.c +++ b/tests/fuzz/fuzz-cryptomsg.c @@ -78,7 +78,7 @@ static void test_encrypt_decrypt_equality(const u8 *msg) assert(tal_arr_eq(dec, msg)); } -/* Test header decryption of arbitrary bytes (should always fail). */ +/* Test header decryption of arbitrary bytes. */ static void test_decrypt_header(const u8 *buf) { struct crypto_state cs_in = init_cs_in; @@ -87,15 +87,15 @@ static void test_decrypt_header(const u8 *buf) if (tal_bytelen(buf) < CRYPTOMSG_HDR_SIZE) return; - assert(!cryptomsg_decrypt_header(&cs_in, buf, &len)); + cryptomsg_decrypt_header(&cs_in, buf, &len); } -/* Test body decryption of arbitrary bytes (should always fail). */ +/* Test body decryption of arbitrary bytes. */ static void test_decrypt_body(const u8 *buf) { struct crypto_state cs_in = init_cs_in; - assert(cryptomsg_decrypt_body(buf, &cs_in, buf) == NULL); + cryptomsg_decrypt_body(buf, &cs_in, buf); } void run(const u8 *data, size_t size)