Date: Mon, 13 Mar 2017 11:51:26 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 217743] PVS-Studio: Expression is Always True (CWE-571) Message-ID: <bug-217743-8@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D217743 Bug ID: 217743 Summary: PVS-Studio: Expression is Always True (CWE-571) Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Many People Priority: --- Component: kern Assignee: freebsd-bugs@FreeBSD.org Reporter: razmyslov@viva64.com Created attachment 180767 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D180767&action= =3Dedit git patch We have found and fixed a vulnerability using PVS-Studio tool. PVS-Studio i= s a static code analyzer for C, C++ and C#: https://www.viva64.com/en/pvs-studi= o/ Analyzer warning: V547 Expression 'cdb[0] !=3D 0x28 || cdb[0] !=3D 0x2A' is= always true. Probably the '&&' operator should be used here. mfi_tbolt.c 1110 --=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-217743-8>