summaryrefslogtreecommitdiffhomepage
path: root/tun/tun_linux.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 /tun/tun_linux.go
parentc89f5ca665bdab39cdc695c171e0eedd6baf03e8 (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 'tun/tun_linux.go')
0 files changed, 0 insertions, 0 deletions