]> asedeno.scripts.mit.edu Git - PuTTY.git/commit
Lock down the search path for Windows DLL loading.
authorSimon Tatham <anakin@pobox.com>
Mon, 18 Jul 2016 19:02:32 +0000 (20:02 +0100)
committerSimon Tatham <anakin@pobox.com>
Mon, 18 Jul 2016 19:02:32 +0000 (20:02 +0100)
commit9398d230339d5bfaa94093af89a17abf33b5dfad
tree91128744d9becb96359345ce9d56f06dab332b79
parentf56dd17709d3239304ad2c4cdb73bcdde13c5703
Lock down the search path for Windows DLL loading.

At least on systems providing SetDefaultDllDirectories, this should
stop PuTTY from being willing to load DLLs from its containing
directory - which makes no difference when it's been properly
installed (in which case the application dir contains no DLLs anyway),
but does if it's being run from somewhere uncontrolled like a browser
downloads directory.

Preliminary testing suggests that this shouldn't break any existing
deliberate use of DLLs, including GSSAPI providers.
windows/window.c
windows/winmisc.c
windows/winpgen.c
windows/winpgnt.c
windows/winplink.c
windows/winsftp.c
windows/winstuff.h