[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug binutils/31457] strip: SEGV in copy_archive
From: |
chkunq at gmail dot com |
Subject: |
[Bug binutils/31457] strip: SEGV in copy_archive |
Date: |
Fri, 29 Mar 2024 14:28:11 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=31457
--- Comment #3 from Driller SE <chkunq at gmail dot com> ---
After a thorough reproduction process, I've come to the conclusion that this is
a false positive caused by my oversight, for which I apologize for any
inconvenience caused.
Below is an explanation of the false positive, along with the relevant code:
```c
output_element = bfd_openr (output_name, output_target);
ptr = &output_element->archive_next;
*ptr = NULL;
```
The false positive occurred because:
During my testing of strip-new, I manually deleted the directory containing
file`output_name` (before strip could automatically delete it), resulting in
`bfd_openr` returning NULL to `output_element`, which then led to a SEGV at
`*ptr = NULL`.
Therefore, this problem would not occur under non-contrived circumstances
(i.e., if the temporary directories were not manually deleted before strip
automatically deletes them).
--
You are receiving this mail because:
You are on the CC list for the bug.