[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug binutils/22426] objcopy crashes with fabricated file
From: |
yeokaiyeat at hotmail dot com |
Subject: |
[Bug binutils/22426] objcopy crashes with fabricated file |
Date: |
Mon, 13 Nov 2017 18:26:33 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=22426
--- Comment #2 from ky <yeokaiyeat at hotmail dot com> ---
(In reply to ky from comment #0)
> Created attachment 10584 [details]
> testcase that crashes objcopy
>
> hello, during a fuzzing attempt on objcopy in binutils (2.26.1), fuzzed file
> produces a crash when a certain fuzzed input is given. The same file is
> tested again in binutils build 2.29.59.20171104
>
> the error produced are as follows:
>
> ./objcopy: stYS7rQI : attempt to write out unknown reloc type
> ./objcopy:stYS7rQI: Invalid operation
>
> ===================================================================
> ==8555==ERROR: LeakSanitizer: detected memory leaks
>
> Direct leak of 9 byte(s) in 1 object(s) allocated from:
> #0 0x7fdaf84d3602 in malloc
> (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x98602
> #1 0xa755ec in xmalloc xmalloc.c:147
>
> SUMMARY: AddressSanitizer: 9 byte(s) leaked in 1 allocation(s).
>
> attached is the test case
UPDATE:
Continued fuzzing on build 2.29.59.20171104 objcopy has found out another
testcase that causes a memory exhaustion with the fuzzed input
Output of console:
./objcopy: error: ./memexhaustion(.data) is too large (0xe8220008 bytes)
./objcopy:./memexhaustion[.data]: Memory exhausted
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug binutils/22426] New: objcopy with fabricated file, yeokaiyeat at hotmail dot com, 2017/11/12
- [Bug binutils/22426] objcopy crashes with fabricated file, yeokaiyeat at hotmail dot com, 2017/11/12
- [Bug binutils/22426] objcopy crashes with fabricated file, yeokaiyeat at hotmail dot com, 2017/11/13
- [Bug binutils/22426] objcopy crashes with fabricated file,
yeokaiyeat at hotmail dot com <=
- [Bug binutils/22426] objcopy crashes with fabricated file, yeokaiyeat at hotmail dot com, 2017/11/13
- [Bug binutils/22426] objcopy crashes with fabricated file, cvs-commit at gcc dot gnu.org, 2017/11/15
- [Bug binutils/22426] objcopy crashes with fabricated file, amodra at gmail dot com, 2017/11/15
- [Bug binutils/22426] objcopy crashes with fabricated file, yeokaiyeat at hotmail dot com, 2017/11/17