google / mozc

Mozc - a Japanese Input Method Editor designed for multi-platform
Other
2.32k stars 330 forks source link

Enable Hardware Enforced Stack Protection in Windows #835

Closed yukawa closed 8 months ago

yukawa commented 8 months ago

Description

So far there is no known broker that prevents us from enabling Hardware Enforced Stack Protection for Mozc by building executables with /CETCOMPAT.

Qt6's configure also has -intelcet option to enable CET.

References

Steps to reproduce

  1. Build Mozc.
  2. dumpbin /HEADERS .\third_party\qt\bin\Qt6Core.dll
  3. dumpbin /HEADERS .\out_win\Release_x64\mozc_tip64.dll
  4. dumpbin /HEADERS .\out_win\ReleaseDynamic_x64\mozc_server.exe

Expected behavior

At the step 2, 3, and 4, you can find the following section.

        00000001 extended DLL characteristics
                   CET compatible

Version or commit-id

51e0d20285de63d2f0f5007d01c7bf63c0a8dfae

Environment