]> git.ipfire.org Git - thirdparty/elfutils.git/commit
libdwfl: Handle unaligned Ehdr in dwfl_segment_report_module
authorMark Wielaard <mark@klomp.org>
Sun, 19 Dec 2021 22:58:32 +0000 (23:58 +0100)
committerMark Wielaard <mark@klomp.org>
Sun, 19 Dec 2021 22:58:32 +0000 (23:58 +0100)
commit34ef8b44ed5998b025bd77fde4c71d7d8e585cf0
treea9297a1db37dd827ba156c73b67bfae75d7482e3
parentd844d1575522b5ad9ada0aa3c26105230a1c1884
libdwfl: Handle unaligned Ehdr 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).

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