From 2c871eb566a08cbb4aee07e48864aeb308528b4b Mon Sep 17 00:00:00 2001 From: Eugene Syromyatnikov Date: Thu, 22 Sep 2016 00:21:35 +0300 Subject: [PATCH] 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. --- fadvise.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.50.1