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] [thread-next>] [day] [month] [year] [list]
Date:   Tue, 24 Oct 2023 16:57:26 -0700
From:   Kees Cook <>
To:     Justin Stitt <>
Cc:     Heiko Carstens <>,
        Vasily Gorbik <>,
        Alexander Gordeev <>,
        Christian Borntraeger <>,
        Sven Schnelle <>,,,
Subject: Re: [PATCH] s390/sclp: replace deprecated strncpy with strtomem

On Tue, Oct 24, 2023 at 04:46:04PM -0700, Kees Cook wrote:
> > Instead use strtomem() as `` is already marked as nonstring:
> > |       char id[4] __nonstring;
> I'm surprised the compiler didn't complain about this -- I thought that
> was the point of the __nonstring attribute: to diagnose when used with a
> string function. Hmpf.

Wow. GCC only warns if you call strlen() on it, but literally nothing
else... :(

Kees Cook

Powered by blists - more mailing lists