Skip to content

Building 70 Projects ranging from beginner to advanced so anyone can β€” learn from, build upon, use as a reference, or even copy directly. Owned by my cybersecurity company πŸ‘‡

3.8 KB
Raw Blame
=================================================================
==53775==ERROR: AddressSanitizer: heap-use-after-free on address 0x7bb85b5e0047 at pc 0x563628b79cd7 bp 0x7ffe7d4212d0 sp 0x7ffe7d4212c8
READ of size 1 at 0x7bb85b5e0047 thread T0
    #0 0x563628b79cd6  (/work/target/doc07lab/asanlab+0x114cd6) (BuildId: b6da90f37d8cf516006cff859e0505ede0b9cdb7)
    #1 0x563628b798f2  (/work/target/doc07lab/asanlab+0x1148f2) (BuildId: b6da90f37d8cf516006cff859e0505ede0b9cdb7)
    #2 0x7f885c1d61c9  (/lib/x86_64-linux-gnu/libc.so.6+0x2a1c9) (BuildId: 8e9fd827446c24067541ac5390e6f527fb5947bb)
    #3 0x7f885c1d628a  (/lib/x86_64-linux-gnu/libc.so.6+0x2a28a) (BuildId: 8e9fd827446c24067541ac5390e6f527fb5947bb)
    #4 0x563628a91354  (/work/target/doc07lab/asanlab+0x2c354) (BuildId: b6da90f37d8cf516006cff859e0505ede0b9cdb7)

0x7bb85b5e0047 is located 7 bytes inside of 32-byte region [0x7bb85b5e0040,0x7bb85b5e0060)
freed by thread T0 here:
    #0 0x563628b34daa  (/work/target/doc07lab/asanlab+0xcfdaa) (BuildId: b6da90f37d8cf516006cff859e0505ede0b9cdb7)
    #1 0x563628b79ca1  (/work/target/doc07lab/asanlab+0x114ca1) (BuildId: b6da90f37d8cf516006cff859e0505ede0b9cdb7)
    #2 0x563628b798f2  (/work/target/doc07lab/asanlab+0x1148f2) (BuildId: b6da90f37d8cf516006cff859e0505ede0b9cdb7)
    #3 0x7f885c1d61c9  (/lib/x86_64-linux-gnu/libc.so.6+0x2a1c9) (BuildId: 8e9fd827446c24067541ac5390e6f527fb5947bb)
    #4 0x7f885c1d628a  (/lib/x86_64-linux-gnu/libc.so.6+0x2a28a) (BuildId: 8e9fd827446c24067541ac5390e6f527fb5947bb)
    #5 0x563628a91354  (/work/target/doc07lab/asanlab+0x2c354) (BuildId: b6da90f37d8cf516006cff859e0505ede0b9cdb7)

previously allocated by thread T0 here:
    #0 0x563628b35048  (/work/target/doc07lab/asanlab+0xd0048) (BuildId: b6da90f37d8cf516006cff859e0505ede0b9cdb7)
    #1 0x563628b79c81  (/work/target/doc07lab/asanlab+0x114c81) (BuildId: b6da90f37d8cf516006cff859e0505ede0b9cdb7)
    #2 0x563628b798f2  (/work/target/doc07lab/asanlab+0x1148f2) (BuildId: b6da90f37d8cf516006cff859e0505ede0b9cdb7)
    #3 0x7f885c1d61c9  (/lib/x86_64-linux-gnu/libc.so.6+0x2a1c9) (BuildId: 8e9fd827446c24067541ac5390e6f527fb5947bb)
    #4 0x7f885c1d628a  (/lib/x86_64-linux-gnu/libc.so.6+0x2a28a) (BuildId: 8e9fd827446c24067541ac5390e6f527fb5947bb)
    #5 0x563628a91354  (/work/target/doc07lab/asanlab+0x2c354) (BuildId: b6da90f37d8cf516006cff859e0505ede0b9cdb7)

SUMMARY: AddressSanitizer: heap-use-after-free (/work/target/doc07lab/asanlab+0x114cd6) (BuildId: b6da90f37d8cf516006cff859e0505ede0b9cdb7) 
Shadow bytes around the buggy address:
  0x7bb85b5dfd80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x7bb85b5dfe00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x7bb85b5dfe80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x7bb85b5dff00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x7bb85b5dff80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
=>0x7bb85b5e0000: fa fa 00 00 00 fa fa fa[fd]fd fd fd fa fa fa fa
  0x7bb85b5e0080: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x7bb85b5e0100: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x7bb85b5e0180: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x7bb85b5e0200: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x7bb85b5e0280: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
Shadow byte legend (one shadow byte represents 8 application bytes):
  Addressable:           00
  Partially addressable: 01 02 03 04 05 06 07 
  Heap left redzone:       fa
  Freed heap region:       fd
  Stack left redzone:      f1
  Stack mid redzone:       f2
  Stack right redzone:     f3
  Stack after return:      f5
  Stack use after scope:   f8
  Global redzone:          f9
  Global init order:       f6
  Poisoned by user:        f7
  Container overflow:      fc
  Array cookie:            ac
  Intra object redzone:    bb
  ASan internal:           fe
  Left alloca redzone:     ca
  Right alloca redzone:    cb
==53775==ABORTING