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

2020-05-25 Thread Rafał Miłecki
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 lengt

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

2020-05-25 Thread Felix Fietkau
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 thi