diff options
author | Felix Fietkau <nbd@nbd.name> | 2020-05-25 13:40:04 +0300 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2020-05-26 11:06:53 +0300 |
commit | 66195aee50424cbda0c2d858014e4cc58a2dc029 (patch) | |
tree | b0efa1fda5b26de82c69ddae87c99c2b831e9fce /blobmsg.h | |
parent | 639c29d19717616b809d9a1e9042461ab8024370 (diff) |
blobmsg: fix missing length checks
blobmsg_check_attr_len was calling blobmsg_check_data for some, but not all
attribute types. These checks was missing for arrays and tables.
Additionally, the length check in blobmsg_check_data was a bit off, since
it was comparing the blobmsg data length against the raw blob attr length.
Fix this by checking the raw blob length against the buffer length in
blobmsg_hdr_from_blob
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'blobmsg.h')
0 files changed, 0 insertions, 0 deletions