]> granicus.if.org Git - strace/commitdiff
Zero-extend 32-bit addresses when printing argv array.
authorAndreas Schwab <schwab@redhat.com>
Fri, 28 Aug 2009 17:36:20 +0000 (19:36 +0200)
committerAndreas Schwab <schwab@redhat.com>
Fri, 28 Aug 2009 17:36:20 +0000 (19:36 +0200)
(printargv): Zero-extend 32-bit addresses.
Fixes RH#519480 "64-bit strace is lazy on execve of 32-bit
process".

process.c

index 45ba33bfabc844d21fb7f98d4b630ea2c5f785f9..23bd41325d89f6e701d5ffdca21a4081ae544934 100644 (file)
--- a/process.c
+++ b/process.c
@@ -1776,8 +1776,8 @@ struct tcb *tcp;
 long addr;
 {
        union {
-               int p32;
-               long p64;
+               unsigned int p32;
+               unsigned long p64;
                char data[sizeof(long)];
        } cp;
        char *sep;