diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2021-07-29 01:27:40 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2021-07-29 01:27:40 +0200 |
commit | bad6caeb82edd0e22bdbcfa1ca544a5805109e14 (patch) | |
tree | 653e9a40390d7c6e1f34a3ade107809323ab3433 /conn/winrio/rio_windows.go | |
parent | c89f5ca665bdab39cdc695c171e0eedd6baf03e8 (diff) |
memmod: fix protected delayed load the right way
The reason this was failing before is that dloadsup.h's
DloadObtainSection was doing a linear search of sections to find which
header corresponds with the IMAGE_DELAYLOAD_DESCRIPTOR section, and we
were stupidly overwriting the VirtualSize field, so the linear search
wound up matching the .text section, which then it found to not be
marked writable and failed with FAST_FAIL_DLOAD_PROTECTION_FAILURE.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'conn/winrio/rio_windows.go')
0 files changed, 0 insertions, 0 deletions