Add workaround for a pdf fix

This commit is contained in:
pancake 2017-05-15 14:40:43 +02:00
parent 03275401c9
commit 8ccedf3973

View File

@ -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);