From 5b4a4b7be0528c11fbe197ee957cd4afbaedb623 Mon Sep 17 00:00:00 2001 From: Jeffrey Crowell Date: Mon, 27 Apr 2015 23:58:29 -0400 Subject: [PATCH] pass the correct length in pe handling. fix build --- libr/bin/format/pe/pe.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libr/bin/format/pe/pe.c b/libr/bin/format/pe/pe.c index 5acec829bb..252f9befde 100644 --- a/libr/bin/format/pe/pe.c +++ b/libr/bin/format/pe/pe.c @@ -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); }