Regression caused by "ntdll: Check file size when mapping image sections to avoid SIGBUS errors."

Troy Rollo wine at troy.rollo.name
Tue Jan 10 19:12:06 CST 2006


On Wed, 4 Jan 2006 08:21, Alexandre Julliard wrote:
> Module: wine
> Branch: refs/heads/master
> Commit: 67f29999a36ce3725a52b79ed618964244cc96ae

...
>      status = STATUS_INVALID_IMAGE_FORMAT;  /* generic error */
> +    if (header_size > st.st_size) goto error;
>      if (map_file_into_view( view, fd, 0, header_size, 0, VPROT_COMMITTED |
...

This change prevents Wine from loading Win32 executables that are less than 
64K long. header_size is 65536, but st.st_size is less than that.
-- 
Troy Rollo - wine at troy.rollo.name



More information about the wine-devel mailing list