[OpenWrt-Devel] [PATCH libubox 3/3] blobmsg: fix missing length checks
zajec5 at gmail.com
Mon May 25 12:49:01 EDT 2020
On 25.05.2020 17:19, Felix Fietkau wrote:
> 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
> Signed-off-by: Felix Fietkau <nbd at nbd.name>
Tested-by: Rafał Miłecki <rafal at milecki.pl>
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
More information about the openwrt-devel