Alexandre Julliard pushed to branch master at wine / wine
Commits: 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).
- - - - -
1 changed file:
- dlls/kernel32/tests/heap.c
View it on GitLab: https://gitlab.winehq.org/wine/wine/-/commit/892b3f86beda6b7bb893b77baa42c4d...