[Bug libdw/28660] ASan seems to complain about a "heap-buffer-overflow"

evvers at ya dot ru sourceware-bugzilla@sourceware.org
Thu Dec 9 21:20:21 GMT 2021


https://sourceware.org/bugzilla/show_bug.cgi?id=28660

--- Comment #4 from Evgeny Vereshchagin <evvers at ya dot ru> ---
Created attachment 13842
  --> https://sourceware.org/bugzilla/attachment.cgi?id=13842&action=edit
File triggering an "invalid read"

I've just attached a file triggering the issue:

```
autoreconf -i -f
./configure --enable-maintainer-mode
make -j$(nproc) V=1
DEBUGINFOD_URLS= LD_PRELOAD="./libelf/libelf.so ./libdw/libdw.so" valgrind
--leak-check=full ./src/stack --core
../crash-e8e47de6a28b1be30e3a7e2f92b7c9e4f4fffa9d
==87229== Memcheck, a memory error detector
==87229== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==87229== Using Valgrind-3.18.1 and LibVEX; rerun with -h for copyright info
==87229== Command: ./src/stack --core
../crash-e8e47de6a28b1be30e3a7e2f92b7c9e4f4fffa9d
==87229==
==87229== Invalid read of size 4
==87229==    at 0x48C783F: dwfl_link_map_report (link_map.c:917)
==87229==    by 0x48C8DC5: dwfl_core_file_report@@ELFUTILS_0.158
(core-file.c:548)
==87229==    by 0x402EC6: parse_opt (stack.c:595)
==87229==    by 0x4C4D591: argp_parse (in /usr/lib64/libc.so.6)
==87229==    by 0x4024EA: main (stack.c:695)
==87229==  Address 0x5029ae0 is 0 bytes after a block of size 4,096 alloc'd
==87229==    at 0x484186F: malloc (vg_replace_malloc.c:381)
==87229==    by 0x48C7D6B: dwfl_link_map_report (link_map.c:891)
==87229==    by 0x48C8DC5: dwfl_core_file_report@@ELFUTILS_0.158
(core-file.c:548)
==87229==    by 0x402EC6: parse_opt (stack.c:595)
==87229==    by 0x4C4D591: argp_parse (in /usr/lib64/libc.so.6)
==87229==    by 0x4024EA: main (stack.c:695)
```

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Elfutils-devel mailing list