From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 99D403858CDA; Wed, 3 Apr 2024 05:21:07 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 99D403858CDA DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1712121667; bh=YkJysVFZOSq9TNHZSlpTlQn7ZykfKrEf2g4ZrP5e9Tc=; h=From:To:Subject:Date:In-Reply-To:References:From; b=bQoVXfuO3wEphzLBOQUURQDWtmhCS0ijevwnSHhVXSADV31KudxneXqZJ++HjbwCm aDz1UKGtr0AvU8MxYNYTHXsfdHPAWsCooqPL4GebDDsioNdQ5sUCvEww7+1r8uct7l TZVJrWZ5eKCkmBS7uFq3OelZW5lVVizi51HO1aPk= From: "akihiko.odaki at daynix dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug sanitizer/114494] false-positive with -O2 -Wstringop-overflow=2 -fsanitize=address Date: Wed, 03 Apr 2024 05:21:06 +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.2.1 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: akihiko.odaki at daynix dot com X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: DUPLICATE 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=3D114494 --- Comment #6 from Akihiko Odaki --- (In reply to Hans-Peter Nilsson from comment #5) > (In reply to Akihiko Odaki from comment #0) > > if (hlen < sizeof(struct ip_header)) { >=20 > Is this a typo for "if (hlen > sizeof(struct ip_header)) {" which makes a > bot more sense to me? >=20 > (I can't find it in Linux/drivers, so can't check "upstream" status.) It is not Linux but QEMU. Please look at: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D114494#c0=