This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug dynamic-link/22238] NULL pointer dereference in dlopen on out-of-memory
- From: "fweimer at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Wed, 04 Oct 2017 07:10:59 +0000
- Subject: [Bug dynamic-link/22238] NULL pointer dereference in dlopen on out-of-memory
- Auto-submitted: auto-generated
- References: <bug-22238-131@http.sourceware.org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=22238
Florian Weimer <fweimer at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |fweimer at redhat dot com
Flags| |security-
--- Comment #3 from Florian Weimer <fweimer at redhat dot com> ---
decompose_rpath has this:
fillin_rpath (copy, result, ":", 0, what, where, l);
/* Free the copied RPATH string. `fillin_rpath' make own copies if
necessary. */
free (copy);
Other callers of fillin_rpath also have local allocations that they need to
free.
So we can throw from from fillin_rpath without introducing a memory leak. I
expect it will be easier to make fillin_rpath to return an error code than to
change the callers to catch and reraise the exception.
--
You are receiving this mail because:
You are on the CC list for the bug.