From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 0B8D93858414; Sat, 5 Nov 2022 09:59:02 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0B8D93858414 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1667642342; bh=HD3mZdo7aUI9yGQMOrWQO7t3goLxUdjSqfgXbc9/3O4=; h=From:To:Subject:Date:In-Reply-To:References:From; b=qI3D8hu1mnuLDWAmGxxODvX2zQwMzm/wj6etCdxDbu/9700pVpA2gBTYa0Vri8/X/ +RdLdUh4Fze13i3wDjA0f8hCZLANChvFu6QvVe3SSnub05Ygpo26FTC2HI+H4JOGBP ik9dHspSWresSr6EZhn2f8ZlhgnIDTvWFW7AjAWE= From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug analyzer/94355] support for C++ new expression Date: Sat, 05 Nov 2022 09:59:01 +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: 10.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: redi 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: 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=3D94355 --- Comment #12 from Jonathan Wakely --- (In reply to Jonathan Wakely from comment #11) > Ideally it would have complained when we copied the pointer value in the > trivial copy constructor and didn't zero out the original. That shallow c= opy > was the actual bug, the double-free is a symptom of it. I've created PR 107534 for that.=