From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 5BB003857832; Wed, 3 Mar 2021 20:49:55 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5BB003857832 From: "mark at klomp dot org" To: elfutils-devel@sourceware.org Subject: [Bug tools/27501] eu-readelf hang while process crafted file Date: Wed, 03 Mar 2021 20:49:55 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: elfutils X-Bugzilla-Component: tools X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: mark at klomp dot org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: resolution bug_status cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: elfutils-devel@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Elfutils-devel mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Mar 2021 20:49:55 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D27501 Mark Wielaard changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|UNCONFIRMED |RESOLVED CC| |mark at klomp dot org --- Comment #1 from Mark Wielaard --- Yeah, that is some real garbled data. We should sanity check the offsets to make sure we don't loop "forever" https://sourceware.org/pipermail/elfutils-devel/2021q1/003607.html commit 480b6fa3662ba8ffeee274bf0d37423413c01e55 Author: Mark Wielaard Date: Wed Mar 3 21:40:53 2021 +0100 readelf: Sanity check verneed and verdef offsets in handle_symtab. We are going through vna_next, vn_next and vd_next in a while loop. Make sure that all offsets are sane. We don't want things to wrap around so we go in cycles. https://sourceware.org/bugzilla/show_bug.cgi?id=3D27501 Signed-off-by: Mark Wielaard --=20 You are receiving this mail because: You are on the CC list for the bug.=