[Bug ld/31145] potential memory leak in binutils/ld

2023-12-19 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=31145 Alan Modra changed: What|Removed |Added Resolution|FIXED |NOTABUG --- Comment #5 from Alan Modra

[Bug ld/31145] potential memory leak in binutils/ld

2023-12-19 Thread cvs-commit at gcc dot gnu.org
cf86e13d8bfc2924746b8e45299aed103d090985 Author: Alan Modra Date: Wed Dec 20 08:29:12 2023 +1030 Re: PR31145, potential memory leak in binutils/ld Revert most of this patch, it isn't correct to free the BFD_IN_MEMORY iostream in io_reinit. PR 31145 * format.c (io_reinit): Revert last c

[Bug ld/31145] potential memory leak in binutils/ld

2023-12-14 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=31145 Alan Modra changed: What|Removed |Added Target Milestone|--- |2.42 Severity|critical

[Bug ld/31145] potential memory leak in binutils/ld

2023-12-14 Thread cvs-commit at gcc dot gnu.org
4ace84a15ca943f52e590c264d82dfba350482e3 Author: Alan Modra Date: Fri Dec 15 12:24:56 2023 +1030 PR31145, potential memory leak in binutils/ld PR 31145 * bfd.c (BFD_IN_MEMORY): Mention that bim is malloc'd. * format.c (io_reinit): Free BFD_IN_MEMORY iostream. * opn

[Bug ld/31145] potential memory leak in binutils/ld

2023-12-13 Thread sam at gentoo dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=31145 Sam James changed: What|Removed |Added CC||sam at gentoo dot org --- Comment #1 from

[Bug ld/31145] potential memory leak in binutils/ld

2023-12-13 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=31145 Alan Modra changed: What|Removed |Added Assignee|unassigned at sourceware dot org |amodra at gmail dot com Last re

[Bug ld/31145] New: potential memory leak in binutils/ld

2023-12-12 Thread a860641231 at 163 dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=31145 Bug ID: 31145 Summary: potential memory leak in binutils/ld Product: binutils Version: 2.42 (HEAD) Status: UNCONFIRMED Severity: critical Priority: P2

Re: Memory leak in binutils

2019-12-04 Thread Alan Modra
On Wed, Dec 04, 2019 at 07:14:06PM +0800, Xiaohan Wu wrote: > Hello, I got a memory leak bug in binutils. > > ASAN log: > > ==29347==ERROR: LeakSanitizer: detected memory leaks > > Direct leak of 3 byte(s) in 1 object(s) allocated from: > #0 0x483514 in __strdup > /src/llvm-project/compiler

Memory leak in binutils

2019-12-04 Thread Xiaohan Wu
Hello, I got a memory leak bug in binutils. ASAN log: ==29347==ERROR: LeakSanitizer: detected memory leaks Direct leak of 3 byte(s) in 1 object(s) allocated from: #0 0x483514 in __strdup /src/llvm-project/compiler-rt/lib/asan/asan_interceptors.cpp:468:3 #1 0x6e76d0 in get_field /src/bin

Re: Memory leak in binutils

2019-12-04 Thread Philippe Antoine
Hi Xiaohan, Are you running the fuzz target from ? https://github.com/google/oss-fuzz/blob/master/projects/binutils/fuzz_disassemble.c Did you apply this patch before compiling it ? https://github.com/google/oss-fuzz/blob/master/projects/binutils/patch.diff Cheers, Philippe > Le 4 déc. 2019 à 12