<div><br></div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Dec 25, 2019 at 1:48 AM Petr Štetiar <<a href="mailto:ynezz@true.cz">ynezz@true.cz</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Khem Raj <<a href="mailto:raj.khem@gmail.com" target="_blank">raj.khem@gmail.com</a>> [2019-12-24 14:15:26]:<br>
<br>
> On Tue, Dec 24, 2019 at 1:51 PM Petr Štetiar <<a href="mailto:ynezz@true.cz" target="_blank">ynezz@true.cz</a>> wrote:<br>
> <br>
> > Khem Raj <<a href="mailto:raj.khem@gmail.com" target="_blank">raj.khem@gmail.com</a>> [2019-12-24 10:02:13]:<br>
> ><br>
> > Hi,<br>
> ><br>
> > use "PATCH libubox" subject prefix, because there is no blobmsg.c file in<br>
> > the<br>
> > main tree.<br>
> ><br>
> > > Fixes error: '__builtin_strcpy' offset 6 from the object at 'attr' is<br>
> > out of<br>
> > > the bounds of referenced subobject 'name' with type 'uint8_t[0]' {aka<br>
> > > 'unsigned char[0]'} at offset 6 [-Werror=array-bounds]<br>
<br>
What about following fix[1]? The target hdr->name buffer has already the<br>
terminating 0 included as blobmsg_hdrlen has strlen+1 and blob_new() memsets<br>
the buffer to 0.<br>
<br>
1. <a href="https://gitlab.com/ynezz/openwrt-libubox/commit/3775b3aa28de8c20d96b6f02786a327423b0748a" rel="noreferrer" target="_blank">https://gitlab.com/ynezz/openwrt-libubox/commit/3775b3aa28de8c20d96b6f02786a327423b0748a</a><br>
<br>