libubox/tests
Petr Štetiar 5c0faaf4f5 tests: prefer dynamically allocated buffers
Help detecting Valgrind OOB reads and other issues.

 Conditional jump or move depends on uninitialised value(s)
   at 0x5452886: blobmsg_parse (blobmsg.c:203)
   by 0x400A8E: test_blobmsg (tests/test-blobmsg-parse.c:66)
   by 0x400A8E: main (tests/test-blobmsg-parse.c:82)

 Conditional jump or move depends on uninitialised value(s)
   at 0x545247F: blobmsg_check_name (blobmsg.c:39)
   by 0x545247F: blobmsg_check_attr_len (blobmsg.c:79)
   by 0x5452710: blobmsg_parse_array (blobmsg.c:159)
   by 0x400AB8: test_blobmsg (tests/test-blobmsg-parse.c:69)
   by 0x400AB8: main (tests/test-blobmsg-parse.c:82)

 Conditional jump or move depends on uninitialised value(s)
   at 0x54524A0: blobmsg_check_name (blobmsg.c:42)
   by 0x54524A0: blobmsg_check_attr_len (blobmsg.c:79)
   by 0x5452710: blobmsg_parse_array (blobmsg.c:159)
   by 0x400AB8: test_blobmsg (tests/test-blobmsg-parse.c:69)
   by 0x400AB8: main (tests/test-blobmsg-parse.c:82)

Ref: http://lists.infradead.org/pipermail/openwrt-devel/2020-January/021204.html
Signed-off-by: Petr Štetiar <ynezz@true.cz>
2020-01-20 16:54:10 +01:00
..
cram blobmsg_json: prefer snprintf usage 2020-01-20 16:54:10 +01:00
fuzz tests: prefer dynamically allocated buffers 2020-01-20 16:54:10 +01: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-json-script.c add cram based unit tests 2019-11-24 13:26:58 +01:00
test-list.c add cram based unit tests 2019-11-24 13:26:58 +01:00
test-runqueue.c add cram based unit tests 2019-11-24 13:26:58 +01:00