]> git.pld-linux.org Git - packages/glibc.git/blame - glibc-bug-12492.patch
- rel 6; better way: glibc-devel.x86_64 Requires glibc-headers(64bit) while glibc...
[packages/glibc.git] / glibc-bug-12492.patch
CommitLineData
0c3d85bf
AM
1--- elf/dl-load.c 2011-01-26 22:02:02.000000000 +0100
2+++ elf/dl-load.c 2011-01-26 22:30:22.000000000 +0100
3@@ -1398,7 +1398,11 @@
4 if (__builtin_expect (p + s <= relro_end, 1))
5 {
6 /* The variable lies in the region protected by RELRO. */
7- __mprotect ((void *) p, s, PROT_READ|PROT_WRITE);
8+ if (__mprotect ((void *) p, s, PROT_READ|PROT_WRITE) < 0)
9+ {
10+ errstring = N_("cannot change memory protections");
11+ goto call_lose_errno;
12+ }
13 __stack_prot |= PROT_READ|PROT_WRITE|PROT_EXEC;
14 __mprotect ((void *) p, s, PROT_READ);
15 }
This page took 0.033176 seconds and 4 git commands to generate.