http://bugs.winehq.org/show_bug.cgi?id=22813
Summary: wine's loader does not check invalid image size Product: Wine Version: 1.1.44 Platform: x86 URL: http://ghostscript.com/~hintak/wine-debug/ OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: loader AssignedTo: wine-bugs@winehq.org ReportedBy: htl10@users.sourceforge.net
+++ This bug was initially created as a clone of Bug #22812 +++ (#22812 against the compilation - this bug is about the loader not complaining)
part of ghostscript's building process runs:
mt -nologo -manifest psi/dwsetup_x86.manifest -outputresource:setupgs.exe;#1 mt -nologo -manifest psi/dwuninst_x86.manifest -outputresource:uninstgs.exe;#1
This step corrupts executables under wine and they gain a wrong image size; both vista and win7 then complains they are not valid win32 applications. See discussion on wine-devel mailing list.
But wine would happily load them, so wine is not checking for validity. Here are two such broken executables:
http://ghostscript.com/~hintak/wine-debug/setupgs-wine.exe http://ghostscript.com/~hintak/wine-debug/uninstgs-wine.exe