]> git.ipfire.org Git - thirdparty/elfutils.git/commit
libebl: Explicitly check Ehdr can be used in eblopenbackend
authorMark Wielaard <mark@klomp.org>
Tue, 7 Apr 2026 13:25:53 +0000 (15:25 +0200)
committerMark Wielaard <mark@klomp.org>
Tue, 7 Apr 2026 13:25:53 +0000 (15:25 +0200)
commitf0f77b818f99de2e75d98758f96cb2b6da87fe65
tree72535712d2c74cbf87d4e601aff9a71eb9df7a5b
parent7f8cb736643b0d51296f19999a9e2b4e2671d1d2
libebl: Explicitly check Ehdr can be used in eblopenbackend

Make sure Ehdr is really read into memory, don't use internal elf
state.

* libebl/eblopenbackend.c (openbackend): Use gelf_getehdr
instead of accessing elf state ehdr field directly.

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

Signed-off-by: Mark Wielaard <mark@klomp.org>
libebl/eblopenbackend.c