Fix iOS Crash

Map a 256M memory space on iOS may yields NULL point that will lead crash when calling memcpy this after. This commite works well on my device, and hopefuly to fix this bug.
See https://github.com/hrydgard/ppsspp/issues/5483 for details and discussion.