From: Dmitry V. Levin Date: Sun, 25 Dec 2016 22:27:33 +0000 (+0000) Subject: execve: prepare for handling big pointers X-Git-Tag: v4.16~169 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7e5cd0e72b110d7a122ac444886784e307ef6ab9;p=strace execve: prepare for handling big pointers * execve.c (printargv): Change cp.p64 type from unsigned long to kernel_ulong_t so it could handle wordsize > sizeof(long) properly. --- diff --git a/execve.c b/execve.c index 03fe4762..e7c626ba 100644 --- a/execve.c +++ b/execve.c @@ -49,8 +49,8 @@ printargv(struct tcb *const tcp, kernel_ureg_t addr) for (n = 0; addr; sep = ", ", addr += wordsize, ++n) { union { unsigned int p32; - unsigned long p64; - char data[sizeof(long)]; + kernel_ulong_t p64; + char data[sizeof(kernel_ulong_t)]; } cp; if (umoven(tcp, addr, wordsize, cp.data)) {