News for hackers. Stuff that matters.
Re:Debunking the Google Interview Myth by danvet on Wednesday January 05, 2011 @02:46AM (#2070303)
Frankly, 0xdeadbeef is a rather bad value for a pointer poison: It doesn't have enough leading zeros to be caught in unmapped area used to catch null pointer access (it has a high change of being a valid kernel address on linux if you have about 700mb of ram). And there are not enough zeros at the end to still recognize it if the access is to a offset within the array/structure (as it usually happens).

Not catching the usage of a poisoned pointer on first access creates enormous amounts of fun - normally preventing any meaningful analysis of dumps.

Re:Debunking the Google Interview Myth by demallien on Wednesday January 05, 2011 @03:29AM (#2070365)
Agreed - not only do I find "DEAD BEEF" as a rather gross concept, but there are technical flaws, as you point out. I personally prefer the simple, form-matches-function 0x0000DEAD. Yup, that pointer's dead baby!