[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Secure Dereference of NULL-Pointer when using list.h



On 10/6/06, Ricard Wanderlof <ricard.wanderlof@xxxxxxxx> wrote:

On Thu, 5 Oct 2006, Jinesh K J wrote:


> In this case we only need to write this as:
>
> *( (volatile char *) 0);
>
> But unlike the value, the address is not volatile. It's not a variable.

I'm not sure I agree. A 'volatile char *' means 'a pointer to something
that is volatile'. However ...
Don't worry, I was talking about the address itself - when you say
&(*( (volatile char *) 0)), you get a constant right? not a variable.
We were talking about the same stuff here. Everything should be clear
by now - I hope so !


> &(*( (volatile char *) 0)); > > will still have no side effect. Only the char is volatile, not the > address, right? So,


-- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/