Re: [OpenWrt-Devel] [PATCH libubox] blob: Check remaining size in blob_parse()

2020-01-26 Thread Hauke Mehrtens
On 1/26/20 4:14 PM, Hauke Mehrtens wrote: > This extends the blob_parse() function to check that no inner attribute > is bigger than the outside attribute. The blob_parse_untrusted() should > be used when we know the size of blob_attr *attr, in some other way. > > Signed-off-by: Hauke Mehrtens >

[OpenWrt-Devel] [PATCH libubox] blob: Check remaining size in blob_parse()

2020-01-26 Thread Hauke Mehrtens
This extends the blob_parse() function to check that no inner attribute is bigger than the outside attribute. The blob_parse_untrusted() should be used when we know the size of blob_attr *attr, in some other way. Signed-off-by: Hauke Mehrtens --- blob.c | 3 ++- 1 file changed, 2 insertions(+),