[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <148618ec-f1f6-94e1-6e52-2a831d99302d@iogearbox.net>
Date: Wed, 3 Jul 2019 12:21:40 +0200
From: Daniel Borkmann <daniel@...earbox.net>
To: Andrii Nakryiko <andriin@...com>, andrii.nakryiko@...il.com,
bpf@...r.kernel.org, netdev@...r.kernel.org, ast@...com,
magnus.karlsson@...el.com
Subject: Re: [PATCH v2 bpf-next] libbpf: fix GCC8 warning for strncpy
On 07/02/2019 05:16 PM, Andrii Nakryiko wrote:
> GCC8 started emitting warning about using strncpy with number of bytes
> exactly equal destination size, which is generally unsafe, as can lead
> to non-zero terminated string being copied. Use IFNAMSIZ - 1 as number
> of bytes to ensure name is always zero-terminated.
>
> Cc: Magnus Karlsson <magnus.karlsson@...el.com>
> Signed-off-by: Andrii Nakryiko <andriin@...com>
Applied, thanks!
Powered by blists - more mailing lists