]> git.ipfire.org Git - thirdparty/elfutils.git/commit
libelf: Also copy/convert partial datastructures in xlate functions
authorMark Wielaard <mark@klomp.org>
Tue, 29 Mar 2022 22:17:08 +0000 (00:17 +0200)
committerMark Wielaard <mark@klomp.org>
Wed, 30 Mar 2022 14:46:02 +0000 (16:46 +0200)
commite3e2ae06fbfcd1b2f3de6945689ef9d9c94a2123
tree4e4ff931649d7b1ded589f5190e1b2d3326328a6
parentdec6d82cf2e9c79b9b45a29de5ea2d8f25cc633b
libelf: Also copy/convert partial datastructures in xlate functions

The generated xlate functions can only convert full datastructures,
dropping any trailing partial data on the floor. That means some of
the data might be undefined. Just copy over the trailing bytes as
is. That data isn't really usable. But at least it is defined data.

https://sourceware.org/bugzilla/show_bug.cgi?id=29000

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