From: Eugene Syromyatnikov Date: Wed, 21 Sep 2016 21:21:35 +0000 (+0300) Subject: fadvise: use getarg_ull for obtaining len argument of fadvise64 syscall X-Git-Tag: v4.14~27 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2c871eb566a08cbb4aee07e48864aeb308528b4b;p=strace fadvise: use getarg_ull for obtaining len argument of fadvise64 syscall Since its type is size_t, it is 64-bit wide on x32 and special care should be taken in order to obtain it. * fadvise.c (SYS_FUNC(fadvise64)): Use getarg_ull for obtaining value of "len" syscall argument. --- diff --git a/fadvise.c b/fadvise.c index 208f5332..34933f77 100644 --- a/fadvise.c +++ b/fadvise.c @@ -42,7 +42,7 @@ SYS_FUNC(fadvise64) printfd(tcp, tcp->u_arg[0]); argn = printllval(tcp, ", %lld", 1); - tprintf(", %lu, ", tcp->u_arg[argn++]); + tprintf(", %llu, ", getarg_ull(tcp, argn++)); printxval(advise, tcp->u_arg[argn], "POSIX_FADV_???"); return RVAL_DECODED;