libubox/tests
Petr Štetiar cd75136b13 blobmsg: fix wrong payload len passed from blobmsg_check_array
Fix incorrect use of blob_raw_len() on passed blobmsg to
blobmsg_check_array_len()  introduced in commit b0e21553ae ("blobmsg:
add _len variants for all attribute checking methods") by using correct
blobmsg_len().

This wrong (higher) length was then for example causing issues in
procd's instance_config_parse_command() where blobmsg_check_attr_list()
was failing sanity checking of service command, thus resulting in the
startup failures of some services like collectd, nlbwmon and samba4.

Ref: http://lists.infradead.org/pipermail/openwrt-devel/2019-December/020840.html
Fixes: b0e21553ae ("blobmsg: add _len variants for all attribute checking methods")
Reported-by: Hannu Nyman <hannu.nyman@welho.com>
Tested-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
Signed-off-by: Petr Štetiar <ynezz@true.cz>
2019-12-28 21:17:46 +01:00
..
cram blobmsg: fix wrong payload len passed from blobmsg_check_array 2019-12-28 21:17:46 +01:00
fuzz tests: fuzz: fuzz _len variants of checking methods 2019-12-25 10:31:58 +01:00
CMakeLists.txt tests: add libFuzzer based tests 2019-12-25 10:31:58 +01:00
test-avl.c add cram based unit tests 2019-11-24 13:26:58 +01:00
test-b64.c add cram based unit tests 2019-11-24 13:26:58 +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: use blob_parse_untrusted variant 2019-12-25 10:31:58 +01:00
test-blobmsg-parse.c tests: add test cases for blobmsg parsing 2019-12-25 10:31:58 +01:00
test-blobmsg-procd-instance.c blobmsg: fix wrong payload len passed from blobmsg_check_array 2019-12-28 21:17:46 +01:00
test-blobmsg.c add cram based unit tests 2019-11-24 13:26:58 +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