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> |
||
---|---|---|
.. | ||
cram | ||
fuzz | ||
shunit2 | ||
CMakeLists.txt | ||
test-avl.c | ||
test-b64.c | ||
test-b64_decode.c | ||
test-b64_encode.c | ||
test-blob-buflen.c | ||
test-blob-parse.c | ||
test-blobmsg-parse.c | ||
test-blobmsg-procd-instance.c | ||
test-blobmsg-types.c | ||
test-blobmsg.c | ||
test-blobmsg_check_array.c | ||
test-json-script.c | ||
test-list.c | ||
test-runqueue.c |