Rémi Bernon rbernon@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.