libubox/tests
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
..
cram tests: add fuzzer seed file for crash in blob_len 2020-05-26 09:48:07 +02:00
fuzz tests: add fuzzer seed file for crash in blob_len 2020-05-26 09:48:07 +02:00
shunit2 tests: include json script shunit2 based testing 2020-01-12 19:17:17 +01:00
CMakeLists.txt tests: include json script shunit2 based testing 2020-01-12 19:17:17 +01:00
test-avl.c add cram based unit tests 2019-11-24 13:26:58 +01:00
test-b64.c tests: prefer dynamically allocated buffers 2020-01-20 16:54:10 +01:00
test-b64_decode.c base64: fix possible null pointer dereference 2019-11-24 13:26:58 +01:00
test-b64_encode.c base64: fix possible null pointer dereference 2019-11-24 13:26:58 +01:00
test-blob-parse.c tests: prefer dynamically allocated buffers 2020-01-20 16:54:10 +01:00
test-blobmsg-parse.c tests: prefer dynamically allocated buffers 2020-01-20 16:54:10 +01:00
test-blobmsg-procd-instance.c tests: prefer dynamically allocated buffers 2020-01-20 16:54:10 +01:00
test-blobmsg.c blobmsg_json: prefer snprintf usage 2020-01-20 16:54:10 +01:00
test-blobmsg_check_array.c tests: blobmsg: add test case 2020-02-27 21:56:20 +01:00
test-json-script.c add cram based unit tests 2019-11-24 13:26:58 +01:00
test-list.c tests: list: add test case for list_empty iterator 2020-05-21 13:43:00 +02:00
test-runqueue.c tests: runqueue: try to fix race on GitLab CI 2020-05-21 16:28:29 +02:00