Fix bug when scanning to allocate a large block near the end of memory
Fix bug when scanning to allocate a large block near the end of memory

badvision/lawless-legends,badvision/lawless-legends,badvision/lawless-legends,badvision/lawless-legends,badvision/lawless-legends,badvision/lawless-legends,badvision/lawless-legends