mirror of
https://github.com/VirusTotal/yara.git
synced 2026-10-12 02:10:00 +00:00
Fix wrong endianness conversion.
section->flags is 64bit or 32bit for ELF64 and ELF32 files respectively. Different endianness conversion functions must be called for each case.
This commit is contained in:
@@ -220,7 +220,7 @@ void parse_elf_header_##bits##_##bo( \
|
||||
{ \
|
||||
set_integer(yr_##bo##32toh(section->type), elf_obj, \
|
||||
"sections[%i].type", i); \
|
||||
set_integer(yr_##bo##32toh(section->flags), elf_obj, \
|
||||
set_integer(yr_##bo##bits##toh(section->flags), elf_obj, \
|
||||
"sections[%i].flags", i); \
|
||||
set_integer(yr_##bo##bits##toh(section->addr), elf_obj, \
|
||||
"sections[%i].address", i); \
|
||||
|
||||
Reference in New Issue
Block a user