wireguard-go/tun/wintun/memmod
Jason A. Donenfeld bad6caeb82 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>
2021-07-29 01:27:40 +02:00
..
memmod_windows.go memmod: fix protected delayed load the right way 2021-07-29 01:27:40 +02:00
memmod_windows_32.go global: bump copyright 2021-01-28 17:52:15 +01:00
memmod_windows_64.go global: bump copyright 2021-01-28 17:52:15 +01:00
memmod_windows_386.go global: bump copyright 2021-01-28 17:52:15 +01:00
memmod_windows_amd64.go global: bump copyright 2021-01-28 17:52:15 +01:00
memmod_windows_arm.go global: bump copyright 2021-01-28 17:52:15 +01:00
memmod_windows_arm64.go global: bump copyright 2021-01-28 17:52:15 +01:00
syscall_windows.go memmod: fix protected delayed load the right way 2021-07-29 01:27:40 +02:00
syscall_windows_32.go memmod: disable protected delayed load for now 2021-07-29 01:13:03 +02:00
syscall_windows_64.go memmod: disable protected delayed load for now 2021-07-29 01:13:03 +02:00