...because the world doesn't have enough bloggers
Sunday, July 1. 2007
0x8badf00d
Trackbacks
Trackback specific URI for this entry
No Trackbacks
Comments
Display comments as
(Linear | Threaded)
There are quite a few places in Darwin/OSX that fill uninitialized memory with 0x8badf00d, in exactly the same way that AIX-influenced PowerPC CFM stuff filled memory with 0xdeadbeef.
They're memorable numbers that are unaligned and point to unmapped high memory, pretty much ensuring that you get an unhappy CPU if you use one as a pointer. Much better than 0.
They're memorable numbers that are unaligned and point to unmapped high memory, pretty much ensuring that you get an unhappy CPU if you use one as a pointer. Much better than 0.