[PATCH resend v3 1/2] ntdll: Try mapping free memory region outside of reserved regions.

Alexandre Julliard julliard at winehq.org
Tue Dec 24 06:27:59 CST 2019


Rémi Bernon <rbernon at codeweavers.com> writes:

> We assumed that all mapped regions are known by Wine view tree, which
> is obviously not the case with external allocations. This could lead to
> memory corruption when find_free_area returns an expected free region
> which is already mapped. Using MAP_FIXED forces mmap to succeed and
> corrupts the mapping.

I have a feeling that this would be cleaner with a separate function,
particularly since the algorithm to find free space in the system areas
could be made smarter.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list