Fixes a problem where the final-segment check for DR_MAPEXE_SKIP_WRITABLE fails to check the memory size and assumes it is just the page extension of the file size.
This fixes an assert coming from PR #4733 when run on x86 on AArch64 traces.
Fixes #4731 (closed)