mirror of
https://github.com/radareorg/radare2.git
synced 2025-02-03 04:05:06 +00:00
Fix isStripped() bit for PE bins ##bin
This commit is contained in:
parent
7d158e443b
commit
5dd0d505e1
@ -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>
|
||||
|
@ -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));
|
||||
|
@ -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)) {
|
||||
|
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user