From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 23D0A3857B85; Wed, 28 Sep 2022 01:30:02 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 23D0A3857B85 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1664328602; bh=vOrZNXSfLOZQX94TnCxG7u1IO0MeVxQxZ6PW/VAIZ/Q=; h=From:To:Subject:Date:In-Reply-To:References:From; b=riI7eTC0gbxz8pfNEOTv8D0RYM2jDjb1P4uOReXqmAtFc9oAjv19cg5rZ7AjgM/M4 nuD81KfKOA/U3Whk5MMkrJZ7WoDwmjGi51HfAuVO8Hm6y3gXZthkC+KhGyMwDk3CbY RComXWuEFYIcMibQwo5l+yvJaHukpUAuYYzrMDgo= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/58245] -fstack-protector[-all] does not protect functions that call noreturn functions Date: Wed, 28 Sep 2022 01:30:00 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 10.3.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned 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=3D58245 --- Comment #13 from CVS Commits --- The master branch has been updated by H.J. Lu : https://gcc.gnu.org/g:a25982ada523689c8745d7fb4b1b93c8f5dab2e7 commit r13-2909-ga25982ada523689c8745d7fb4b1b93c8f5dab2e7 Author: H.J. Lu Date: Thu Jul 14 08:23:38 2022 -0700 stack-protector: Check stack canary before throwing exception Check stack canary before throwing exception to avoid stack corruption. gcc/ PR middle-end/58245 * calls.cc: Include "tree-eh.h". (expand_call): Check stack canary before throwing exception. gcc/testsuite/ PR middle-end/58245 * g++.dg/fstack-protector-strong.C: Adjusted. * g++.dg/pr58245-1.C: New test.=