bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug binutils/30228] readelf: Null pointer dereference in ctf_arc_bufope


From: youngseok.main at gmail dot com
Subject: [Bug binutils/30228] readelf: Null pointer dereference in ctf_arc_bufopen
Date: Tue, 14 Mar 2023 06:58:50 +0000

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

--- Comment #1 from Youngseok Choi <youngseok.main at gmail dot com> ---
Update for stack trace and output:
(I misuploaded)

Output:
readelf: Warning: Section 0 has an out of range sh_link value of 2560137368
readelf: Error: Reading 2560137368 bytes extends past end of file for section
contents

Stack Trace:
==25518==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc
0x5555556f6b93 bp 0x7fffffffdc50 sp 0x7fffffffdc10 T0)
==25518==The signal is caused by a READ memory access.
==25518==Hint: address points to the zero page.
    #0 0x5555556f6b92 in ctf_arc_bufopen
/home/youngseok/latest-subjects/binutils-gdb/libctf/ctf-archive.c:428
    #1 0x555555673c74 in dump_section_as_ctf readelf.c:15889
    #2 0x55555567637e in process_section_contents readelf.c:16477
    #3 0x555555693477 in process_object readelf.c:22506
    #4 0x555555695709 in process_file readelf.c:22929
    #5 0x555555695b68 in main readelf.c:23000
    #6 0x7ffff6a48c86 in __libc_start_main
(/lib/x86_64-linux-gnu/libc.so.6+0x21c86)
    #7 0x55555561d749 in _start
(/home/youngseok/latest-subjects/binutils-gdb/binutils/readelf+0xc9749)

Thank you.

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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]