]> git.ipfire.org Git - thirdparty/elfutils.git/commit
libdw: dwarf_aggregate_size should not peel the given DIE.
authorMark Wielaard <mark@klomp.org>
Mon, 11 Dec 2017 22:58:34 +0000 (23:58 +0100)
committerMark Wielaard <mark@klomp.org>
Fri, 15 Dec 2017 18:41:34 +0000 (19:41 +0100)
commitc25dc62e59dc42378370602b0d05415a42b051d6
treeac5cdad1592e2aa50de74faa7c5ef6e93bf2cfbc
parenta2246aaad96e062eb3bab55af9526aaa70adcfd0
libdw: dwarf_aggregate_size should not peel the given DIE.

Reserve memory for a new DIE first. The caller might not care, but it
isn't really nice to change the DIE the caller gave us.

See also https://sourceware.org/bugzilla/show_bug.cgi?id=22546#c5

Signed-off-by: Mark Wielaard <mark@klomp.org>
libdw/ChangeLog
libdw/dwarf_aggregate_size.c