pe-binary: split pe_header_find_section() in two
authorLennart Poettering <lennart@poettering.net>
Fri, 5 Jul 2024 08:31:20 +0000 (10:31 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 12 Sep 2024 08:02:15 +0000 (10:02 +0200)
commite6c49f7f11cbee0fde345c60b610cd0d8b0d3e1e
tree2c7aace6010cf1e0481ededab272884e36f5ea06
parentf3c1d7fea124c5a68534ffe14bab2996ffe84732
pe-binary: split pe_header_find_section() in two

This splits out the core part into a new function
pe_section_table_find().

pe_header_find_section() takes a PeHeader as input, while
pe_section_table_find() just takes the section table and its size.
src/shared/pe-binary.c
src/shared/pe-binary.h