pass the correct length in pe handling. fix build

This commit is contained in:
Jeffrey Crowell 2015-04-27 23:58:29 -04:00
parent e52d79e855
commit 5b4a4b7be0

View File

@ -1908,8 +1908,7 @@ int PE_(r_bin_pe_get_debug_data)(struct PE_(r_bin_pe_obj_t) *bin, SDebugInfo *re
}
dbg_data = (ut8 *) malloc (dbg_data_len + 1);
if (dbg_data) {
r_buf_read_at (bin->b, dbg_data_poff,
dbg_data, img_dbg_dir_entry->SizeOfData);
r_buf_read_at (bin->b, dbg_data_poff, dbg_data, dbg_data_len);
result = get_debug_info(img_dbg_dir_entry, dbg_data, res);
R_FREE(dbg_data);
}