Fix iOS/OSX debugger regression introduced in 90b47a9f20

This commit is contained in:
pancake 2015-02-23 01:05:26 +01:00
parent 4b636346a4
commit 813cc23bd3
1 changed files with 3 additions and 0 deletions

View File

@ -516,6 +516,9 @@ R_API int r_bin_load_io_at_offset_as_sz(RBin *bin, RIODesc *desc, ut64 baseaddr,
buf_bytes = NULL;
file_sz = iob->desc_size (io, desc);
/* Fix OSX/iOS debugger -- needs review for proper fix */
if (!file_sz || file_sz == UT64_MAX)
file_sz = 2*1024*1024; // 2MB
if (sz == 0)
sz = file_sz;
#if 1