Fix isStripped() bit for PE bins ##bin

This commit is contained in:
radare 2019-05-11 19:22:56 +02:00 committed by GitHub
parent 7d158e443b
commit 5dd0d505e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 8 deletions

View File

@ -1,4 +1,4 @@
/* radare - LGPL - Copyright 2008-2017 nibble, pancake, inisider */
/* radare - LGPL - Copyright 2008-2019 nibble, pancake, inisider */
#include <stdio.h>
#include <stdlib.h>

View File

@ -1,12 +1,10 @@
/* radare - LGPL - Copyright 2009-2018 - nibble, pancake, alvarofe */
/* radare - LGPL - Copyright 2009-2019 - nibble, pancake, alvarofe */
#include "bin_pe.inc"
static bool check_bytes(const ut8 *buf, ut64 length) {
unsigned int idx;
if (!buf) {
return false;
}
if (length <= 0x3d) {
if (!buf || length <= 0x3d) {
return false;
}
idx = (buf[0x3c] | (buf[0x3d]<<8));

View File

@ -520,7 +520,7 @@ static RBinInfo* info(RBinFile *bf) {
ret->has_va = true;
if (!PE_(r_bin_pe_is_stripped_debug) (bf->o->bin_obj)) {
if (PE_(r_bin_pe_is_stripped_debug) (bf->o->bin_obj)) {
ret->dbg_info |= R_BIN_DBG_STRIPPED;
}
if (PE_(r_bin_pe_is_stripped_line_nums) (bf->o->bin_obj)) {

View File

@ -1,4 +1,4 @@
/* radare - LGPL - Copyright 2011-2018 - earada, pancake */
/* radare - LGPL - Copyright 2011-2019 - earada, pancake */
#include <r_core.h>
#include <r_config.h>