From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 414743858439; Mon, 24 Oct 2022 14:35:45 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 414743858439 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1666622145; bh=8EgyB0zqcxKk4I6ERoPpMMjmI8twpXISZEB41BOFK2A=; h=From:To:Subject:Date:In-Reply-To:References:From; b=h4YwHyCku8SuQq4imXxa2EpZ5UBFcXFzohh3EwcSfW9KIYVK1h5CBXukadFicnRON IRJHRlA+A8Aptkd7/8b3IzA5SHD3BNB6AV4ytUNgObxvuCh46uZizmzZDJK568Dxbm go/04BXqpqkPN4aDGnAHjfft/HtwqMLsGmt5k4g0= From: "dmalcolm at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug analyzer/107345] - -Wanayzer-null-dereference false positive with giving weird path infomation Date: Mon, 24 Oct 2022 14:35:44 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: analyzer X-Bugzilla-Version: 12.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dmalcolm at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: dmalcolm at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: everconfirmed bug_status cf_reconfirmed_on Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D107345 David Malcolm changed: What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 Status|UNCONFIRMED |ASSIGNED Last reconfirmed| |2022-10-24 --- Comment #1 from David Malcolm --- Thanks for filing this bug. The analyzer is seeing NULL =3D=3D &e and fails to treat this as being false; the logic for spotting comparison of &VAR against NULL was only looking for NULL on the right-hand side. I'm working on a fix.=