Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.openwrt.org/project/libubox.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2020-05-25 13:40:04 +0300
committerFelix Fietkau <nbd@nbd.name>2020-05-26 11:06:53 +0300
commit66195aee50424cbda0c2d858014e4cc58a2dc029 (patch)
treeb0efa1fda5b26de82c69ddae87c99c2b831e9fce /blobmsg.h
parent639c29d19717616b809d9a1e9042461ab8024370 (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