[OpenWrt-Devel] [PATCH] use strncpy instead of strcpy

Khem Raj raj.khem at gmail.com
Tue Dec 24 17:15:26 EST 2019


On Tue, Dec 24, 2019 at 1:51 PM Petr Štetiar <ynezz at true.cz> wrote:

> Khem Raj <raj.khem at gmail.com> [2019-12-24 10:02:13]:
>
> Hi,
>
> use "PATCH libubox" subject prefix, because there is no blobmsg.c file in
> the
> main tree.
>
> > Fixes error: '__builtin_strcpy' offset 6 from the object at 'attr' is
> out of
> > the bounds of referenced subobject 'name' with type 'uint8_t[0]' {aka
> > 'unsigned char[0]'} at offset 6 [-Werror=array-bounds]
>
> out of curiosity, which target/compiler is that? I'm not able to reproduce
> it on any of the pre-selected CI targets[1].


This is gcc trunk

>
>
> 1. https://gitlab.com/ynezz/openwrt-libubox/pipelines/105374045/builds
>
> -- ynezz
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.infradead.org/pipermail/openwrt-devel/attachments/20191224/9e3eae80/attachment.htm>
-------------- next part --------------
_______________________________________________
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