Compare commits
No commits in common. "894443bf11fd9361e63f154d92d6c01bb22093f2" and "6859665676d676f5a92cbd05a81e495f37b956c2" have entirely different histories.
894443bf11
...
6859665676
23
CVE-2019-6129.patch
Normal file
23
CVE-2019-6129.patch
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
From a0ca4293454ef65e67efca5dc440c601d2835e90 Mon Sep 17 00:00:00 2001
|
||||||
|
From: tangyaofang <tangyaofang6666@163.com>
|
||||||
|
Date: Mon, 10 Jun 2019 11:30:15 +0800
|
||||||
|
Subject: [PATCH] Repair of CVE-2019-6129
|
||||||
|
|
||||||
|
---
|
||||||
|
contrib/tools/pngcp.c | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/contrib/tools/pngcp.c b/contrib/tools/pngcp.c
|
||||||
|
index 16d4e7f4d..a02d5b7ff 100644
|
||||||
|
--- a/contrib/tools/pngcp.c
|
||||||
|
+++ b/contrib/tools/pngcp.c
|
||||||
|
@@ -506,7 +506,7 @@ static void
|
||||||
|
display_clean_read(struct display *dp)
|
||||||
|
{
|
||||||
|
if (dp->read_pp != NULL)
|
||||||
|
- png_destroy_read_struct(&dp->read_pp, NULL, NULL);
|
||||||
|
+ png_destroy_read_struct(&dp->read_pp, (dp->ip!=NULL ? &dp->ip : NULL), NULL);
|
||||||
|
|
||||||
|
if (dp->fp != NULL)
|
||||||
|
{
|
||||||
|
|
||||||
BIN
libpng-1.6.37.tar.gz
Normal file
BIN
libpng-1.6.37.tar.gz
Normal file
Binary file not shown.
Binary file not shown.
51
libpng.spec
51
libpng.spec
@ -1,6 +1,6 @@
|
|||||||
Name: libpng
|
Name: libpng
|
||||||
Epoch: 2
|
Epoch: 2
|
||||||
Version: 1.6.40
|
Version: 1.6.37
|
||||||
Release: 1
|
Release: 1
|
||||||
Summary: A library of functions for manipulating PNG image format files
|
Summary: A library of functions for manipulating PNG image format files
|
||||||
License: zlib
|
License: zlib
|
||||||
@ -10,8 +10,11 @@ Source1: pngusr.dfa
|
|||||||
|
|
||||||
Patch0: libpng-multilib.patch
|
Patch0: libpng-multilib.patch
|
||||||
Patch1: libpng-fix-arm-neon.patch
|
Patch1: libpng-fix-arm-neon.patch
|
||||||
|
Patch2: CVE-2019-6129.patch
|
||||||
|
|
||||||
BuildRequires: zlib-devel autoconf automake libtool
|
BuildRequires: zlib-devel autoconf automake libtool
|
||||||
|
Provides: libpng-tools
|
||||||
|
Obsoletes: libpng-tools
|
||||||
|
|
||||||
%description
|
%description
|
||||||
The libpng package contains libraries used by other programs for reading and writing PNG format files.
|
The libpng package contains libraries used by other programs for reading and writing PNG format files.
|
||||||
@ -22,26 +25,13 @@ with many improvements and extensions and lack of patent problems.
|
|||||||
Summary: Development files for libpng
|
Summary: Development files for libpng
|
||||||
Requires: %{name}%{?_isa} = %{epoch}:%{version}-%{release} zlib-devel%{?_isa} pkgconfig%{?_isa}
|
Requires: %{name}%{?_isa} = %{epoch}:%{version}-%{release} zlib-devel%{?_isa} pkgconfig%{?_isa}
|
||||||
|
|
||||||
|
Provides: libpng-static
|
||||||
|
Obsoletes: libpng-static
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
The libpng-devel package contains libraries and header files for developing
|
The libpng-devel package contains libraries and header files for developing
|
||||||
applications that using the PNG library.
|
applications that using the PNG library.
|
||||||
|
|
||||||
%package static
|
|
||||||
Summary: Static PNG image format file library
|
|
||||||
Requires: %{name}-devel%{?_isa} = %{epoch}:%{version}-%{release}
|
|
||||||
|
|
||||||
%description static
|
|
||||||
The libpng-static package contains the statically linkable version of libpng.
|
|
||||||
Linking to static libraries is discouraged for most applications, but it is
|
|
||||||
necessary for some boot packages.
|
|
||||||
|
|
||||||
%package tools
|
|
||||||
Summary: Tools for PNG image format file library
|
|
||||||
Requires: %{name}%{?_isa} = %{epoch}:%{version}-%{release}
|
|
||||||
|
|
||||||
%description tools
|
|
||||||
The libpng-tools package contains tools used by the authors of libpng.
|
|
||||||
|
|
||||||
%package help
|
%package help
|
||||||
Summary: Help documents for libpng
|
Summary: Help documents for libpng
|
||||||
|
|
||||||
@ -62,7 +52,9 @@ autoreconf -vif
|
|||||||
rm -f %{buildroot}%{_libdir}/*.la
|
rm -f %{buildroot}%{_libdir}/*.la
|
||||||
|
|
||||||
%check
|
%check
|
||||||
|
%if %{?_with_check:1}%{!?_with_check:0}
|
||||||
make check
|
make check
|
||||||
|
%endif
|
||||||
|
|
||||||
%ldconfig_post
|
%ldconfig_post
|
||||||
%ldconfig_postun
|
%ldconfig_postun
|
||||||
@ -73,36 +65,17 @@ make check
|
|||||||
%{_libdir}/libpng16.so.*
|
%{_libdir}/libpng16.so.*
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
|
%{_bindir}/*
|
||||||
%{_includedir}/*
|
%{_includedir}/*
|
||||||
%{_libdir}/libpng*.so
|
%{_libdir}/libpng*.so
|
||||||
|
%{_libdir}/libpng*.a
|
||||||
%{_libdir}/pkgconfig/libpng*.pc
|
%{_libdir}/pkgconfig/libpng*.pc
|
||||||
|
|
||||||
%files static
|
|
||||||
%{_libdir}/libpng*.a
|
|
||||||
|
|
||||||
%files tools
|
|
||||||
%{_bindir}/*
|
|
||||||
|
|
||||||
%files help
|
%files help
|
||||||
%doc libpng-manual.txt TODO CHANGES
|
%doc libpng-manual.txt example.c TODO CHANGES
|
||||||
%{_mandir}/man*/*
|
%{_mandir}/man*/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Thu Jul 13 2023 jiangxinyu <jiangxinyu@kylinoss.cn> - 1.6.40-1
|
|
||||||
- Update package to version 1.6.40
|
|
||||||
|
|
||||||
* Thu Dec 15 2022 zhouwenpei <zhouwenpei1@h-partners.com> - 1.6.38-2
|
|
||||||
- remove example.c from help
|
|
||||||
|
|
||||||
* Thu Nov 03 2022 zhouwenpei <zhouwenpei1@h-partners.com> - 1.6.38-1
|
|
||||||
- update 1.6.38
|
|
||||||
|
|
||||||
* Tue Mar 29 2022 liuyumeng <liuyumeng5@h-partners.com> - 1.6.37-3
|
|
||||||
- enable test and fix failed tests
|
|
||||||
|
|
||||||
* Sat Dec 25 2021 hanhui <hanhui15@huawei.com> - 1.6.37-2
|
|
||||||
- DESC:split tools and static packages
|
|
||||||
|
|
||||||
* Mon May 11 2020 openEuler Buildteam <buildteam@openeuler.org> - 1.6.37-1
|
* Mon May 11 2020 openEuler Buildteam <buildteam@openeuler.org> - 1.6.37-1
|
||||||
- Type:requirement
|
- Type:requirement
|
||||||
- ID:NA
|
- ID:NA
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user