SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 279 | Next

Shon Harris, Allen Harper, Chris Eagle, and Jonathan Ness

"Gray Hat Hacking, Second Edition"

First, several pieces of memory are allocated in different
sections of the process memory. When main is executed, funct1() is called with
an argument of 1. Once funct1() is called, the argument is passed to the function variable
called c. Next memory is allocated on the heap for a 10-byte string called str. Finally
the 5-byte string ???abcde??? is copied into the new variable called str. The function ends
and then the main() program ends.
CAUTION You must have a good grasp of this material before moving on in
the book. If you need to review any part of this chapter, please do so before
continuing.
PART III
Chapter 6: Programming Survival Skills
131
References
Smashing the Stack??¦, Aleph One www.phrack.org/archives/49/P49-14
How Memory Works http://computer.howstuffworks.com/c23.htm
Memory Concepts www.groar.org/expl/beginner/buffer1.txt
Little Endian vs. Big Endian www.rdrop.com/~cary/html/endian_faq.html
Intel Processors
There are several commonly used computer architectures. In this chapter, we will focus
on the Intel family of processors or architecture.
The term architecture simply refers to the way a particular manufacturer implemented
their processor. Since the bulk of the processors in use today are Intel 80x86, we will
further focus on that architecture.


Pages:
267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291