From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E64B53858404; Mon, 18 Oct 2021 11:39:18 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E64B53858404 From: "mark at klomp dot org" To: elfutils-devel@sourceware.org Subject: [Bug libdw/28294] dwarf_aggregate_size fails on some array types Date: Mon, 18 Oct 2021 11:39:18 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: elfutils X-Bugzilla-Component: libdw X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: mark at klomp dot org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: mark at klomp 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: Mon, 18 Oct 2021 11:39:19 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D28294 --- Comment #4 from Mark Wielaard --- Pushed as: commit c3a6a9dfc6ed0c24ab2d11b2d71f425b479575c9 Author: Mark Wielaard Date: Wed Oct 6 22:41:29 2021 +0200 libdw: Use signedness of subrange type to determine array bounds When calculating the array size check if the subrange has an associate type, if it does then check the type to determine whether the upper and lower values need to be interpreted as signed of unsigned values. We default to signed because that is what the testcase run-aggregate-size.sh testfile-size4 expects (this is an hardwritten testcase, we could have chosen a different default). https://sourceware.org/bugzilla/show_bug.cgi?id=3D28294 Signed-off-by: Mark Wielaard Please reopen or file a new bug if this didn't fully resolve your issue. --=20 You are receiving this mail because: You are on the CC list for the bug.=