From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 2EFE2388215C; Fri, 30 Jun 2023 16:10:16 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2EFE2388215C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1688141416; bh=R6u3lZxQ0u+x7Mgpqn1VYFd2URHzuQQ+9LK1qYzxB/s=; h=From:To:Subject:Date:In-Reply-To:References:From; b=cFhPhm8t/5cARepo9SLdFTEaFVPsqFlChv4icWKDhaB+YMHc1WDSKQXut2sLEllSy efnACEdemAf3reiUsHtflCbFIQCnVbq+FdYpaU0xoaQlpBfoMVuMwSByUx63OolVgq W8TBf6sabttYCTXJWOsVwznsQGI1NjXbouc8/fvk= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/110501] Invalid use-after-free / realloc at -O0 Date: Fri, 30 Jun 2023 16:10:16 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 12.3.1 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED 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: short_desc 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=3D110501 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|Invalid use-after-free / |Invalid use-after-free / |realloc |realloc at -O0 --- Comment #2 from Andrew Pinski --- At -O0, the redundant load from S->sp is not optimized out ... so the warni= ng does not realize that it was checking against the return value of realloc .= ..=