libdwfl: Handle unaligned Nhdr in dwfl_segment_report_module
authorMark Wielaard <mark@klomp.org>
Mon, 20 Dec 2021 00:39:21 +0000 (01:39 +0100)
committerMark Wielaard <mark@klomp.org>
Mon, 20 Dec 2021 00:44:49 +0000 (01:44 +0100)
commit8f8c78cc885d83f999f952dfaa2c2e4595b38f83
tree84cfab670ef1ecb1ed0a569af3ac26ea274f0e0d
parentc1c8bbe8a04697203e18f92c09827defdcf7d204
libdwfl: Handle unaligned Nhdr in dwfl_segment_report_module

The xlate functions only handle correctly aligned buffers. But they do
handle src == dest. So if the source buffer isn't aligned correctly
just copy it first into the destination (which is already correctly
aligned).

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

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