epel8-playground decommissioned : https://pagure.io/epel/issue/136
This commit is contained in:
parent
f1cf3952da
commit
4fd10689a8
6 changed files with 1 additions and 371 deletions
8
.gitignore
vendored
8
.gitignore
vendored
|
|
@ -1,8 +0,0 @@
|
|||
advancecomp-1.15.tar.gz
|
||||
/advancecomp-1.18.tar.gz
|
||||
/advancecomp-1.19.tar.gz
|
||||
/advancecomp-1.20.tar.gz
|
||||
/advancecomp-1.22.tar.gz
|
||||
/advancecomp.spec
|
||||
/advancecomp-1.23.tar.gz
|
||||
/advancecomp-2.1.tar.gz
|
||||
|
|
@ -1,44 +0,0 @@
|
|||
commit 78a56b21340157775be2462a19276b4d31d2bd01
|
||||
Author: Andrea Mazzoleni <amadvance@gmail.com>
|
||||
Date: Fri Jan 4 20:49:25 2019 +0100
|
||||
|
||||
Fix a buffer overflow caused by invalid images
|
||||
|
||||
diff --git a/lib/png.c b/lib/png.c
|
||||
index 0939a5a..cbf140b 100644
|
||||
--- a/lib/png.c
|
||||
+++ b/lib/png.c
|
||||
@@ -603,6 +603,7 @@ adv_error adv_png_read_ihdr(
|
||||
unsigned pixel;
|
||||
unsigned width;
|
||||
unsigned width_align;
|
||||
+ unsigned scanline;
|
||||
unsigned height;
|
||||
unsigned depth;
|
||||
int r;
|
||||
@@ -719,9 +720,23 @@ adv_error adv_png_read_ihdr(
|
||||
goto err_ptr;
|
||||
}
|
||||
|
||||
- *dat_size = height * (width_align * pixel + 1);
|
||||
+ /* check for overflow */
|
||||
+ if (pixel == 0 || width_align >= UINT_MAX / pixel) {
|
||||
+ error_set("Invalid image size");
|
||||
+ goto err_ptr;
|
||||
+ }
|
||||
+
|
||||
+ scanline = width_align * pixel + 1;
|
||||
+
|
||||
+ /* check for overflow */
|
||||
+ if (scanline == 0 || height >= UINT_MAX / scanline) {
|
||||
+ error_set("Invalid image size");
|
||||
+ goto err_ptr;
|
||||
+ }
|
||||
+
|
||||
+ *dat_size = height * scanline;
|
||||
*dat_ptr = malloc(*dat_size);
|
||||
- *pix_scanline = width_align * pixel + 1;
|
||||
+ *pix_scanline = scanline;
|
||||
*pix_ptr = *dat_ptr + 1;
|
||||
|
||||
z.zalloc = 0;
|
||||
|
|
@ -1,100 +0,0 @@
|
|||
commit 7894a6e684ce68ddff9f4f4919ab8e3911ac8040
|
||||
Author: Andrea Mazzoleni <amadvance@gmail.com>
|
||||
Date: Fri Jan 4 20:49:48 2019 +0100
|
||||
|
||||
Fix a buffer overflow caused by invalid chunks
|
||||
|
||||
diff --git a/pngex.cc b/pngex.cc
|
||||
index 55d16f5..3f5b49f 100644
|
||||
--- a/pngex.cc
|
||||
+++ b/pngex.cc
|
||||
@@ -163,6 +163,10 @@ void png_print_chunk(unsigned type, unsigned char* data, unsigned size)
|
||||
|
||||
switch (type) {
|
||||
case ADV_MNG_CN_MHDR :
|
||||
+ if (size < 28) {
|
||||
+ cout << " invalid chunk size";
|
||||
+ break;
|
||||
+ }
|
||||
cout << " width:" << be_uint32_read(data+0) << " height:" << be_uint32_read(data+4) << " frequency:" << be_uint32_read(data+8);
|
||||
cout << " simplicity:" << be_uint32_read(data+24);
|
||||
cout << "(bit";
|
||||
@@ -174,6 +178,10 @@ void png_print_chunk(unsigned type, unsigned char* data, unsigned size)
|
||||
cout << ")";
|
||||
break;
|
||||
case ADV_MNG_CN_DHDR :
|
||||
+ if (size < 4) {
|
||||
+ cout << " invalid chunk size";
|
||||
+ break;
|
||||
+ }
|
||||
cout << " id:" << be_uint16_read(data+0);
|
||||
switch (data[2]) {
|
||||
case 0 : cout << " img:unspecified"; break;
|
||||
@@ -243,6 +251,10 @@ void png_print_chunk(unsigned type, unsigned char* data, unsigned size)
|
||||
}
|
||||
break;
|
||||
case ADV_MNG_CN_DEFI :
|
||||
+ if (size < 2) {
|
||||
+ cout << " invalid chunk size";
|
||||
+ break;
|
||||
+ }
|
||||
cout << " id:" << be_uint16_read(data+0);
|
||||
if (size >= 3) {
|
||||
switch (data[2]) {
|
||||
@@ -266,6 +278,10 @@ void png_print_chunk(unsigned type, unsigned char* data, unsigned size)
|
||||
}
|
||||
break;
|
||||
case ADV_MNG_CN_MOVE :
|
||||
+ if (size < 13) {
|
||||
+ cout << " invalid chunk size";
|
||||
+ break;
|
||||
+ }
|
||||
cout << " id_from:" << be_uint16_read(data+0) << " id_to:" << be_uint16_read(data+2);
|
||||
switch (data[4]) {
|
||||
case 0 : cout << " type:replace"; break;
|
||||
@@ -275,6 +291,10 @@ void png_print_chunk(unsigned type, unsigned char* data, unsigned size)
|
||||
cout << " x:" << (int)be_uint32_read(data + 5) << " y:" << (int)be_uint32_read(data + 9);
|
||||
break;
|
||||
case ADV_MNG_CN_PPLT :
|
||||
+ if (size < 1) {
|
||||
+ cout << " invalid chunk size";
|
||||
+ break;
|
||||
+ }
|
||||
switch (data[0]) {
|
||||
case 0 : cout << " type:replacement_rgb"; break;
|
||||
case 1 : cout << " type:delta_rgb"; break;
|
||||
@@ -285,7 +305,7 @@ void png_print_chunk(unsigned type, unsigned char* data, unsigned size)
|
||||
default : cout << " type:?"; break;
|
||||
}
|
||||
i = 1;
|
||||
- while (i<size) {
|
||||
+ while (i + 1 < size) {
|
||||
unsigned ssize;
|
||||
cout << " " << (unsigned)data[i] << ":" << (unsigned)data[i+1];
|
||||
if (data[0] == 0 || data[1] == 1)
|
||||
@@ -298,6 +318,10 @@ void png_print_chunk(unsigned type, unsigned char* data, unsigned size)
|
||||
}
|
||||
break;
|
||||
case ADV_PNG_CN_IHDR :
|
||||
+ if (size < 13) {
|
||||
+ cout << " invalid chunk size";
|
||||
+ break;
|
||||
+ }
|
||||
cout << " width:" << be_uint32_read(data) << " height:" << be_uint32_read(data + 4);
|
||||
cout << " depth:" << (unsigned)data[8];
|
||||
cout << " color_type:" << (unsigned)data[9];
|
||||
diff -up advancecomp-2.1/lib/png.c.me advancecomp-2.1/lib/png.c
|
||||
--- advancecomp-2.1/lib/png.c.me 2019-03-06 21:38:19.099210846 +0100
|
||||
+++ advancecomp-2.1/lib/png.c 2019-03-06 21:38:49.193040592 +0100
|
||||
@@ -655,6 +655,11 @@ adv_error adv_png_read_ihdr(
|
||||
}
|
||||
*pix_pixel = pixel;
|
||||
|
||||
+ if (width_align < width) {
|
||||
+ error_unsupported_set("Invalid image size");
|
||||
+ goto err;
|
||||
+ }
|
||||
+
|
||||
if (data[10] != 0) { /* compression */
|
||||
error_unsupported_set("Unsupported compression, %d instead of 0", (unsigned)data[10]);
|
||||
goto err;
|
||||
218
advancecomp.spec
218
advancecomp.spec
|
|
@ -1,218 +0,0 @@
|
|||
Name: advancecomp
|
||||
Version: 2.1
|
||||
Release: 11%{?dist}
|
||||
Summary: Recompression utilities for png, mng, zip and gz files
|
||||
License: GPLv3
|
||||
URL: http://www.advancemame.it/
|
||||
Source0: https://github.com/amadvance/advancecomp/releases/download/v%{version}/advancecomp-%{version}.tar.gz
|
||||
|
||||
# CVE-2019-8383 advancecomp: denial of service in function adv_png_unfilter_8
|
||||
Patch0: advancecomp-CVE-2019-8383.patch
|
||||
# CVE-2019-9210 advancecomp: integer overflow in png_compress in pngex.cc
|
||||
Patch1: advancecomp-CVE-2019-9210.patch
|
||||
|
||||
BuildRequires: gcc gcc-c++
|
||||
BuildRequires: tofrodos
|
||||
BuildRequires: zlib-devel
|
||||
BuildRequires: dos2unix
|
||||
|
||||
%description
|
||||
AdvanceCOMP is a set of recompression utilities for .PNG, .MNG and .ZIP files.
|
||||
The main features are :
|
||||
* Recompress ZIP, PNG and MNG files using the Deflate 7-Zip implementation.
|
||||
* Recompress MNG files using Delta and Move optimization.
|
||||
|
||||
This package contains:
|
||||
* advzip - Recompression and test utility for zip files
|
||||
* advpng - Recompression utility for png files
|
||||
* advmng - Recompression utility for mng files
|
||||
* advdef - Recompression utility for deflate streams in png, mng and gz files
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%patch0 -p1 -b .CVE-2019-8383
|
||||
%patch1 -p1 -b .CVE-2019-9210
|
||||
|
||||
dos2unix -k doc/*.txt
|
||||
|
||||
%build
|
||||
%configure
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
make install DESTDIR=%{buildroot}
|
||||
|
||||
%files
|
||||
%license COPYING
|
||||
%doc AUTHORS HISTORY README
|
||||
%doc doc/{adv*,authors,history,readme}.txt
|
||||
%{_bindir}/*
|
||||
%{_mandir}/man1/*
|
||||
|
||||
%changelog
|
||||
* Fri May 10 2019 Than Ngo <than@redhat.com> - 2.1-11
|
||||
- Backport for #1708563, CVE-2019-8383 - denial of service in function adv_png_unfilter_8
|
||||
|
||||
* Wed Mar 06 2019 Than Ngo <than@redhat.com> - 2.1-10
|
||||
- Backport, fix a buffer overflow with image of invalid size
|
||||
|
||||
* Fri Mar 01 2019 Than Ngo <than@redhat.com> - 2.1-9
|
||||
- fixed CVE-2019-9210 advancecomp: integer overflow in png_compress in pngex.cc
|
||||
|
||||
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.1-8
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
||||
|
||||
* Tue Jan 29 2019 Matthias Saou <matthias@saou.eu> 2.1-7
|
||||
- Fix doc EOL.
|
||||
- Minor cosmetic updates (summary, description...).
|
||||
|
||||
* Sat Jul 14 2018 Christian Dersch <lupinix@fedoraproject.org> - 2.1-6
|
||||
- BuildRequires: gcc-c++
|
||||
|
||||
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.1-5
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
||||
|
||||
* Wed Mar 07 2018 Than Ngo <than@redhat.com> - 2.1-4
|
||||
- updated to 2.1 (fix CVE-2018-1056)
|
||||
|
||||
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.23-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
||||
|
||||
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.23-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
||||
|
||||
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.23-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
||||
|
||||
* Tue Feb 28 2017 Christian Dersch <lupinix@mailbox.org> - 1.23-1
|
||||
- new version
|
||||
|
||||
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.20-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
||||
|
||||
* Sun Nov 13 2016 Christian Dersch <lupinix@mailbox.org> - 1.20-3
|
||||
- revert to 1.20, 1.22 does not build and also needs unbundling of libdeflate first
|
||||
|
||||
* Sun Nov 13 2016 Christian Dersch <lupinix@mailbox.org> - 1.22-1
|
||||
- new version
|
||||
|
||||
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.20-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
||||
|
||||
* Mon Oct 05 2015 Christian Dersch <lupinix@fedoraproject.org> - 1.20-1
|
||||
- new version 1.20
|
||||
- use license tag
|
||||
|
||||
* Tue Jun 16 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.19-5
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
||||
|
||||
* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 1.19-4
|
||||
- Rebuilt for GCC 5 C++11 ABI change
|
||||
|
||||
* Fri Aug 15 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.19-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
||||
|
||||
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.19-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
||||
|
||||
* Thu Mar 20 2014 Christopher Meng <rpm@cicku.me> - 1.19-1
|
||||
- Update to 1.19
|
||||
|
||||
* Mon Feb 10 2014 Christopher Meng <rpm@cicku.me> - 1.18-1
|
||||
- Update to 1.18
|
||||
|
||||
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.15-19
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
||||
|
||||
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.15-18
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
||||
|
||||
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.15-17
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
||||
|
||||
* Fri Apr 27 2012 Peter Robinson <pbrobinson@fedoraproject.org> - 1.15-16
|
||||
- Add disttag, modernise spec file
|
||||
|
||||
* Tue Feb 28 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.15-15
|
||||
- Rebuilt for c++ ABI breakage
|
||||
|
||||
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.15-14
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
||||
|
||||
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.15-13
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
||||
|
||||
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.15-12
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
||||
|
||||
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.15-11
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
||||
|
||||
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.15-10
|
||||
- Autorebuild for GCC 4.3
|
||||
|
||||
* Wed Aug 22 2007 Matthias Saou <http://freshrpms.net/> 1.15-9
|
||||
- Rebuild for new BuildID feature.
|
||||
|
||||
* Fri Aug 3 2007 Matthias Saou <http://freshrpms.net/> 1.15-8
|
||||
- Update License field.
|
||||
- Remove dist tag, since the package will seldom change.
|
||||
|
||||
* Thu Mar 29 2007 Matthias Saou <http://freshrpms.net/> 1.15-7
|
||||
- Switch to using DESTDIR install method.
|
||||
|
||||
* Thu Mar 29 2007 Matthias Saou <http://freshrpms.net/> 1.15-6
|
||||
- Switch to use downloads.sf.net source URL.
|
||||
- Tweak defattr.
|
||||
|
||||
* Mon Aug 28 2006 Matthias Saou <http://freshrpms.net/> 1.15-5
|
||||
- FC6 rebuild, remove gcc-c++ build requirement (it's a default).
|
||||
|
||||
* Mon Mar 6 2006 Matthias Saou <http://freshrpms.net/> 1.15-4
|
||||
- FC5 rebuild.
|
||||
|
||||
* Wed Feb 8 2006 Matthias Saou <http://freshrpms.net/> 1.15-3
|
||||
- Rebuild for new gcc/glibc.
|
||||
|
||||
* Tue Jan 24 2006 Matthias Saou <http://freshrpms.net/> 1.15-2
|
||||
- Rebuild for FC5.
|
||||
|
||||
* Wed Nov 2 2005 Matthias Saou <http://freshrpms.net/> 1.15-1
|
||||
- Update to 1.15, includes 64bit fixes.
|
||||
|
||||
* Fri May 27 2005 Matthias Saou <http://freshrpms.net/> 1.14-5
|
||||
- Update 64bit patch to a cleaner approach as Ralf suggested.
|
||||
|
||||
* Thu May 26 2005 Jeremy Katz <katzj@redhat.com> - 1.14-4
|
||||
- fix build on 64bit arches
|
||||
|
||||
* Sun May 22 2005 Jeremy Katz <katzj@redhat.com> - 1.14-3
|
||||
- rebuild on all arches
|
||||
|
||||
* Thu Apr 7 2005 Michael Schwendt <mschwendt[AT]users.sf.net> 1.14-2
|
||||
- rebuilt
|
||||
|
||||
* Wed Feb 23 2005 Matthias Saou <http://freshrpms.net/> 1.14-1
|
||||
- Update to 1.14.
|
||||
|
||||
* Mon Nov 29 2004 Matthias Saou <http://freshrpms.net/> 1.13-1
|
||||
- Update to 1.13.
|
||||
|
||||
* Tue Nov 2 2004 Matthias Saou <http://freshrpms.net/> 1.12-1
|
||||
- Update to 1.12.
|
||||
|
||||
* Tue Aug 24 2004 Matthias Saou <http://freshrpms.net/> 1.11-1
|
||||
- Update to 1.11.
|
||||
|
||||
* Mon May 17 2004 Matthias Saou <http://freshrpms.net/> 1.10-1
|
||||
- Update to 1.10.
|
||||
|
||||
* Mon Nov 3 2003 Matthias Saou <http://freshrpms.net/> 1.7-2
|
||||
- Rebuild for Fedora Core 1.
|
||||
- Added missing build dependencies, thanks to mach.
|
||||
|
||||
* Tue Aug 26 2003 Matthias Saou <http://freshrpms.net/>
|
||||
- Update to 1.7.
|
||||
|
||||
* Thu May 22 2003 Matthias Saou <http://freshrpms.net/>
|
||||
- Initial RPM release.
|
||||
1
dead.package
Normal file
1
dead.package
Normal file
|
|
@ -0,0 +1 @@
|
|||
epel8-playground decommissioned : https://pagure.io/epel/issue/136
|
||||
1
sources
1
sources
|
|
@ -1 +0,0 @@
|
|||
SHA512 (advancecomp-2.1.tar.gz) = 62abc585b282483bf5994491db3965463f4a54db642e489460d678f95faefc5d62f80bcd9e5a2a2ba3cd708d5cda7457a2b773be1a65385ef5528324e2d2949b
|
||||
Loading…
Add table
Add a link
Reference in a new issue