a0dbcf8b8f
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> |
||
---|---|---|
.. | ||
inputs | ||
CMakeLists.txt | ||
test_avl.t | ||
test_base64.t | ||
test_blob_buflen.t | ||
test_blob_parse.t | ||
test_blobmsg.t | ||
test_blobmsg_check_array.t | ||
test_blobmsg_parse.t | ||
test_blobmsg_procd_instance.t | ||
test_blobmsg_types.t | ||
test_jshn.t | ||
test_json_script.t | ||
test_list.t | ||
test_runqueue.t |