From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id D92A93884579; Wed, 15 May 2024 07:42:22 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D92A93884579 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1715758942; bh=qWVajtCOvy9WkQWsSgufm7oFl+h6Ol2g7MaMTh7iT+o=; h=From:To:Subject:Date:In-Reply-To:References:From; b=WUgUNO4tyC8tXE3RtWEvsUW2hRC3yUdYP0b0Clq270LcoozuU/YnHevAjSn/6OF3A vQ87fkxZMaLStkwbsmdcKDT/KctVCwoLr3CjucYGx8FxvNk0m0Ct6jSU8VgdWVloqu VlVdfm+DxgMq7jwIm9ddbtDGBULwGIveHS0Zag+A= From: "alx at kernel dot org" To: gcc-bugs@gcc.gnu.org Subject: [Bug analyzer/109335] -Wanalyzer-malloc-leak false positives and false negatives Date: Wed, 15 May 2024 07:42:22 +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: 13.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: alx at kernel dot org X-Bugzilla-Status: UNCONFIRMED 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: 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=3D109335 --- Comment #3 from Alejandro Colomar --- Oops, no, that's a different story. The analyzer is thinking it leaks somewhere where it doesn't seem to leak. The false positive still reproduces with gcc-14 (Debian 14-20240429-1) 14.0.1 20240429 (experimental) [gcc-14 r14-10144-g41d7a8ceaaa]=