diff options
author | Petr Štetiar <ynezz@true.cz> | 2020-05-26 10:22:13 +0300 |
---|---|---|
committer | Petr Štetiar <ynezz@true.cz> | 2020-05-26 10:48:07 +0300 |
commit | cf2e8eb485abc30ed8acc51ba5cb50d2bbc8e3d1 (patch) | |
tree | 72413a8c52de4c79115dc80bec2db9c7c6b4e0e2 /blobmsg.c | |
parent | 86818eaa976b0d396c1eabfdce307c33a48c0309 (diff) |
tests: add fuzzer seed file for crash in blob_len
Following regression was introduced in commit 5e75160f4878 ("blobmsg:
fix attrs iteration in the blobmsg_check_array_len()"):
Thread 1 "test-fuzz" received signal SIGSEGV, Segmentation fault.
in blob_len (attr=0x6020000100d4) at libubox/blob.h:102
102 return (be32_to_cpu(attr->id_len) & BLOB_ATTR_LEN_MASK) - sizeof(struct blob_attr);
blob_len (attr=0x6020000100d4) at /libubox/blob.h:102
blob_raw_len (attr=0x6020000100d4) at /libubox/blob.h:111
blob_pad_len (attr=0x6020000100d4) at /libubox/blob.h:120
blobmsg_check_array_len (attr=0x6020000000d0, type=0, blob_len=10) at /libubox/blobmsg.c:145
fuzz_blobmsg_parse (data=0x6020000000d0 "\001\004", size=10) at /libubox/tests/fuzz/test-fuzz.c:57
Signed-off-by: Petr Štetiar <ynezz@true.cz>
Diffstat (limited to 'blobmsg.c')
0 files changed, 0 insertions, 0 deletions