This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug dynamic-link/22238] NULL pointer dereference in dlopen on out-of-memory


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]