[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug binutils/30311] New: [readelf] memory allocation failure (load_spec
From: |
youngseok.main at gmail dot com |
Subject: |
[Bug binutils/30311] New: [readelf] memory allocation failure (load_specific_debug_section readelf.c:16063) |
Date: |
Tue, 04 Apr 2023 08:23:00 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=30311
Bug ID: 30311
Summary: [readelf] memory allocation failure
(load_specific_debug_section readelf.c:16063)
Product: binutils
Version: 2.40
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: binutils
Assignee: unassigned at sourceware dot org
Reporter: youngseok.main at gmail dot com
Target Milestone: ---
Created attachment 14802
--> https://sourceware.org/bugzilla/attachment.cgi?id=14802&action=edit
poc_file used in command input
Hi, our fuzzer found a memory allocation failure error in the latest readelf
executable.
*Command Input*
readelf poc_file -w
poc_file is attached.
*Sanitizer Dump*
==29708==WARNING: AddressSanitizer failed to allocate 0xfffe000b0000 bytes
==29708==AddressSanitizer's allocator is terminating the process instead of
returning 0
==29708==If you don't like this behavior set allocator_may_return_null=1
==29708==AddressSanitizer CHECK failed:
../../../../src/libsanitizer/sanitizer_common/sanitizer_allocator.cc:218 "((0))
!= (0)" (0x0, 0x0)
#0 0x7ffff6f01bf2 (/usr/lib/x86_64-linux-gnu/libasan.so.4+0xe9bf2)
#1 0x7ffff6f20575 in __sanitizer::CheckFailed(char const*, int, char
const*, unsigned long long, unsigned long long)
(/usr/lib/x86_64-linux-gnu/libasan.so.4+0x108575)
#2 0x7ffff6f07332 (/usr/lib/x86_64-linux-gnu/libasan.so.4+0xef332)
#3 0x7ffff6e3fe46 (/usr/lib/x86_64-linux-gnu/libasan.so.4+0x27e46)
#4 0x7ffff6ef6b0a in __interceptor_malloc
(/usr/lib/x86_64-linux-gnu/libasan.so.4+0xdeb0a)
#5 0x55555578aaf3 in xmalloc xmalloc.c:149
#6 0x5555556705b1 in uncompress_section_contents readelf.c:15276
#7 0x555555674fd0 in load_specific_debug_section readelf.c:16063
#8 0x555555675dc8 in display_debug_section readelf.c:16369
#9 0x555555676321 in process_section_contents readelf.c:16471
#10 0x555555693871 in process_object readelf.c:22574
#11 0x555555695b03 in process_file readelf.c:22997
#12 0x555555695f62 in main readelf.c:23068
#13 0x7ffff6a48c86 in __libc_start_main
(/lib/x86_64-linux-gnu/libc.so.6+0x21c86)
#14 0x55555561d749 in _start
(/home/youngseok/subjects/latest_asan_install/binutils/bin/readelf+0xc9749)
*Environment*
- OS: Ubuntu 18.04
- gcc: 7.5.0
- binutils: 2.40.50.20230404
binutils is built it address sanitizer. Here is the build script:
CFLAGS="-fsanitize=address -g -O0" CXXFLAGS="-fsanitize=address -g -O0" \
./configure --enable-targets=all
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug binutils/30311] New: [readelf] memory allocation failure (load_specific_debug_section readelf.c:16063),
youngseok.main at gmail dot com <=