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 for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20081120.040923.228828982.davem@davemloft.net>
Date:	Thu, 20 Nov 2008 04:09:23 -0800 (PST)
From:	David Miller <davem@...emloft.net>
To:	kaber@...sh.net
Cc:	netdev@...r.kernel.org
Subject: Re: netlink: avoid memset of 0 bytes sparse warning

From: Patrick McHardy <kaber@...sh.net>
Date: Wed, 19 Nov 2008 14:56:12 +0100

>     netlink: avoid memset of 0 bytes sparse warning
>     
>     A netlink attribute padding of zero triggers this sparse warning:
>     
>     include/linux/netlink.h:245:8: warning: memset with byte count of 0
>     
>     Avoid the memset when the size parameter is constant and requires no padding.
>     
>     Signed-off-by: Patrick McHardy <kaber@...sh.net>

Applied to net-next-2.6, but I totally disagree with this sparse warning.

GCC even elides the memset entirely if it can determine the length
is constant and 0.

--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ