Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ubuntuvm@ubuntuvm-VirtualBox:~/stack_overflow$ ./so hi
- [BEFORE] buffer_two is at 0x7ffd58ef9440 and contains 'two'
- [BEFORE] buffer_one is at 0x7ffd58ef9430 and contains 'one'
- [BEFORE] value is at 0x7ffd58ef942c and is 5 (0x00000005)
- [STRCPY] copying 2 bytes into buffer_two
- [AFTER] buffer_two is at 0x7ffd58ef9440 and contains 'hi'
- [AFTER] buffer_one is at 0x7ffd58ef9430 and contains 'one'
- [AFTER] value is at 0x7ffd58ef942c and is 5 (0x00000005)
- ubuntuvm@ubuntuvm-VirtualBox:~/stack_overflow$ ./so hiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii
- [BEFORE] buffer_two is at 0x7ffd4247a830 and contains 'two'
- [BEFORE] buffer_one is at 0x7ffd4247a820 and contains 'one'
- [BEFORE] value is at 0x7ffd4247a81c and is 5 (0x00000005)
- [STRCPY] copying 39 bytes into buffer_two
- [AFTER] buffer_two is at 0x7ffd4247a830 and contains 'hiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii'
- [AFTER] buffer_one is at 0x7ffd4247a820 and contains 'one'
- [AFTER] value is at 0x7ffd4247a81c and is 5 (0x00000005)
- *** stack smashing detected ***: ./so terminated
- Aborted (core dumped)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement