From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id D729C3858C50; Sun, 27 Nov 2022 21:36:35 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D729C3858C50 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1669584995; bh=VrwbMAgspfoMPkNrIOD584rFZCk9kop9iYT+sQLZjtQ=; h=From:To:Subject:Date:In-Reply-To:References:From; b=UJmtQdrmmia7cpKN40vYo+1QUi8OL27lU0gq3nOJTbYhcym2x6yXHXlxfozp+zxLs E8ZwqFo5W/50jKkkzt+hahV8v4qAEwOiXhSfWreOR1cUj1kklAaNMUGvg5Aq9NxrdW 71cZ3mWz/vK8WIZ4Zda0tFMD9Nhdm86Z+xnWkwWU= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/107890] UB on integer overflow impacts code flow Date: Sun, 27 Nov 2022 21:36:35 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 12.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: INVALID 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: resolution bug_status 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=3D107890 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |INVALID Status|UNCONFIRMED |RESOLVED --- Comment #1 from Andrew Pinski --- >I was under the impression that this kind of undefined behavior essentiall= y meant that the value of that integer could become unreliable. Your impression is incorrect. Once undefined behavior happens, anything can happen.=20 This is why things like -fsanitize=3Dundefined is there now.=