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 πŸ‘‡

2.6 KB
Raw Blame
=================================================================
==53779==ERROR: AddressSanitizer: global-buffer-overflow on address 0x55783efd9df0 at pc 0x55783e649d80 bp 0x7ffe50cdfd30 sp 0x7ffe50cdfd28
WRITE of size 4 at 0x55783efd9df0 thread T0
    #0 0x55783e649d7f  (/work/target/doc07lab/asanlab+0x114d7f) (BuildId: b6da90f37d8cf516006cff859e0505ede0b9cdb7)
    #1 0x55783e649944  (/work/target/doc07lab/asanlab+0x114944) (BuildId: b6da90f37d8cf516006cff859e0505ede0b9cdb7)
    #2 0x7fde8d6041c9  (/lib/x86_64-linux-gnu/libc.so.6+0x2a1c9) (BuildId: 8e9fd827446c24067541ac5390e6f527fb5947bb)
    #3 0x7fde8d60428a  (/lib/x86_64-linux-gnu/libc.so.6+0x2a28a) (BuildId: 8e9fd827446c24067541ac5390e6f527fb5947bb)
    #4 0x55783e561354  (/work/target/doc07lab/asanlab+0x2c354) (BuildId: b6da90f37d8cf516006cff859e0505ede0b9cdb7)

0x55783efd9df0 is located 16 bytes before global variable 'g_sink' defined in 'asanlab.c' (0x55783efd9e00) of size 8
0x55783efd9df0 is located 0 bytes after global variable 'g_global' defined in 'asanlab.c' (0x55783efd9de0) of size 16
SUMMARY: AddressSanitizer: global-buffer-overflow (/work/target/doc07lab/asanlab+0x114d7f) (BuildId: b6da90f37d8cf516006cff859e0505ede0b9cdb7) 
Shadow bytes around the buggy address:
  0x55783efd9b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x55783efd9b80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x55783efd9c00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x55783efd9c80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x55783efd9d00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
=>0x55783efd9d80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00[f9]f9
  0x55783efd9e00: 00 f9 f9 f9 00 00 00 00 00 00 00 00 00 00 00 00
  0x55783efd9e80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x55783efd9f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x55783efd9f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x55783efda000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
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
==53779==ABORTING