diff --git a/0001-add-meson-buildsystem-definitions.patch b/0001-add-meson-buildsystem-definitions.patch index ce1328faf503bbf9d441d04a2c7eda06e4204834..ce1dfe0b4fa5c7ec476d14c8d6d2e18f5311c840 100644 --- a/0001-add-meson-buildsystem-definitions.patch +++ b/0001-add-meson-buildsystem-definitions.patch @@ -91,9 +91,9 @@ index 00000000..e8a633e7 +#ifndef XMLRPC_C_CONFIG_H_INCULDED +#define XMLRPC_C_CONFIG_H_INCLUDED + -+/* This file, part of XML-RPC For C/C++, is meant to -+ define characteristics of this particular installation -+ that the other header files need in ++/* This file, part of XML-RPC For C/C++, is meant to ++ define characteristics of this particular installation ++ that the other header files need in + order to compile correctly when #included in Xmlrpc-c + user code. + diff --git a/0004-Add-missing-validation-of-encoding-CVE-2022-25235.patch b/0004-Add-missing-validation-of-encoding-CVE-2022-25235.patch index a11e7927f953777430d1b79589dec5640a54757a..095b9bd01343a9305548f383a02d8c7d590248b3 100644 --- a/0004-Add-missing-validation-of-encoding-CVE-2022-25235.patch +++ b/0004-Add-missing-validation-of-encoding-CVE-2022-25235.patch @@ -45,7 +45,7 @@ index 7b31fbb..3b0c950 100644 -#define utf8_isInvalid2 isNever +static +int utf8_isInvalid2(const ENCODING *enc ATTR_UNUSED, const char *p) -+{ ++{ + return UTF8_INVALID2((const unsigned char *)p); +} diff --git a/xmlrpc-c.spec b/xmlrpc-c.spec index f572796859720497a2397c4b450f7e7f49fd5120..6d3b3dbfd6635285025808d0a60891b0f08e67e8 100644 --- a/xmlrpc-c.spec +++ b/xmlrpc-c.spec @@ -1,3 +1,4 @@ +%define anolis_release .0.1 %global advanced_branch 1 # Upstream libxml2 backend is completely broken since 2015 @@ -6,7 +7,7 @@ Name: xmlrpc-c Version: 1.51.0 -Release: 5%{?dist}.1 +Release: 5%{anolis_release}%{?dist}.1 Summary: Lightweight RPC library based on XML and HTTP # See doc/COPYING for details. # The Python 1.5.2 license used by a few files is just BSD. @@ -192,6 +193,9 @@ This package contains some handy XML-RPC demo applications. %{_bindir}/xmlrpc_dumpserver %changelog +* Fri May 06 2022 Liu Xiaoping - 1.51.0-5.0.1.1 +- Remove tail space + * Thu Mar 03 2022 Rob Crittenden - 1.51.0-5.1 - Add missing validation of encoding (CVE-2022-25235) (#2058114)