Buffer OverFlow Attack
How are the addresses decided for the following variables?
void foo(int a) { int x; static int y; }
I guess ill answer my own question.
The variable y is a static variable that is uninitialized, so itis allocated in the BSS segment. The variable a is a localvariable, so they are stored on the program’s stack. Variables arestored locations for user-supplied variables within a runningprogram. Stacks are static locations of memory address space,whereas heaps are dynamic memory address spaces.
(High address) Stack Heap BSS segment Data
PayPal Gateway not configured
PayPal Gateway not configured