Re: [PATCH] umdns: fix compilation with GCC 10

2021-04-04 Thread Hauke Mehrtens
On 8/31/20 10:51 PM, Rosen Penev wrote: On Aug 31, 2020, at 9:41 AM, Hauke Mehrtens wrote: On 8/31/20 11:35 AM, Petr Štetiar wrote: Rosen Penev [2020-08-31 02:06:50]: I compile with target GCC 10, not host. Then as you can see its probably some issue with GCC 10 for that target

Re: [PATCH] umdns: fix compilation with GCC 10

2020-08-31 Thread Rosen Penev
> On Aug 31, 2020, at 9:41 AM, Hauke Mehrtens wrote: > > On 8/31/20 11:35 AM, Petr Štetiar wrote: >> Rosen Penev [2020-08-31 02:06:50]: >> >>> I compile with target GCC 10, not host. >> >> Then as you can see its probably some issue with GCC 10 for that target >> (which >> one is that?)

Re: [PATCH] umdns: fix compilation with GCC 10

2020-08-31 Thread Hauke Mehrtens
On 8/31/20 11:35 AM, Petr Štetiar wrote: > Rosen Penev [2020-08-31 02:06:50]: > >> I compile with target GCC 10, not host. > > Then as you can see its probably some issue with GCC 10 for that target (which > one is that?) or something like that, because I'm not able to trigger that > with my

Re: [PATCH] umdns: fix compilation with GCC 10

2020-08-31 Thread Petr Štetiar
Rosen Penev [2020-08-31 02:06:50]: > I compile with target GCC 10, not host. Then as you can see its probably some issue with GCC 10 for that target (which one is that?) or something like that, because I'm not able to trigger that with my GCC 10. Your proposed fix seems not correct as well, as

Re: [PATCH] umdns: fix compilation with GCC 10

2020-08-31 Thread Rosen Penev
Sent from my iPhone > On Aug 31, 2020, at 01:29, Petr Štetiar wrote: > > Rosen Penev [2020-08-31 00:53:32]: > /service.c:242:10: error: 'strncpy' offset 6 from the object at 'b' is out of the bounds of referenced subobject 'name' with type 'uint8_t[]' {aka 'unsigned char[]'}

Re: [PATCH] umdns: fix compilation with GCC 10

2020-08-31 Thread Petr Štetiar
Rosen Penev [2020-08-31 00:53:32]: > >> /service.c:242:10: error: 'strncpy' offset 6 from the object at 'b' is > >> out of the bounds of referenced subobject 'name' with type 'uint8_t[]' > >> {aka 'unsigned char[]'} at offset 6 [-Werror=array-bounds] > >> 242 | s->id = strncpy(d_id,

Re: [PATCH] umdns: fix compilation with GCC 10

2020-08-31 Thread Rosen Penev
> On Aug 31, 2020, at 00:08, Petr Štetiar wrote: > > Rosen Penev [2020-08-30 15:07:03]: > > Hi, > >> /service.c:242:10: error: 'strncpy' offset 6 from the object at 'b' is >> out of the bounds of referenced subobject 'name' with type 'uint8_t[]' >> {aka 'unsigned char[]'} at offset 6

Re: [PATCH] umdns: fix compilation with GCC 10

2020-08-31 Thread Petr Štetiar
Rosen Penev [2020-08-30 15:07:03]: Hi, > /service.c:242:10: error: 'strncpy' offset 6 from the object at 'b' is > out of the bounds of referenced subobject 'name' with type 'uint8_t[]' > {aka 'unsigned char[]'} at offset 6 [-Werror=array-bounds] > 242 | s->id = strncpy(d_id, blobmsg_name(b),

[PATCH] umdns: fix compilation with GCC 10

2020-08-30 Thread Rosen Penev
The previous fix seems to not be enough. /service.c:242:10: error: 'strncpy' offset 6 from the object at 'b' is out of the bounds of referenced subobject 'name' with type 'uint8_t[]' {aka 'unsigned char[]'} at offset 6 [-Werror=array-bounds] 242 | s->id = strncpy(d_id, blobmsg_name(b), n);