projects
/
oweals
/
musl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e8e780a
)
fix the use of syscall result in dl_mmap
author
Ilya Matveychikov
<matvejchikov@gmail.com>
Sat, 9 Feb 2019 14:56:17 +0000
(18:56 +0400)
committer
Rich Felker
<dalias@aerifal.cx>
Sat, 6 Apr 2019 13:38:49 +0000
(09:38 -0400)
ldso/dynlink.c
patch
|
blob
|
history
diff --git
a/ldso/dynlink.c
b/ldso/dynlink.c
index 206427fee67c5574f72fa5c4c4c6371709c32a40..7cb66db972ebbaa070c5c6a572478c9083d4ae3a 100644
(file)
--- a/
ldso/dynlink.c
+++ b/
ldso/dynlink.c
@@
-920,7
+920,7
@@
static void *dl_mmap(size_t n)
#else
p = (void *)__syscall(SYS_mmap, 0, n, prot, flags, -1, 0);
#endif
- return
p == MAP_FAILED
? 0 : p;
+ return
(unsigned long)p > -4096UL
? 0 : p;
}
static void makefuncdescs(struct dso *p)