projects
/
external
/
glibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b49865b
)
Fix crash during error handling
author
Andreas Schwab
<schwab@redhat.com>
Thu, 8 Sep 2011 10:02:26 +0000
(12:02 +0200)
committer
Andreas Schwab
<schwab@redhat.com>
Thu, 8 Sep 2011 10:03:11 +0000
(12:03 +0200)
ChangeLog
patch
|
blob
|
history
elf/dl-load.c
patch
|
blob
|
history
diff --git
a/ChangeLog
b/ChangeLog
index
94d502a
..
91328e0
100644
(file)
--- a/
ChangeLog
+++ b/
ChangeLog
@@
-1,3
+1,7
@@
+2011-09-08 Andreas Schwab <schwab@redhat.com>
+
+ * elf/dl-load.c (lose): Check for non-null l.
+
2011-09-07 Ulrich Drepper <drepper@gmail.com>
* elf/dl-load.c (open_verify): Use O_CLOEXEC.
diff --git
a/elf/dl-load.c
b/elf/dl-load.c
index
e8d0401
..
b8a2659
100644
(file)
--- a/
elf/dl-load.c
+++ b/
elf/dl-load.c
@@
-888,7
+888,7
@@
lose (int code, int fd, const char *name, char *realname, struct link_map *l,
/* The file might already be closed. */
if (fd != -1)
(void) __close (fd);
- if (l->l_origin != (char *) -1l)
+ if (l
!= NULL && l
->l_origin != (char *) -1l)
free (l->l_origin);
free (l);
free (realname);