xz/src
Lasse Collin 46ee006162 Windows: Embed an application manifest in the EXE files
IMPORTANT: This includes a security fix to command line tool
           argument handling.

Some toolchains embed an application manifest by default to declare
UAC-compliance. Some also declare compatibility with Vista/8/8.1/10/11
to let the app access features newer than those of Vista.

We want all the above but also two more things:

  - Declare that the app is long path aware to support paths longer
    than 259 characters (this may also require a registry change).

  - Force the code page to UTF-8. This allows the command line tools
    to access files whose names contain characters that don't exist
    in the current legacy code page (except unpaired surrogates).
    The UTF-8 code page also fixes security issues in command line
    argument handling which can be exploited with malicious filenames.
    See the new file w32_application.manifest.comments.txt.

Thanks to Orange Tsai and splitline from DEVCORE Research Team
for discovering this issue.

Thanks to Vijay Sarvepalli for reporting the issue to me.

Thanks to Kelvin Lee for testing with MSVC and helping with
the required build system fixes.
2024-10-01 12:10:23 +03:00
..
common Windows: Embed an application manifest in the EXE files 2024-10-01 12:10:23 +03:00
liblzma Windows: Set DLL name accurately in StringFileInfo on Cygwin and MSYS2 2024-09-30 16:55:23 +03:00
lzmainfo lzmainfo: Avoid integer overflow 2024-09-17 01:26:02 +03:00
scripts Fix typos 2024-05-18 00:34:07 +03:00
xz xz: Remove the TODO comment about --recursive 2024-07-06 14:04:48 +03:00
xzdec xzdec: Remove unused short option -M 2024-09-16 23:33:29 +03:00
Makefile.am Windows: Embed an application manifest in the EXE files 2024-10-01 12:10:23 +03:00