From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id EEFF23857BBF; Thu, 29 Sep 2022 12:34:08 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org EEFF23857BBF DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1664454848; bh=GoQiq8J+UUwOefrM3NZySOESaAtCiL+KRTZ7zokcUG4=; h=From:To:Subject:Date:In-Reply-To:References:From; b=KtPbkWYnUOQhNQo+N/c52Lk6P2uBdRm8ck/VHo+3ZWkuB8+cKecF638juEWjO3M+h C61abwu3H/+mmpW0VRc+DkJrxd//kdXFRuuCSiXieMdFJlvbz6HblY4BoVdazjqvXi tgl1Q52U/no6N6u63Cwfh6oL+JYlcOhUcqFjrQbc= From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug sanitizer/107086] gcc trunkc at -O1 failed to detect a stack-use-after-return Date: Thu, 29 Sep 2022 12:34:08 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: sanitizer X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin 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: bug_status cf_reconfirmed_on everconfirmed 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=3D107086 Martin Li=C5=A1ka changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2022-09-29 Ever confirmed|0 |1 --- Comment #1 from Martin Li=C5=A1ka --- I can't reproduce it locally for some reason. Anyway, it's a use-after-scope where an address of a function argument is taken. I'm not sure, but it's something we don't currently support. Note clang catches that only with -O1+.=