[PATCH] Zero-extend 32-bit addresses when printing argv array
Andreas Schwab
schwab at redhat.com
Fri Aug 28 17:40:18 UTC 2009
>From 99c85693a54e3da6c0e45127e25331766c071c2a Mon Sep 17 00:00:00 2001
From: Andreas Schwab <schwab at redhat.com>
Date: Fri, 28 Aug 2009 19:36:20 +0200
Subject: [PATCH] Zero-extend 32-bit addresses when printing argv array.
(printargv): Zero-extend 32-bit addresses.
Fixes RH#519480 "64-bit strace is lazy on execve of 32-bit
process".
---
process.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/process.c b/process.c
index 45ba33b..23bd413 100644
--- 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;
--
1.6.4
Andreas.
--
Andreas Schwab, schwab at redhat.com
GPG Key fingerprint = D4E8 DBE3 3813 BB5D FA84 5EC7 45C6 250E 6F00 984E
"And now for something completely different."
More information about the Strace-devel
mailing list