]> git.ipfire.org Git - thirdparty/kmod.git/commit
libkmod: Check correct ELF header size
authorTobias Stoeckmann <tobias@stoeckmann.org>
Sat, 15 Feb 2025 21:03:34 +0000 (22:03 +0100)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Tue, 18 Feb 2025 21:45:12 +0000 (15:45 -0600)
commit0f8a593c77fd3cc376f50ea553143cc5fe87cb38
tree9c8c1fa2b3db989be22b1b106cda32180b18deea
parent359ed91b75bf7f5b24c0331fff1680dce389edf7
libkmod: Check correct ELF header size

Check if enough bytes are available for Elf32_Ehdr, not Elf32_Shdr.
The size of Elf32_Shdr is needed later on.

Since both are 64 bytes, no functional change.

Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
Link: https://github.com/kmod-project/kmod/pull/279
Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
libkmod/libkmod-elf.c