Closed yukawa closed 11 months ago
Windows 10 ver. 1607 and later support /DEPENDENTLOADFLAG link option, which makes so-called DLL planting attack much harder.
/DEPENDENTLOADFLAG
Let's see if we can enable it in Mozc executables for Windows.
See also the following article.
Steps to reproduce the behavior:
dumpbin /LOADCONFIG .\out_win\ReleaseDynamic_x64\mozc_server.exe | findstr /c:"Dependent Load Flag"
dumpbin /LOADCONFIG .\out_win\Release_x64\mozc_tip64.dll | findstr /c:"Dependent Load Flag"
0A00 Dependent Load Flag
0A00
LOAD_LIBRARY_SEARCH_SYSTEM32 | LOAD_LIBRARY_SEARCH_APPLICATION_DIR
0800 Dependent Load Flag
0800
LOAD_LIBRARY_SEARCH_SYSTEM32
51e0d20285de63d2f0f5007d01c7bf63c0a8dfae
Description
Windows 10 ver. 1607 and later support
/DEPENDENTLOADFLAG
link option, which makes so-called DLL planting attack much harder.Let's see if we can enable it in Mozc executables for Windows.
See also the following article.
Steps to reproduce
Steps to reproduce the behavior:
dumpbin /LOADCONFIG .\out_win\ReleaseDynamic_x64\mozc_server.exe | findstr /c:"Dependent Load Flag"
dumpbin /LOADCONFIG .\out_win\Release_x64\mozc_tip64.dll | findstr /c:"Dependent Load Flag"
Expected behavior
0A00 Dependent Load Flag
is shown, where0A00
correspondsLOAD_LIBRARY_SEARCH_SYSTEM32 | LOAD_LIBRARY_SEARCH_APPLICATION_DIR
0800 Dependent Load Flag
is shown, where0800
correspondsLOAD_LIBRARY_SEARCH_SYSTEM32
.Version or commit-id
51e0d20285de63d2f0f5007d01c7bf63c0a8dfae
Environment