Date: Sun, 18 Mar 2018 17:01:51 +0000 (UTC) From: Mark Johnston <markj@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r331134 - head/sys/cddl/contrib/opensolaris/uts/common/dtrace Message-ID: <201803181701.w2IH1pY2080398@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: markj Date: Sun Mar 18 17:01:50 2018 New Revision: 331134 URL: https://svnweb.freebsd.org/changeset/base/331134 Log: Fix an access of an uninitialized variable in dtrace_probe(). Reported by: Coverity, via cem MFC after: 3 days Modified: head/sys/cddl/contrib/opensolaris/uts/common/dtrace/dtrace.c Modified: head/sys/cddl/contrib/opensolaris/uts/common/dtrace/dtrace.c ============================================================================== --- head/sys/cddl/contrib/opensolaris/uts/common/dtrace/dtrace.c Sun Mar 18 16:57:40 2018 (r331133) +++ head/sys/cddl/contrib/opensolaris/uts/common/dtrace/dtrace.c Sun Mar 18 17:01:50 2018 (r331134) @@ -7318,7 +7318,7 @@ dtrace_probe(dtrace_id_t id, uintptr_t arg0, uintptr_t } now = mstate.dtms_timestamp = dtrace_gethrtime(); - mstate.dtms_present |= DTRACE_MSTATE_TIMESTAMP; + mstate.dtms_present = DTRACE_MSTATE_TIMESTAMP; vtime = dtrace_vtime_references != 0; if (vtime && curthread->t_dtrace_start)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201803181701.w2IH1pY2080398>