More exec-shield problems

Mike Hearn mike at theoretic.com
Wed Dec 24 12:04:10 CST 2003


Hi,

When /proc/sys/kernel/exec-shield is set to 1, the StarCraft installer
crashes. (it doesn't matter what the -randomize option is set to). It
appears then that exec-shield screws things up in more subtle ways than
just stopping us mapping the binary.

The details of the crash are that the game allocates some memory using
RtlAllocateHeap, uses MultiByteToWideStr to fill it, then calls
GetStringTypeW on the memory, which crashes with an access violation. 

There is a way to link wine such that execshield will be switched off,
some linker flag. Does anybody know how to integrate that with the Wine
build system?

thanks -mike




More information about the wine-devel mailing list