Re: How is NULL pointer dereference handled inside kernel?

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

 




> The difference here I think is not between 0 & NULL
subtracting 4 or 8 from base pointer,rbp is not a talk abt difference of
zero and NULL
as we saw both times it was zero which was moved
> >         movq    $0, -8(%rbp)   <------------
> >         movl    $0, -4(%rbp)    <-------------

> but between an integer & a pointer.
Exactly kishore, thatz what it is !!!! :)

> On a 64 bit system while
> int is still 4 bytes, the pointer could be (because I had read
> somewhere that some 64 bit archs use 32 bit pointers
> in some cases) 8 bytes.




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


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux