From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 8F6673858C74; Mon, 27 Mar 2023 19:27:43 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8F6673858C74 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1679945263; bh=edXCl9m4sJaMfcf6WFM8w+HNUZ1THbqo43l81loj90M=; h=From:To:Subject:Date:In-Reply-To:References:From; b=CD1nJqqbaAJabo101S3Sw9bIfNWqPqAAhQGOftbEQRveZQqrEM1FDpEKwefJKRhFk 3WlOVDa4sYEhzItU26aLBb1Nn9zdfvflPOKp05LvK6OccMmr+BLeFwOVk5OfvRQboT IdhgoGcEprviF+J+oq3sKsDnnUGsPeBrSseJsRn8= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug other/109306] The strstr implementation in libiberty might have undefined behavior (out of bounds mem access) Date: Mon, 27 Mar 2023 19:27:43 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: other X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: 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 component 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=3D109306 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|The strstr function might |The strstr implementation |do undefined behavior (out |in libiberty might have |of bounds mem access) |undefined behavior (out of | |bounds mem access) Component|c |other --- Comment #1 from Andrew Pinski --- I highly doubt strstr.c inside libiberty is used on any host in the last 10 years or so since strstr is C90/c++98 and GCC requires a C++11 compiler/lib= rary as a host.=