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.
This commit is contained in:
parent
276839aec6
commit
7e5cd0e72b
4
execve.c
4
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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user