Course Solutions Uncategorized (Solved) : Buffer Overflow Attack Addresses Decided Following Variables Void Foo Int Int X Static Int Q27078021 . . . .

(Solved) : Buffer Overflow Attack Addresses Decided Following Variables Void Foo Int Int X Static Int Q27078021 . . . .

 

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 segment Text segment Low address)

(High address) Stack Heap BSS segment Data

OR

PayPal Gateway not configured

OR

PayPal Gateway not configured

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post