bug-binutils
[Top][All Lists]
Advanced

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

[Bug libctf/28933] buffer overflow on powerpc-linux


From: amodra at gmail dot com
Subject: [Bug libctf/28933] buffer overflow on powerpc-linux
Date: Thu, 17 Mar 2022 23:19:08 +0000

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

--- Comment #3 from Alan Modra <amodra at gmail dot com> ---
Created attachment 14023
  --> https://sourceware.org/bugzilla/attachment.cgi?id=14023&action=edit
testcase object file

I built binutils on an Ubuntu 21.04 amd ryzen 9 box, configured with

CFLAGS="-g -O2 -fsanitize=address,undefined" \
CXXFLAGS="-g -O2 -fsanitize=address,undefined" \
~/src/binutils-gdb/configure --build=x86_64-linux \
--disable-nls \
--disable-gdb --disable-gdbserver --disable-gdbsupport --disable-gprofng \
--disable-libbacktrace --disable-libdecnumber --disable-readline --disable-sim
\
--target=powerpc-linux

I have a full cross toolchain installed, with gcc (12.0.1 20220214).
You should be able to reproduce just with current binutils and the attached
object file.

export ASAN_OPTIONS=detect_leaks=0
./ld-new -z norelro  -L/home/alan/src/binutils-gdb/ld/testsuite/ld-ctf  -shared
-o tmpdir/dump tmpdir/diag-cttname-invalid.o

-- 
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]