https://bugs.winehq.org/show_bug.cgi?id=49663
--- Comment #15 from Fabian Maurer dark.shadow4@web.de ---
Note that it isn't as easy as comparing pointers + range. Various mmap shenanigans might be going on that make memory areas that look separate overlap.
The question is, does msvcrt handle this? musl for example, does a simple range check.