From: Paul Floyd Date: Wed, 14 Jan 2026 08:00:07 +0000 (+0100) Subject: FreeBSD syswrap: utimensat timespec can be NULL X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=23f625e4b505145865f0a276dfc74a377bd4e929;p=thirdparty%2Fvalgrind.git FreeBSD syswrap: utimensat timespec can be NULL --- diff --git a/coregrind/m_syswrap/syswrap-freebsd.c b/coregrind/m_syswrap/syswrap-freebsd.c index e1c1dcc14..2870b4eb7 100644 --- a/coregrind/m_syswrap/syswrap-freebsd.c +++ b/coregrind/m_syswrap/syswrap-freebsd.c @@ -6281,7 +6281,8 @@ PRE(sys_utimensat) int, flag); ML_(fd_at_check_allowed)(SARG1, (const HChar*)ARG2, "utimensat", tid, status); PRE_MEM_RASCIIZ("utimensat(path)", ARG2); - PRE_MEM_READ("utimensat(times)", ARG3, 2*sizeof(struct vki_timespec)); + if (ARG3) + PRE_MEM_READ("utimensat(times)", ARG3, 2*sizeof(struct vki_timespec)); } // SYS_fdatasync 550