Projects
Mega:24.03:SP1:Everything
xz
Sign Up
Log In
Username
Password
We truncated the diff of some files because they were too big. If you want to see the full diff for every file,
click here
.
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 2
View file
_service:tar_scm:xz.spec
Changed
@@ -1,6 +1,6 @@ Name: xz Version: 5.4.7 -Release: 1 +Release: 3 Summary: A free general-purpose data compreession software with LZMA2 algorithm License: GPL-3.0-only URL: http://tukaani.org/xz @@ -11,8 +11,11 @@ # https://github.com/tukaani-project/xz/releases/tag/v5.4.7 # https://github.com/tukaani-project/xz/releases/download/v5.4.7/xz-5213-547-562-libtool.patch Patch0: xz-5213-547-562-libtool.patch +Patch1: 0001-fix-CVE-2024-47611.patch BuildRequires: perl-interpreter gcc +# Patch1 modified Makefile.am so we need this +BuildRequires: automake Requires: %{name} = %{version}-%{release} Requires: grep >= 2.20-5 @@ -109,6 +112,12 @@ %lang(pt_BR) %{_mandir}/pt_BR/man1/* %changelog +* Tue Nov 5 15:46:38 2024 Kai Liu <kai.liu@windriver.com> - 5.4.7-3 +- Add BuildRequires for automake as patch1 modified Makefile.am. + +* Tue Oct 08 2024 changtao <changtao@kylinos.cn> - 5.4.7-2 +-fix CVE-2024-47611 + * Thu Aug 01 2024 Funda Wang <fundawang@yeah.net> - 5.4.7-1 - Update to 5.4.7
View file
_service:tar_scm:0001-fix-CVE-2024-47611.patch
Added
@@ -0,0 +1,294 @@ +From bf518b9ba446327a062ddfe67e7e0a5baed2394f Mon Sep 17 00:00:00 2001 +From: Lasse Collin <lasse.collin@tukaani.org> +Date: Tue, 8 Oct 2024 17:20:31 +0800 +Subject: PATCH fix CVE-2024-47611 + +IMPORTANT: This includes a security fix to command line tool + argument handling. + +--- + CMakeLists.txt | 18 ++ + src/Makefile.am | 4 +- + src/common/common_w32res.rc | 5 + + src/common/w32_application.manifest | 29 +++ + .../w32_application.manifest.comments.txt | 178 ++++++++++++++++++ + 5 files changed, 233 insertions(+), 1 deletion(-) + create mode 100644 src/common/w32_application.manifest + create mode 100644 src/common/w32_application.manifest.comments.txt + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index ed52ff8..77fe152 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -122,6 +122,24 @@ else() + set(PACKAGE_NAME_DEFINITION "${PACKAGE_NAME}") + endif() + ++# When used with MSVC, CMake can merge .manifest files with ++# linker-generated manifests and embed the result in an executable. ++# However, when paired with MinGW-w64, CMake (3.30) ignores .manifest ++# files. Embedding a manifest with a resource file works with both ++# toochains. It's also the way to do it with Autotools. ++# ++# With MSVC, we need to disable the default manifest; attempting to add ++# two manifest entries would break the build. The flag /MANIFEST:NO ++# goes to the linker and it also affects behavior of CMake itself: it ++# looks what flags are being passed to the linker and when CMake sees ++# the /MANIFEST:NO option, other manifest-related linker flags are ++# no longer added (see the file Source/cmcmd.cxx in CMake). ++# ++# See: https://gitlab.kitware.com/cmake/cmake/-/issues/23066 ++if(MSVC) ++ set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /MANIFEST:NO") ++endif() ++ + # Definitions common to all targets: + add_compile_definitions( + # Package info: +diff --git a/src/Makefile.am b/src/Makefile.am +index d199e85..c28917b 100644 +--- a/src/Makefile.am ++++ b/src/Makefile.am +@@ -39,4 +39,6 @@ EXTRA_DIST = \ + common/tuklib_physmem.c \ + common/tuklib_physmem.h \ + common/tuklib_progname.c \ +- common/tuklib_progname.h ++ common/tuklib_progname.h \ ++ common/w32_application.manifest \ ++ common/w32_application.manifest.comments.txt +diff --git a/src/common/common_w32res.rc b/src/common/common_w32res.rc +index d05d22e..1f82577 100644 +--- a/src/common/common_w32res.rc ++++ b/src/common/common_w32res.rc +@@ -50,3 +50,8 @@ BEGIN + VALUE "Translation", 0x409, 1200 + END + END ++ ++/* Omit the manifest on Cygwin and MSYS2 (both define __CYGWIN__). */ ++#if MY_TYPE == VFT_APP && !defined(__CYGWIN__) ++CREATEPROCESS_MANIFEST_RESOURCE_ID RT_MANIFEST "w32_application.manifest" ++#endif +diff --git a/src/common/w32_application.manifest b/src/common/w32_application.manifest +new file mode 100644 +index 0000000..33f7f65 +--- /dev/null ++++ b/src/common/w32_application.manifest +@@ -0,0 +1,29 @@ ++<?xml version="1.0" encoding="UTF-8" standalone="yes"?> ++ ++<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0"> ++ <compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1"> ++ <application> ++ <supportedOS Id="{e2011457-1546-43c5-a5fe-008deee3d3f0}"/> <!-- Vista --> ++ <supportedOS Id="{35138b9a-5d96-4fbd-8e2d-a2440225f93a}"/> <!-- 7 --> ++ <supportedOS Id="{4a2f28e3-53b9-4441-ba9c-d69d4a4a6e38}"/> <!-- 8 --> ++ <supportedOS Id="{1f676c76-80e1-4239-95bb-83d0f6d0da78}"/> <!-- 8.1 --> ++ <supportedOS Id="{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}"/> <!-- 10/11 --> ++ </application> ++ </compatibility> ++ ++ <trustInfo xmlns="urn:schemas-microsoft-com:asm.v3"> ++ <security> ++ <requestedPrivileges> ++ <requestedExecutionLevel level="asInvoker"/> ++ </requestedPrivileges> ++ </security> ++ </trustInfo> ++ ++ <application xmlns="urn:schemas-microsoft-com:asm.v3"> ++ <windowsSettings> ++ <longPathAware xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings">true</longPathAware> ++ <activeCodePage xmlns="http://schemas.microsoft.com/SMI/2019/WindowsSettings">UTF-8</activeCodePage> ++ </windowsSettings> ++ </application> ++</assembly> ++ +diff --git a/src/common/w32_application.manifest.comments.txt b/src/common/w32_application.manifest.comments.txt +new file mode 100644 +index 0000000..ad0835c +--- /dev/null ++++ b/src/common/w32_application.manifest.comments.txt +@@ -0,0 +1,178 @@ ++ ++Windows application manifest for UTF-8 and long paths ++===================================================== ++ ++The .manifest file is embedded as is in the executables, thus ++the comments are here in a separate file. These comments were ++written in context of XZ Utils but might be useful when porting ++other command line tools from POSIX environments to Windows. ++ ++ NOTE: On Cygwin and MSYS2, command line arguments and file ++ system access aren't tied to a Windows code page. Cygwin ++ and MSYS2 include a default application manifest. Replacing ++ it doesn't seem useful and might even be harmful if Cygwin ++ and MSYS2 some day change their default manifest. ++ ++ ++UTF-8 code page ++--------------- ++ ++On Windows, command line applications can use main() or wmain(). ++With the Windows-specific wmain(), argv contains UTF-16 code units ++which is the native encoding on Windows. With main(), argv uses the ++system active code page by default. It typically is a legacy code ++page like Windows-1252. ++ ++ NOTE: On POSIX, argv for main() is constructed by the calling ++ process. On Windows, argv is constructed by a new process ++ itself: a program receives the command line as a single string, ++ and the startup code splits it into individual arguments, ++ including quote removal and wildcard expansion. Then main() or ++ wmain() is called. ++ ++This application manifest forces the process code page to UTF-8 ++when the application runs on Windows 10 version 1903 or later. ++This is useful for programs that use main(): ++ ++ * UTF-8 allows such programs to access files whose names contain ++ characters that don't exist in the current legacy code page. ++ However, filenames on Windows may contain unpaired surrogates ++ (invalid UTF-16). Such files cannot be accesses even with the ++ UTF-8 code page. ++ ++ * UTF-8 avoids a security issue in command line argument handling: ++ If a command line contains Unicode characters (for example, ++ filenames) that don't exist in the current legacy code page, ++ the characters are converted to similar-looking characters ++ with best-fit mapping. Some best-fit mappings result in ASCII ++ characters that change the meaning of the command line, which ++ can be exploited with malicious filenames. For example: ++ ++ - Double quote (") breaks quoting and makes argument ++ injection possible. ++ ++ - Question mark (?) is a wildcard character which may ++ expand to one or more filenames. ++ ++ - Forward slash (/) makes a directory traversal attack ++ possible. This character can appear in a dangerous way ++ even from a wildcard expansion; a look-alike character ++ doesn't need to be passed directly on the command line. ++ ++ UTF-8 avoids best-fit mappings. However, it's still not ++ perfect. Unpaired surrogates (invalid UTF-16) on the command ++ line (including those from wildcard expansion) are converted ++ to the replacement character U+FFFD. Thus, filenames with ++ different unpaired surrogates appear identical when converted ++ to the UTF-8 code page and aren't distinguishable from ++ filenames that contain the actual replacement character U+FFFD. ++ ++If different programs use different code pages, compatibility issues ++are possible. For example, if one program produces a list of ++filenames and another program reads it, both programs should use ++the same code page because the code page affects filenames in the ++char-based file system APIs. ++ ++If building with a MinGW-w64 toolchain, it is strongly recommended ++to use UCRT instead of the old MSVCRT. For example, with the UTF-8 ++code page, MSVCRT doesn't convert non-ASCII characters correctly ++when writing to console with printf(). With UCRT it works. ++ ++ ++Long path names ++--------------- ++ ++The manifest enables support for path names longer than 259 ++characters if the feature has been enabled in the Windows registry.
View file
_service
Changed
@@ -2,7 +2,7 @@ <service name="tar_scm"> <param name="scm">git</param> <param name="url">git@gitee.com:src-openeuler/xz.git</param> - <param name="revision">openEuler-24.03-LTS-Next</param> + <param name="revision">openEuler-24.03-LTS-SP1</param> <param name="exclude">*</param> <param name="extract">*</param> </service>
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2