Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
Firmware Musings 89AB 2B3B 47DC 99A5 1234 55AA 55AA 55AA Top 265 Figure 7-3: Proactively fill the stack with 0x55AA to find overrun problems. Note that the lower three words have been unused. 7.3 The Curse of Malloc( ) Since the stack is a source of trouble, it's reasonable to be paranoid and not allocate buffers and other sizable data structures as automatics. Watch out! Malloc( ), a quite logical alternative, brings its own set of problems. A program that dynamically allocates