libubox/tests/cram
Petr Štetiar cf2e8eb485 tests: add fuzzer seed file for crash in blob_len
Following regression was introduced in commit 5e75160f48 ("blobmsg:
fix attrs iteration in the blobmsg_check_array_len()"):

 Thread 1 "test-fuzz" received signal SIGSEGV, Segmentation fault.
  in blob_len (attr=0x6020000100d4) at libubox/blob.h:102
  102             return (be32_to_cpu(attr->id_len) & BLOB_ATTR_LEN_MASK) - sizeof(struct blob_attr);

 blob_len (attr=0x6020000100d4) at /libubox/blob.h:102
 blob_raw_len (attr=0x6020000100d4) at /libubox/blob.h:111
 blob_pad_len (attr=0x6020000100d4) at /libubox/blob.h:120
 blobmsg_check_array_len (attr=0x6020000000d0, type=0, blob_len=10) at /libubox/blobmsg.c:145
 fuzz_blobmsg_parse (data=0x6020000000d0 "\001\004", size=10) at /libubox/tests/fuzz/test-fuzz.c:57

Signed-off-by: Petr Štetiar <ynezz@true.cz>
2020-05-26 09:48:07 +02:00
..
inputs blob: make blob_parse_untrusted more permissive 2020-05-24 16:54:37 +02:00
CMakeLists.txt add cram based unit tests 2019-11-24 13:26:58 +01:00
test_avl.t tests: add unit tests covered with Clang sanitizers 2019-12-25 10:31:58 +01:00
test_base64.t tests: add unit tests covered with Clang sanitizers 2019-12-25 10:31:58 +01:00
test_blob_parse.t tests: add fuzzer seed file for crash in blob_len 2020-05-26 09:48:07 +02:00
test_blobmsg.t blobmsg_json: prefer snprintf usage 2020-01-20 16:54:10 +01:00
test_blobmsg_check_array.t tests: blobmsg: add test case 2020-02-27 21:56:20 +01:00
test_blobmsg_parse.t tests: add fuzzer seed file for crash in blob_len 2020-05-26 09:48:07 +02:00
test_blobmsg_procd_instance.t blobmsg: fix wrong payload len passed from blobmsg_check_array 2019-12-28 21:17:46 +01:00
test_jshn.t tests: add unit tests covered with Clang sanitizers 2019-12-25 10:31:58 +01:00
test_json_script.t tests: add unit tests covered with Clang sanitizers 2019-12-25 10:31:58 +01:00
test_list.t tests: list: add test case for list_empty iterator 2020-05-21 13:43:00 +02:00
test_runqueue.t libubox: runqueue: fix use-after-free bug 2020-05-21 15:58:46 +02:00