18 for (
i = 0;
i <
bin->num_sections;
i++) {
19 section_base =
bin->sections[
i].vaddr;
20 section_size =
bin->sections[
i].vsize;
21 if (
rva >= section_base &&
rva < section_base + section_size) {
22 return bin->sections[
i].paddr + (
rva - section_base);
37 return va - imageBase;
48 bin->delay_import_directory =
NULL;
99 (
bin->security_directory);
100 free(
bin->delay_import_directory);
static ut64 rva(RzBinObject *o, ut64 paddr, ut64 vaddr, int va)
void bin_pe_dotnet_destroy_clr(Pe_image_clr *clr)
RZ_API void rz_hash_free(RzHash *rh)
RZ_API RzHash * rz_hash_new(void)
RZ_API void Ht_() free(HtName_(Ht) *ht)
RZ_API void rz_list_free(RZ_NONNULL RzList *list)
Empties the list and frees the list pointer.
static int bin_pe_init(RzBinPEObj *bin)
PE_DWord PE_() bin_pe_va_to_rva(RzBinPEObj *bin, PE_DWord va)
void *PE_() rz_bin_pe_free(RzBinPEObj *bin)
PE_DWord PE_() bin_pe_rva_to_paddr(RzBinPEObj *bin, PE_DWord rva)
RzBinPEObj *PE_() rz_bin_pe_new_buf(RzBuffer *buf, bool verbose)
PE_DWord PE_() bin_pe_rva_to_va(RzBinPEObj *bin, PE_DWord rva)
int PE_() rz_bin_pe_is_big_endian(RzBinPEObj *bin)
int PE_() bin_pe_init_tls(RzBinPEObj *bin)
int PE_() bin_pe_init_overlay(RzBinPEObj *bin)
int PE_() bin_pe_init_exports(RzBinPEObj *bin)
int PE_() bin_pe_init_security(RzBinPEObj *bin)
int PE_() bin_pe_init_imports(RzBinPEObj *bin)
void PE_() bin_pe_init_rich_info(RzBinPEObj *bin)
RZ_API void PE_() bin_pe_parse_resource(RzBinPEObj *bin)
ut64 PE_() rz_bin_pe_get_image_base(RzBinPEObj *bin)
int PE_() bin_pe_init_clr(RzBinPEObj *bin)
void PE_() free_security_directory(Pe_image_security_directory *security_directory)
int PE_() bin_pe_init_hdr(RzBinPEObj *bin)
int PE_() bin_pe_init_sections(RzBinPEObj *bin)
int PE_() bin_pe_init_resource(RzBinPEObj *bin)
struct rz_bin_pe_section_t *PE_() rz_bin_pe_get_sections(RzBinPEObj *bin)
RZ_API RzBuffer * rz_buf_ref(RzBuffer *b)
Increment the reference count of the buffer.
RZ_API void rz_buf_free(RzBuffer *b)
Free all internal data hold by the buffer and the buffer.
RZ_API ut64 rz_buf_size(RZ_NONNULL RzBuffer *b)
Return the size of the buffer.
#define RZ_LOG_ERROR(fmtstr,...)
RZ_API void rz_pkcs7_free_cms(RCMS *container)
RZ_API void rz_pkcs7_free_spcinfo(SpcIndirectDataContent *spcinfo)
RZ_API Sdb * sdb_new0(void)
ut64(WINAPI *w32_GetEnabledXStateFeatures)()