fix dangling pointers in x32 syscall timespec fixup code
authorRich Felker <dalias@aerifal.cx>
Sat, 2 May 2015 01:22:27 +0000 (21:22 -0400)
committerRich Felker <dalias@aerifal.cx>
Sat, 2 May 2015 01:22:27 +0000 (21:22 -0400)
commit4f69594689992d76088f2b0af79cd91c40579f64
treef502b2a7aa12aa160747d02cff76f44e5b762945
parent7561ac45ed94743c259c636cd15c048f492ffec1
fix dangling pointers in x32 syscall timespec fixup code

the lifetime of compound literals is the block in which they appear.
the temporary struct __timespec_kernel objects created as compound
literals no longer existed at the time their addresses were passed to
the kernel.
arch/x32/src/syscall_cp_fixup.c
arch/x32/syscall_arch.h