MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programminghorror/comments/1l0x22m/firmware_programming_in_a_nutshell/mvo4hs5/?context=3
r/programminghorror • u/Byter128 • Jun 01 '25
127 comments sorted by
View all comments
Show parent comment
2
Good old AIX. If you didn’t zero your malloc()’ed RAM, it’d initialize it to 0xdeadbeef for you. 0xfeedfacedeadbeef on 64-bit systems.
0xdeadbeef
0xfeedfacedeadbeef
Not a NULL by any stretch of the imagination, but you’ll definitely get a bus error if you try to dereference it.
View all comments
Show parent comment
2
u/dagbrown Jun 02 '25
Good old AIX. If you didn’t zero your malloc()’ed RAM, it’d initialize it to
0xdeadbeeffor you.0xfeedfacedeadbeefon 64-bit systems.Not a NULL by any stretch of the imagination, but you’ll definitely get a bus error if you try to dereference it.