https://bugs.winehq.org/show_bug.cgi?id=51928
Bug ID: 51928 Summary: Security cookie in read-only section causes crash on startup Product: Wine Version: unspecified Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: ntdll Assignee: wine-bugs@winehq.org Reporter: vrbuckle@synthtools.co.uk Distribution: ---
After some point, PE binaries are allowed to have the security cookie in a read-only section.
set_security_cookie does not handle this and segfaults trying to write to read-only memory.
Example binary: .NET Native compiler 2.2.x : https://www.nuget.org/api/v2/package/runtime.win10-x64.Microsoft.Net.Native.... this is a zip file, the faulting binary is at tools/x64/ilc/ilc.exe