From 8ccedf39736468f60c7219518c13d5bba2df633a Mon Sep 17 00:00:00 2001 From: pancake Date: Mon, 15 May 2017 14:40:43 +0200 Subject: [PATCH] Add workaround for a pdf fix --- libr/core/cmd_print.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libr/core/cmd_print.c b/libr/core/cmd_print.c index a542700478..f297c95f20 100644 --- a/libr/core/cmd_print.c +++ b/libr/core/cmd_print.c @@ -3523,7 +3523,8 @@ static int cmd_print(void *data, const char *input) { } cont_size = tmp_get_contsize (f); #endif - r_core_cmdf (core, "pD %d @ 0x%08" PFMT64x, f->_size, f->addr); + r_core_cmdf (core, "pD %d @ 0x%08" PFMT64x, + f->_size > 0 ? f->_size: r_anal_fcn_realsize (f), f->addr); #if 0 for (; locs_it && (tmp_func = locs_it->data); locs_it = locs_it->n) { cont_size = tmp_get_contsize (tmp_func);