From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 82B2B3858D32; Mon, 26 Dec 2022 13:13:21 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 82B2B3858D32 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1672060401; bh=CnQFi82NGAnYvqe59U8kMGvqZByDHFOMbwoNnQRf68A=; h=From:To:Subject:Date:In-Reply-To:References:From; b=ijLxKHGfQyln2w4cJ5rZ7p/5yvZJ+d5A7VTDMtdpU0WS/ZnbFZERaHMOzO1n0lMHq BE79M42wIGC5NnJ2Fbb3fLqLBKrKfqvQM4ThlRaK2u/D41O7V3j6dcoBH5Cia1JwVq AcsNxH3FIm1n6JwhP5x8Ai38Y2UPD0RPBRlio2cs= From: "vries at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug gdb/28224] Use-after-free when calling a GNU ifunc Date: Mon, 26 Dec 2022 13:13:20 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: gdb X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: vries at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D28224 Tom de Vries changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |vries at gcc dot gnu.org --- Comment #6 from Tom de Vries --- (In reply to Simon Marchi from comment #0) > @@ -813,6 +813,8 @@ call_function_by_hand_dummy (struct value *function, > type *values_type; > CORE_ADDR funaddr =3D find_function_addr (function, &values_type, &fty= pe); >=20=20 > + frame =3D get_current_frame (); > + > if (values_type =3D=3D NULL) > values_type =3D default_return_type; > if (values_type =3D=3D NULL) > --=20 While analyzing a duplicate, I came up with the exact same fix. Andrew proposed a different one here: https://sourceware.org/bugzilla/show_bug.cgi?id=3D29941#c3 . --=20 You are receiving this mail because: You are on the CC list for the bug.=