[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug binutils/31457] strip: SEGV in copy_archive
From: |
nickc at redhat dot com |
Subject: |
[Bug binutils/31457] strip: SEGV in copy_archive |
Date: |
Tue, 19 Mar 2024 14:47:30 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=31457
Nick Clifton <nickc at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |nickc at redhat dot com
Assignee|unassigned at sourceware dot org |nickc at redhat dot com
--- Comment #1 from Nick Clifton <nickc at redhat dot com> ---
Hi Driller,
I am unable to reproduce this problem. :-(
Possibly the issue has been fixed by a recent update to the binutils.
I did notice however that I was unable to run the command as you described:
strip-new --strip-all -o /dev/null [poc_file]
This always failed for me with the error message:
strip-new: cannot create tempdir for archive copying (error: Permission
denied)
This happens because objcopy tries to create a temporary file
in the same directory as the output file (/dev in this case).
Since normal users cannot create files in /dev the attempt fails
and the error message is displayed.
I worked around this problem by directing the output to a file
in the current directory, like this:
strip-new --strip-all -o delme [poc_file]
With this change in place I was able to run the strip-new program on
all 6 files in the zip archive and none of them triggered any problems
with the address sanitizer.
Cheers
Nick
--
You are receiving this mail because:
You are on the CC list for the bug.