Re: libkern stack_protector

看板DFBSD_kernel作者時間21年前 (2005/01/29 21:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串2/4 (看更多)
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
文章代碼(AID): #11-v1X00 (DFBSD_kernel)
文章代碼(AID): #11-v1X00 (DFBSD_kernel)