892b3f86
by Yuxuan Shui at 2025-11-05T17:39:44+01:00
kernel32/tests: Don't go beyond user space virtual address limit.
In get_valloc_info, if mem happens to point to the last chunk of memory in the
user space virtual address space, "p += info2.RegionSize" will cause it to go
over the limit, and subsequent VirtualQueries will fail, thus info2 won't be
changed, thus the loop exit condition is never met (well until p wraps around,
that is).