libubox/tests/cram
Zefir Kurtisi a0dbcf8b8f tests: add blob-buffer overflow test
The blob buffer has no limitation in place
to prevent buflen to exceed maximum size.

This commit adds a test to demonstrate how
a blob increases past the maximum allowd
size of 16MB. It continuously adds chunks
of 64KB and with the 255th one blob_add()
returns a valid attribute pointer but the
blob's buflen does not increase.

The test is used to demonstrate the
failure, which is fixed with a follow-up
commit.

Signed-off-by: Zefir Kurtisi <zefir.kurtisi@gmail.com>
[adjusted test case for cram usage]
Signed-off-by: Petr Štetiar <ynezz@true.cz>
2021-04-29 15:34:21 +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: cram: test_base64: really fix failing tests 2021-03-03 18:26:52 +01:00
test_blob_buflen.t tests: add blob-buffer overflow test 2021-04-29 15:34:21 +02: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_blobmsg_types.t libubox: tests: add more blobmsg/json test cases 2021-03-09 21:53:14 +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