From: Julian Seward Date: Thu, 23 May 2002 17:14:54 +0000 (+0000) Subject: Don't complain the second arg of __NR_setitimer X-Git-Tag: svn/VALGRIND_1_0_3~149 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2039995c09e70ff8f706faad72ab6be7a162ca1c;p=thirdparty%2Fvalgrind.git Don't complain the second arg of __NR_setitimer (const struct itimerval *value) is NULL. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@317 --- diff --git a/vg_syscall_mem.c b/vg_syscall_mem.c index 8331737933..34c43baa67 100644 --- a/vg_syscall_mem.c +++ b/vg_syscall_mem.c @@ -2408,8 +2408,9 @@ void VG_(perform_assumed_nonblocking_syscall) ( ThreadId tid ) struct itimerval *ovalue); */ if (VG_(clo_trace_syscalls)) VG_(printf)("setitimer ( %d, %p, %p )\n", arg1,arg2,arg3); - must_be_readable(tst, "setitimer(value)", - arg2, sizeof(struct itimerval) ); + if (arg2 != (Addr)NULL) + must_be_readable(tst, "setitimer(value)", + arg2, sizeof(struct itimerval) ); if (arg3 != (Addr)NULL) must_be_writable(tst, "setitimer(ovalue)", arg3, sizeof(struct itimerval));