Blame SOURCES/glibc-rh1443236.patch

147e83
From 9317ea653afc26402387cac67042f9890af6add2 Mon Sep 17 00:00:00 2001
147e83
From: Bram <bug_rh@spam.wizbit.be>
147e83
Date: Thu, 18 Apr 2013 16:50:49 +0200
147e83
Subject: [PATCH] Fix segmentation fault when LD_LIBRARY_PATH contains only
147e83
 non-existings paths
147e83
147e83
---
147e83
 ChangeLog     |  6 ++++++
147e83
 NEWS          | 18 +++++++++---------
147e83
 elf/dl-load.c |  6 +++---
147e83
 3 files changed, 18 insertions(+), 12 deletions(-)
147e83
147e83
diff --git a/elf/dl-load.c b/elf/dl-load.c
147e83
index 73174aa..41b91fc 100644
147e83
--- a/elf/dl-load.c
147e83
+++ b/elf/dl-load.c
147e83
@@ -1889,9 +1889,9 @@ open_path (const char *name, size_t namelen, int mode,
147e83
       if (sps->malloced)
147e83
 	free (sps->dirs);
147e83
 
147e83
-      /* rtld_search_dirs is attribute_relro, therefore avoid writing
147e83
-	 into it.  */
147e83
-      if (sps != &rtld_search_dirs)
147e83
+      /* rtld_search_dirs and env_path_list are attribute_relro, therefore
147e83
+         avoid writing into it.  */
147e83
+      if (sps != &rtld_search_dirs && sps != &env_path_list)
147e83
 	sps->dirs = (void *) -1;
147e83
     }
147e83
 
147e83
-- 
147e83
1.8.3.1
147e83