[OpenWrt-Devel] [PATCH libubox 3/3] blobmsg: fix missing length checks

Rafał Miłecki 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
> blobmsg_hdr_from_blob
> 
> 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
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list