]> git.ipfire.org Git - thirdparty/elfutils.git/commit
libdwfl: add dwfl_report_offline_memory
authorAleksei Vetrov <vvvvvv@google.com>
Tue, 20 Sep 2022 13:36:37 +0000 (13:36 +0000)
committerMark Wielaard <mark@klomp.org>
Sun, 16 Oct 2022 15:09:42 +0000 (17:09 +0200)
commit64ee2cb792e7b6ba6ad2a5759bff7ce8714e4668
treeac911024367364c26a5a557b6aed95aaed3245e9
parent6284f4d12ccbc6405e986fd84ac6d4d72dc9c2a7
libdwfl: add dwfl_report_offline_memory

This method allows to read and report ELF from memory instead of opening
a file. That way arbitrary memory can be worked with, e.g. when coming
from a stream without the need to persist.

Another useful application is for fuzzing, because fuzzers might be able
to track accesses to the memory and change the fuzzer input to cover
more edge cases through more targeted input. Hence, add a new function
along with a test case.

Signed-off-by: Aleksei Vetrov <vvvvvv@google.com>
13 files changed:
ChangeLog
NEWS
libdw/ChangeLog
libdw/libdw.map
libdwfl/ChangeLog
libdwfl/libdwfl.h
libdwfl/libdwflP.h
libdwfl/offline.c
libdwfl/open.c
tests/ChangeLog
tests/Makefile.am
tests/dwfl-report-offline-memory.c [new file with mode: 0644]
tests/run-dwfl-report-offline-memory.sh [new file with mode: 0755]