thegreatunclean

Untitled

Sep 3rd, 2016
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.91 KB | None | 0 0
  1. Enter the number of bits of first binary string
  2. 4
  3. Enter the first string
  4. 1111
  5. Enter the number of bits of the second string
  6. 5
  7. Enter the second string
  8. 00000
  9. =================================================================
  10. ==2226==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x60200000ecb2 at pc 0x0000004bfe77 bp 0x7ffe547da2f0 sp 0x7ffe547da2e8
  11. WRITE of size 1 at 0x60200000ecb2 thread T0
  12. #0 0x4bfe76 in subtract /home/rob/Documents/reddit.c:95:5
  13. #1 0x4c2471 in multiply /home/rob/Documents/reddit.c:167:21
  14. #2 0x4c21b7 in multiply /home/rob/Documents/reddit.c:163:23
  15. #3 0x4c21b7 in multiply /home/rob/Documents/reddit.c:163:23
  16. #4 0x4c2c64 in main /home/rob/Documents/reddit.c:190:22
  17. #5 0x7f37fa78eb44 in __libc_start_main /build/glibc-uPj9cH/glibc-2.19/csu/libc-start.c:287
  18. #6 0x4bd01c in _start (/home/rob/Documents/a.out+0x4bd01c)
  19.  
  20. 0x60200000ecb2 is located 0 bytes to the right of 2-byte region [0x60200000ecb0,0x60200000ecb2)
  21. allocated by thread T0 here:
  22. #0 0x49f99b in __interceptor_malloc (/home/rob/Documents/a.out+0x49f99b)
  23. #1 0x4bfa6b in subtract /home/rob/Documents/reddit.c:91:17
  24. #2 0x4c2471 in multiply /home/rob/Documents/reddit.c:167:21
  25. #3 0x4c21b7 in multiply /home/rob/Documents/reddit.c:163:23
  26. #4 0x4c21b7 in multiply /home/rob/Documents/reddit.c:163:23
  27. #5 0x4c2c64 in main /home/rob/Documents/reddit.c:190:22
  28. #6 0x7f37fa78eb44 in __libc_start_main /build/glibc-uPj9cH/glibc-2.19/csu/libc-start.c:287
  29.  
  30. SUMMARY: AddressSanitizer: heap-buffer-overflow /home/rob/Documents/reddit.c:95 subtract
  31. Shadow bytes around the buggy address:
  32. 0x0c047fff9d40: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  33. 0x0c047fff9d50: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  34. 0x0c047fff9d60: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  35. 0x0c047fff9d70: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  36. 0x0c047fff9d80: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  37. =>0x0c047fff9d90: fa fa fa fa fa fa[02]fa fa fa 03 fa fa fa 03 fa
  38. 0x0c047fff9da0: fa fa 03 fa fa fa 02 fa fa fa 02 fa fa fa 02 fa
  39. 0x0c047fff9db0: fa fa 02 fa fa fa 02 fa fa fa 02 fa fa fa 02 fa
  40. 0x0c047fff9dc0: fa fa 02 fa fa fa 02 fa fa fa 02 fa fa fa 02 fa
  41. 0x0c047fff9dd0: fa fa 02 fa fa fa 02 fa fa fa 03 fa fa fa 02 fa
  42. 0x0c047fff9de0: fa fa 03 fa fa fa 03 fa fa fa 04 fa fa fa 03 fa
  43. Shadow byte legend (one shadow byte represents 8 application bytes):
  44. Addressable: 00
  45. Partially addressable: 01 02 03 04 05 06 07
  46. Heap left redzone: fa
  47. Heap right redzone: fb
  48. Freed heap region: fd
  49. Stack left redzone: f1
  50. Stack mid redzone: f2
  51. Stack right redzone: f3
  52. Stack partial redzone: f4
  53. Stack after return: f5
  54. Stack use after scope: f8
  55. Global redzone: f9
  56. Global init order: f6
  57. Poisoned by user: f7
  58. Container overflow: fc
  59. ASan internal: fe
  60. ==2226==ABORTING
Advertisement
Add Comment
Please, Sign In to add comment