]> git.pld-linux.org Git - packages/glibc.git/blob - glibc-bug-12492.patch
- rel 12
[packages/glibc.git] / glibc-bug-12492.patch
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.029577 seconds and 3 git commands to generate.