From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id A51CF38582B7; Thu, 4 Aug 2022 00:05:15 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A51CF38582B7 From: "panxh_ran at 163 dot com" To: elfutils-devel@sourceware.org Subject: [Bug tools/28725] eu-ar -x -N COUNT uses instance [COUNT+1] of name Date: Thu, 04 Aug 2022 00:05:15 +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: panxh_ran at 163 dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot 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://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: Thu, 04 Aug 2022 00:05:15 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D28725 --- Comment #2 from panxiaohe --- Please pay attention on this issue. When using instance [COUNT] of name, the instance of check is wrong in do_oper_extract(). instance-- should be --instance. 522 if (res !=3D NULL && (instance < 0 || instance-- =3D=3D 0) 523 && !found[(char **) res->data - argv]) 524 found[(char **) res->data - argv] =3D do_extract =3D true; 525 } --=20 You are receiving this mail because: You are on the CC list for the bug.=