[PATCH] Fix 22546: dwarf_aggregate_size() works with multi-dimensional arrays
Tue Dec 12 09:50:00 GMT 2017
On Mon, 2017-12-11 at 21:57 -0800, Dima Kogan wrote:
> If we have a multidimensional array of dimensions (a,b,c) the number of elements
> should be a*b*c, but prior to this patch dwarf_aggregate_size() would report
> a+b+c instead.
> This patch fixes the bug and adds a test that demonstrates the bug (the test
> fails without the functional part of this patch).
> Fixes: https://sourceware.org/bugzilla/show_bug.cgi?id=22546
Thanks. As said in the bug report, this looks good.
Pushed to master.
More information about the Elfutils-devel