The inclusive comparison against st_size incorrectly rejects mappings
ending exactly at the file boundary.
This patch:
1.Changes >= to > to allow valid mappings up to the file size.
2.Uses subtraction-based logic to prevent potential integer overflow.