Skip to content

android: add VPROT_WRITECOPY to PE header protection#26

Open
idans320 wants to merge 1 commit into
GameNative:proton_11.0from
idans320:proton_11.0
Open

android: add VPROT_WRITECOPY to PE header protection#26
idans320 wants to merge 1 commit into
GameNative:proton_11.0from
idans320:proton_11.0

Conversation

@idans320

Copy link
Copy Markdown

The PE header area was mapped VPROT_READ only, making it non-writable. Some installers (e.g. GOG/Inno Setup) do a 'lock or [image_base], 0' anti-tamper check that writes to the header and crashes with an access violation.

Change to VPROT_READ | VPROT_WRITECOPY, matching what the flat-mapped (native subsystem) path and Windows use for the image header.

image

The PE header area was mapped VPROT_READ only, making it
non-writable. Some installers (e.g. GOG/Inno Setup) do a
'lock or [image_base], 0' anti-tamper check that writes to
the header and crashes with an access violation.

Change to VPROT_READ | VPROT_WRITECOPY, matching what the
flat-mapped (native subsystem) path and Windows use for
the image header.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant