Stepping over longjmp presumably broken for glibc
gene
genesh@comcast.net
Sat Apr 8 00:50:00 GMT 2006
Ulrich Drepper <drepper <at> redhat.com> writes:
>
> Roland McGrath wrote:
> > I'm somewhat concerned that the jmp_buf "fortification" change is going to
> > break some applications too.
>
> This is why there is LD_POINTER_GUARD. Defining it to 0 disables the
> protection.
>
Hmm, looking at the source (elf/rtld.c):
if (memcmp (envline, "POINTER_GUARD", 13) == 0)
GLRO(dl_pointer_guard) = envline[14] == '0';
break;
Isn't it backward? Having "POINTER_GUARD=0" sets _dl_pointer_guard to 1
which is already 1 by default. Am I missing something?
Thanks!
Gene
More information about the Libc-alpha
mailing list