OSDN Git Service
(root)
/
uclinux-h8
/
uClibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d0af516
)
fix a (very unlikely) page leak
author
Mike Frysinger
<vapier@gentoo.org>
Thu, 12 Jan 2006 03:07:34 +0000
(
03:07
-0000)
committer
Mike Frysinger
<vapier@gentoo.org>
Thu, 12 Jan 2006 03:07:34 +0000
(
03:07
-0000)
ldso/ldso/dl-elf.c
patch
|
blob
|
history
diff --git
a/ldso/ldso/dl-elf.c
b/ldso/ldso/dl-elf.c
index
a788f8e
..
241d022
100644
(file)
--- a/
ldso/ldso/dl-elf.c
+++ b/
ldso/ldso/dl-elf.c
@@
-698,6
+698,9
@@
void _dl_dprintf(int fd, const char *fmt, ...)
char *start, *ptr, *string;
static char *buf;
+ if (!fmt)
+ return;
+
buf = _dl_mmap((void *) 0, _dl_pagesize, PROT_READ | PROT_WRITE,
MAP_PRIVATE | MAP_ANONYMOUS, -1, 0);
if (_dl_mmap_check_error(buf)) {
@@
-707,9
+710,6
@@
void _dl_dprintf(int fd, const char *fmt, ...)
start = ptr = buf;
- if (!fmt)
- return;
-
if (_dl_strlen(fmt) >= (_dl_pagesize - 1)) {
_dl_write(fd, "overflow\n", 11);
_dl_exit(20);