[2/2] ntdll: Allow reading from a VPROT_WRITECOPY protected memory

Dmitry Timoshkov dmitry at baikal.ru
Mon Sep 5 22:30:13 CDT 2011


André Hentschel wrote:

> As per tests in kernel32:loader it seems linux&co allows reads on PROT_WRITE areas, but solaris doesn't and crashes.
> This fixes this issue.

> -        if (vprot & VPROT_WRITECOPY) prot |= PROT_WRITE;
> +        if (vprot & VPROT_WRITECOPY) prot |= PROT_READ | PROT_WRITE;

Do you mean that the recently added test for resource section access
mapping crashes on Solaris? If yes, then the fix should be done in different
place.

-- 
Dmitry.




More information about the wine-devel mailing list