DragonFly BSD
DragonFly kernel List (threaded) for 2005-01
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: libkern stack_protector


From: Joerg Sonnenberger <joerg@xxxxxxxxxxxxxxxxx>
Date: Sat, 29 Jan 2005 14:28:41 +0100
Mail-followup-to: kernel@crater.dragonflybsd.org

On Fri, Jan 28, 2005 at 05:29:03PM -0500, Robert Connolly wrote:
> Hello. In regards to your:
> src/sys/libkern/stack_protector.c
> 
> You have:
> #if BYTE_ORDER == LITTLE_ENDIAN
> int __guard = 0x00000aff;
> #else
> int __guard = 0xff0a0000;
> #endif
> 
> Why do you check for endianness? 

Because the order of the cookie bytes changes the meaning of
how overflowing buffers are used.

Joerg

> 
> robert



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