diff options
author | vanhauser-thc <vh@thc.org> | 2021-04-28 21:35:27 +0200 |
---|---|---|
committer | vanhauser-thc <vh@thc.org> | 2021-04-28 21:35:27 +0200 |
commit | 6a134e4a263ce0488a71a79964b4b7665de2dfe4 (patch) | |
tree | 1424a65f83f4228da13af7c7adfa90f2a92485bd | |
parent | dedeb01ffa94e9179a88c684c7cfa615982e1f8a (diff) | |
download | afl++-6a134e4a263ce0488a71a79964b4b7665de2dfe4.tar.gz |
frida mode - support non-pie
-rw-r--r-- | frida_mode/src/lib.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/frida_mode/src/lib.c b/frida_mode/src/lib.c index feeb6541..e50163ac 100644 --- a/frida_mode/src/lib.c +++ b/frida_mode/src/lib.c @@ -64,6 +64,7 @@ static void lib_validate_hdr(Elf_Ehdr *hdr) { if (hdr->e_ident[2] != ELFMAG2) FATAL("Invalid e_ident[2]"); if (hdr->e_ident[3] != ELFMAG3) FATAL("Invalid e_ident[3]"); if (hdr->e_ident[4] != ELFCLASS) FATAL("Invalid class"); +/* if (hdr->e_ident[5] != (lib_is_little_endian() ? ELFDATA2LSB : ELFDATA2MSB)) FATAL("Invalid endian"); if (hdr->e_ident[6] != EV_CURRENT) FATAL("Invalid version"); @@ -73,6 +74,7 @@ static void lib_validate_hdr(Elf_Ehdr *hdr) { if (hdr->e_ehsize != sizeof(Elf_Ehdr)) FATAL("Invalid e_ehsize"); if (hdr->e_phentsize != sizeof(Elf_Phdr)) FATAL("Invalid e_phentsize"); if (hdr->e_shentsize != sizeof(Elf_Shdr)) FATAL("Invalid e_shentsize"); +*/ } |