From d21d19c450a1b460b80c2ead5ac504b2cfd678e9 Mon Sep 17 00:00:00 2001 From: Dima Turchenkov Date: Fri, 4 Dec 2015 19:22:31 +0300 Subject: [PATCH] strange delphi artifact in PE header causes this bug --- libr/bin/format/pe/pe.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libr/bin/format/pe/pe.c b/libr/bin/format/pe/pe.c index 23a3011e10..c87e4cb15f 100644 --- a/libr/bin/format/pe/pe.c +++ b/libr/bin/format/pe/pe.c @@ -2377,9 +2377,12 @@ int PE_(r_bin_pe_is_pie)(struct PE_(r_bin_pe_obj_t)* bin) { } int PE_(r_bin_pe_is_big_endian)(struct PE_(r_bin_pe_obj_t)* bin) { + /* if (!bin || !bin->nt_headers) return false; return HASCHR (PE_IMAGE_FILE_BYTES_REVERSED_HI); + */ + return false; // this flag is deprecated, see ms specs } int PE_(r_bin_pe_is_stripped_relocs)(struct PE_(r_bin_pe_obj_t)* bin) {