aboutsummaryrefslogtreecommitdiffstats
path: root/rwcancel/rwcancel_windows.go
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2021-07-29 01:27:40 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2021-07-29 01:27:40 +0200
commitbad6caeb82edd0e22bdbcfa1ca544a5805109e14 (patch)
tree653e9a40390d7c6e1f34a3ade107809323ab3433 /rwcancel/rwcancel_windows.go
parentmemmod: disable protected delayed load for now (diff)
downloadwireguard-go-bad6caeb82edd0e22bdbcfa1ca544a5805109e14.tar.xz
wireguard-go-bad6caeb82edd0e22bdbcfa1ca544a5805109e14.zip
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 'rwcancel/rwcancel_windows.go')
0 files changed, 0 insertions, 0 deletions