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: "carlos at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Tue, 03 Oct 2017 22:55:02 +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
--- Comment #2 from Carlos O'Donell <carlos at redhat dot com> ---
Are you able to test a master glibc with a patch like this?
diff --git a/elf/dl-load.c b/elf/dl-load.c
index a067760..6ddceda 100644
--- a/elf/dl-load.c
+++ b/elf/dl-load.c
@@ -439,6 +439,9 @@ fillin_rpath (char *rpath, struct r_search_path_elem
**result, const char *sep,
struct r_search_path_elem *dirp;
to_free = cp = expand_dynamic_string_token (l, cp, 1);
+ if (cp == NULL)
+ _dl_signal_error (ENOMEM, NULL, NULL,
+ N_("cannot expand dynamic string token"));
size_t len = strlen (cp);
--
You are receiving this mail because:
You are on the CC list for the bug.