lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:   Tue, 2 Jan 2018 03:29:17 -0800
From:   Max Filippov <jcmvbkbc@...il.com>
To:     Arnd Bergmann <arnd@...db.de>
Cc:     Andrew Morton <akpm@...ux-foundation.org>,
        Chris Zankel <chris@...kel.net>,
        Linux-Arch <linux-arch@...r.kernel.org>,
        LKML <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] xtensa: shut up gcc-8 warnings

On Tue, Jan 2, 2018 at 3:00 AM, Arnd Bergmann <arnd@...db.de> wrote:
> Many uses of strncpy() on xtensa causes  a warning like
>
> arch/xtensa/include/asm/string.h:56:42: warning: array subscript is above array bounds [-Warray-bounds]
>    : "0" (__dest), "1" (__src), "r" (__src+__n)
>
> This avoids the warning by turning the pointer arithmetic into an
> integer operation that does not get checked the same way.
>
> Signed-off-by: Arnd Bergmann <arnd@...db.de>
> ---
>  arch/xtensa/include/asm/string.h | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)

Thanks, applied to my xtensa tree.

-- Max

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ