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] [thread-next>] [day] [month] [year] [list]
Message-ID: <20071129123139.GB2458@hacking>
Date:	Thu, 29 Nov 2007 20:31:39 +0800
From:	WANG Cong <xiyou.wangcong@...il.com>
To:	Benny Halevy <bhalevy@...asas.com>
Cc:	Ming Lei <tom.leiming@...il.com>,
	Jan Engelhardt <jengelh@...putergmbh.de>,
	"J.A. Magallón" <jamagallon@....com>,
	"Linux-Kernel," <linux-kernel@...r.kernel.org>
Subject: Re: void* arithmnetic

On Thu, Nov 29, 2007 at 09:38:46AM +0200, Benny Halevy wrote:
>On Nov. 29, 2007, 3:19 +0200, "Ming Lei" <tom.leiming@...il.com> wrote:
>> 2007/11/29, Jan Engelhardt <jengelh@...putergmbh.de>:
>>> On Nov 29 2007 01:05, J.A. Magallón wrote:
>>>> Since begin of the ages the build of the nvidia driver says things like
>>>> this:
>>>>
>>> Explicitly adding -Wpointer-arith to ones own Makefile is like
>>> admitting the code might be problematic. :->
>>>
>>>
>>> I think sizeof(void *) == 1 is taken as granted as sizeof(int) >= 4
>>> these days. Sigh.
>> sizeof(void *) == 4, sizeof(void)==1, :)
>well, sizeof(void *) == sizeof(unsigned long) maybe :)

I *heard* that on Win64 sizeof(void *) > sizeof(long). But it's off-topic
here. ;-)


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ