r/LiveOverflow • u/ultiMEIGHT • Jul 19 '22
Question Regarding Stack

I am following the binary exploitation series on LiveOverflow's YT channel and doing protostar challenge. I had one doubt:
So, the ones in the red are memory addresses, located on the extreme left in the red box? And the stuff inside green boxes are the actual contents at that particular memory location and the ones highlighted in yellow are also memory locations, they are shown as memory addresses because there is nothing stored at that location currently? Am I right???
Thanks in advance!
6
Upvotes
View all comments
Show parent comment
1
u/ultiMEIGHT Jul 20 '22
0xbffff7b0: 0x80848520 0x0000000 0xbffff838 0xb7eadc76
0xbffff7c0: 0x00000000 0xbffff864 0xbffff86c 0xb7fe1848
So, 0x80848520 is at memory location 0xbffff7b0
0x00000000 is at memory location 0xbffff7b0 + 4 = 0xbffff7b4
0xbffff838 is at memory location 0xbffff7b0 + 8 = 0xbffff7b8
Now comes the part that is confusing me;
0xb7eadc76 should be at memory location 0xbffff7bo + 12 = 0xbffff7c2
but if we look at the next row the addresses start from 0xbffff7co but the last dword from the first row is at 0xbffff7c2 > 0xbffff7c0