summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorJames Ross-Gowan <rossymiles@gmail.com>2014-01-07 23:26:26 +1100
committerwm4 <wm4@nowhere>2014-01-31 19:07:09 +0100
commit808aa08cc0b68ec2640f7b3be6759c803f5cdb34 (patch)
treef11960b1701eea48514d5c177229c78b53e6d60e /common
parent2065e0ba3635afe575977c02c1efbbd62e9891bc (diff)
downloadmpv-808aa08cc0b68ec2640f7b3be6759c803f5cdb34.tar.bz2
mpv-808aa08cc0b68ec2640f7b3be6759c803f5cdb34.tar.xz
w32: use safe DLL search paths everywhere
Windows applications that use LoadLibrary are vulnerable to DLL preloading attacks if a malicious DLL with the same name as a system DLL is placed in the current directory. mpv had some code to avoid this in ao_wasapi.c. This commit just moves it to main.c, since there's no reason it can't be used process-wide. This change can affect how plugins are loaded in AviSynth, but it shouldn't be a problem since MPC-HC also does this and it's a very popular AviSynth client.
Diffstat (limited to 'common')
0 files changed, 0 insertions, 0 deletions