From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 127746 invoked by alias); 30 Mar 2018 20:44:20 -0000 Mailing-List: contact elfutils-devel-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Post: List-Help: List-Subscribe: Sender: elfutils-devel-owner@sourceware.org Received: (qmail 124702 invoked by uid 48); 30 Mar 2018 20:44:16 -0000 From: "mark at klomp dot org" To: elfutils-devel@sourceware.org Subject: [Bug tools/23011] Infinite loop in handle_sysv_hash (src/readelf.c) Date: Fri, 30 Mar 2018 20:44:00 -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: bug_status resolution 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-SW-Source: 2018-q1/txt/msg00124.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=3D23011 Mark Wielaard changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |FIXED --- Comment #3 from Mark Wielaard --- (In reply to Mark Wielaard from comment #2) > Proposed fix: https://sourceware.org/ml/elfutils-devel/2018-q1/msg00118.h= tml commit 560145d2b49347e92f4a265c3c3dbcae164ed9df Author: Mark Wielaard Date: Wed Mar 28 21:27:48 2018 +0200 readelf: Break sysv[64] symbol hash bucket chain loops. The bucket chain should not contain loops. If it does we should mark the hash bucket chain as invalid. This is easily checked by noticing when we have seen more than the number of chain elements. Which equals the max number as symbols in the table. https://sourceware.org/bugzilla/show_bug.cgi?id=3D23011 Signed-off-by: Mark Wielaard Pushed to master. --=20 You are receiving this mail because: You are on the CC list for the bug.