From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 8C3FE3857C76; Wed, 14 Sep 2022 19:00:38 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8C3FE3857C76 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1663182038; bh=t6Vwu1baHCb0YUI7tpUN1l+YN/7qO6VqCI/TcM4tMng=; h=From:To:Subject:Date:In-Reply-To:References:From; b=jOca4gcJclPDTjiGC2xqRkz6C6z4DnKbS0L/QvV1gPkxKDUaociSO4mPGkmd7CuaJ nU3RsrebVwJbJ5/50P3knaGHh9RHIiCt3IC5/lVSyDCSsqFYIOeQd32RxDhGVD5pC4 n/Z55AcS2wWQ47IIdHXCLbfPiq0bcO1qXmLb7msg= From: "mark at klomp dot org" To: elfutils-devel@sourceware.org Subject: [Bug tools/28725] eu-ar -x -N COUNT uses instance [COUNT+1] of name Date: Wed, 14 Sep 2022 19:00:38 +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: mark at klomp dot 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://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D28725 Mark Wielaard changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|ASSIGNED |RESOLVED --- Comment #4 from Mark Wielaard --- commit 6cb01b4ef3cdd4f83d21bbcec72fa66712ac14e6 Author: Mark Wielaard Date: Sun Aug 28 17:46:08 2022 +0200 ar: Correct -N COUNT off-by-one When using instance [COUNT], the instance check is wrong. instance-- =3D=3D 0 should be --instance =3D=3D 0. Add a testcase run-ar-N.sh that uses -N COUNT with extract and delete operations checking the right instance was extracted and deleted. https://sourceware.org/bugzilla/show_bug.cgi?id=3D28725 Reported-by: panxiaohe Signed-off-by: Mark Wielaard --=20 You are receiving this mail because: You are on the CC list for the bug.=