Advertisement
Guest User

Untitled

a guest
Feb 25th, 2020
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.04 KB | None | 0 0
  1. ubuntuvm@ubuntuvm-VirtualBox:~/stack_overflow$ ./so hi
  2. [BEFORE] buffer_two is at 0x7ffd58ef9440 and contains 'two'
  3. [BEFORE] buffer_one is at 0x7ffd58ef9430 and contains 'one'
  4. [BEFORE] value is at 0x7ffd58ef942c and is 5 (0x00000005)
  5.  
  6. [STRCPY] copying 2 bytes into buffer_two
  7.  
  8. [AFTER] buffer_two is at 0x7ffd58ef9440 and contains 'hi'
  9. [AFTER] buffer_one is at 0x7ffd58ef9430 and contains 'one'
  10. [AFTER] value is at 0x7ffd58ef942c and is 5 (0x00000005)
  11. ubuntuvm@ubuntuvm-VirtualBox:~/stack_overflow$ ./so hiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii
  12. [BEFORE] buffer_two is at 0x7ffd4247a830 and contains 'two'
  13. [BEFORE] buffer_one is at 0x7ffd4247a820 and contains 'one'
  14. [BEFORE] value is at 0x7ffd4247a81c and is 5 (0x00000005)
  15.  
  16. [STRCPY] copying 39 bytes into buffer_two
  17.  
  18. [AFTER] buffer_two is at 0x7ffd4247a830 and contains 'hiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii'
  19. [AFTER] buffer_one is at 0x7ffd4247a820 and contains 'one'
  20. [AFTER] value is at 0x7ffd4247a81c and is 5 (0x00000005)
  21. *** stack smashing detected ***: ./so terminated
  22. Aborted (core dumped)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement