import mingw-expat-2.2.4-5.el8

This commit is contained in:
CentOS Sources 2021-03-30 14:31:32 -04:00 committed by Stepan Oksanichenko
parent daa0204ffa
commit 12119e7797
2 changed files with 26 additions and 2 deletions

View File

@ -0,0 +1,15 @@
https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2018-20843
https://github.com/libexpat/libexpat/commit/11f8838bf99ea0a6f0b76f9760c43704d00c4ff6
--- libexpat-R_2_2_5/expat/lib/xmlparse.c.cve20843
+++ libexpat-R_2_2_5/expat/lib/xmlparse.c
@@ -6057,7 +6057,7 @@ setElementTypePrefix(XML_Parser parser,
else
poolDiscard(&dtd->pool);
elementType->prefix = prefix;
-
+ break;
}
}
return 1;

View File

@ -2,12 +2,13 @@
Name: mingw-expat Name: mingw-expat
Version: 2.2.4 Version: 2.2.4
Release: 3%{?dist} Release: 5%{?dist}
Summary: MinGW Windows port of expat XML parser library Summary: MinGW Windows port of expat XML parser library
License: MIT License: MIT
URL: http://www.libexpat.org/ URL: http://www.libexpat.org/
Source0: http://downloads.sourceforge.net/expat/expat-%{version}.tar.bz2 Source0: http://downloads.sourceforge.net/expat/expat-%{version}.tar.bz2
Patch1: expat-2.2.5-CVE-2018-20843.patch
BuildArch: noarch BuildArch: noarch
ExclusiveArch: %{ix86} x86_64 ExclusiveArch: %{ix86} x86_64
@ -73,7 +74,7 @@ Static version of the MinGW Windows expat XML parser library.
%prep %prep
%setup -q -n expat-%{version} %setup -q -n expat-%{version}
%patch1 -p2 -b .cve20843
%build %build
%mingw_configure %mingw_configure
@ -122,6 +123,14 @@ rm -r $RPM_BUILD_ROOT%{mingw64_mandir}/man1
%changelog %changelog
* Wed Jun 10 2020 Uri Lublin <uril@redhat.com> - 2.2.4-5
- Rebuild
- Resolves: rhbz#1773899
* Wed May 06 2020 Uri Lublin <uril@redhat.com> - 2.2.4-4
- Fix CVE-2018-20843
- Resolves: rhbz#1773899
* Tue Aug 14 2018 Victor Toso <victortoso@redhat.com> - 2.2.4-3 * Tue Aug 14 2018 Victor Toso <victortoso@redhat.com> - 2.2.4-3
- ExclusiveArch: i686, x86_64 - ExclusiveArch: i686, x86_64
- Related: rhbz#1615874 - Related: rhbz#1615874