Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 08 Aug 2017 15:56:02 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 217747] sys/dev/mly/mly.c: PVS-Studio: NULL Pointer Dereference (CWE-476) (1)
Message-ID:  <bug-217747-8-WXDL3iDCeS@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-217747-8@https.bugs.freebsd.org/bugzilla/>
References:  <bug-217747-8@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D217747

--- Comment #1 from John Baldwin <jhb@FreeBSD.org> ---
Created attachment 185158
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D185158&action=
=3Dedit
mly.patch

I would probably either move the check of mc_data into the 'if (mc !=3D NUL=
L)'
block, or do the approach above where we just return immediately if we fail=
 to
get a command and then 'mc' is never NULL when 'out' is jumped to.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-217747-8-WXDL3iDCeS>