Compare commits
No commits in common. "c8s" and "c10s" have entirely different histories.
20
.gitignore
vendored
20
.gitignore
vendored
@ -1,2 +1,20 @@
|
|||||||
SOURCES/dcraw-9.27.0.tar.gz
|
dcraw-9.04.tar.gz
|
||||||
|
/dcraw-9.06.tar.gz
|
||||||
|
/dcraw-9.07.tar.gz
|
||||||
|
/dcraw-9.08.tar.gz
|
||||||
|
/dcraw-9.10.tar.gz
|
||||||
|
/dcraw-9.11.tar.gz
|
||||||
|
/dcraw-9.12.tar.gz
|
||||||
|
/dcraw-9.15.tar.gz
|
||||||
|
/dcraw-9.16.tar.gz
|
||||||
|
/dcraw-9.17.tar.gz
|
||||||
|
/dcraw-9.18.tar.gz
|
||||||
|
/dcraw-9.19.tar.gz
|
||||||
|
/dcraw-9.20.tar.gz
|
||||||
|
/dcraw-9.21.tar.gz
|
||||||
|
/dcraw-9.22.tar.gz
|
||||||
|
/dcraw-9.23.0.tar.gz
|
||||||
|
/dcraw-9.24.4.tar.gz
|
||||||
|
/dcraw-9.25.0.tar.gz
|
||||||
/dcraw-9.27.0.tar.gz
|
/dcraw-9.27.0.tar.gz
|
||||||
|
/dcraw-9.28.0.tar.gz
|
||||||
|
14
dcraw-CVE-2017-13735.patch
Normal file
14
dcraw-CVE-2017-13735.patch
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
diff -urNp old/dcraw.c new/dcraw.c
|
||||||
|
--- old/dcraw.c 2018-07-11 10:33:06.280425391 +0200
|
||||||
|
+++ new/dcraw.c 2018-07-11 10:45:52.722922118 +0200
|
||||||
|
@@ -2250,6 +2250,10 @@ void CLASS kodak_radc_load_raw()
|
||||||
|
((short *)buf)[i] = 2048;
|
||||||
|
for (row=0; row < height; row+=4) {
|
||||||
|
FORC3 mul[c] = getbits(6);
|
||||||
|
+#ifdef LIBRAW_LIBRARY_BUILD
|
||||||
|
+ if(!mul[0] || !mul[1] || !mul[2])
|
||||||
|
+ throw LIBRAW_EXCEPTION_IO_CORRUPT;
|
||||||
|
+#endif
|
||||||
|
FORC3 {
|
||||||
|
val = ((0x1000000/last[c] + 0x7ff) >> 12) * mul[c];
|
||||||
|
s = val > 65564 ? 10:12;
|
21
dcraw-CVE-2017-14608.patch
Normal file
21
dcraw-CVE-2017-14608.patch
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
diff -urNp old/dcraw.c new/dcraw.c
|
||||||
|
--- old/dcraw.c 2018-07-11 10:53:51.141803505 +0200
|
||||||
|
+++ new/dcraw.c 2018-07-11 11:30:08.850528389 +0200
|
||||||
|
@@ -2627,8 +2627,15 @@ void CLASS kodak_65000_load_raw()
|
||||||
|
len = MIN (256, width-col);
|
||||||
|
ret = kodak_65000_decode (buf, len);
|
||||||
|
for (i=0; i < len; i++)
|
||||||
|
- if ((RAW(row,col+i) = curve[ret ? buf[i] :
|
||||||
|
- (pred[i & 1] += buf[i])]) >> 12) derror();
|
||||||
|
+ {
|
||||||
|
+ int idx = ret ? buf[i] : (pred[i & 1] += buf[i]);
|
||||||
|
+ if(idx >=0 && idx <= 0xffff)
|
||||||
|
+ {
|
||||||
|
+ if ((RAW(row,col+i) = curve[idx]) >> 12) derror();
|
||||||
|
+ }
|
||||||
|
+ else
|
||||||
|
+ derror();
|
||||||
|
+ }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
39
dcraw-CVE-2018-19655.patch
Normal file
39
dcraw-CVE-2018-19655.patch
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
Author: Filip Hroch <hroch@physics.muni.cz>
|
||||||
|
Description: stack-based buffer overflow bug
|
||||||
|
--- a/dcraw.c
|
||||||
|
+++ b/dcraw.c
|
||||||
|
@@ -8345,9 +8345,15 @@
|
||||||
|
{
|
||||||
|
UINT64 bitbuf=0;
|
||||||
|
int vbits, col, i, c;
|
||||||
|
- ushort img[2][2064];
|
||||||
|
+ ushort *img;
|
||||||
|
double sum[]={0,0};
|
||||||
|
|
||||||
|
+#define IMG2D(row,col) \
|
||||||
|
+ img[(row)*width+(col)]
|
||||||
|
+
|
||||||
|
+ img = (ushort *) malloc(2*width*sizeof(ushort));
|
||||||
|
+ merror (img, "find_green()");
|
||||||
|
+
|
||||||
|
FORC(2) {
|
||||||
|
fseek (ifp, c ? off1:off0, SEEK_SET);
|
||||||
|
for (vbits=col=0; col < width; col++) {
|
||||||
|
@@ -8356,13 +8362,14 @@
|
||||||
|
for (i=0; i < bite; i+=8)
|
||||||
|
bitbuf |= (unsigned) (fgetc(ifp) << i);
|
||||||
|
}
|
||||||
|
- img[c][col] = bitbuf << (64-bps-vbits) >> (64-bps);
|
||||||
|
+ IMG2D(c,col) = bitbuf << (64-bps-vbits) >> (64-bps);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
FORC(width-1) {
|
||||||
|
- sum[ c & 1] += ABS(img[0][c]-img[1][c+1]);
|
||||||
|
- sum[~c & 1] += ABS(img[1][c]-img[0][c+1]);
|
||||||
|
+ sum[ c & 1] += ABS(IMG2D(0,c)-IMG2D(1,c+1));
|
||||||
|
+ sum[~c & 1] += ABS(IMG2D(1,c)-IMG2D(0,c+1));
|
||||||
|
}
|
||||||
|
+ free(img);
|
||||||
|
return 100 * log(sum[0]/sum[1]);
|
||||||
|
}
|
||||||
|
|
95
dcraw.spec
95
dcraw.spec
@ -1,12 +1,15 @@
|
|||||||
Summary: Tool for decoding raw image data from digital cameras
|
Summary: Tool for decoding raw image data from digital cameras
|
||||||
Name: dcraw
|
Name: dcraw
|
||||||
Version: 9.27.0
|
Version: 9.28.0
|
||||||
Release: 9%{?dist}
|
Release: 25%{?dist}
|
||||||
License: GPLv2+
|
License: GPL-2.0-or-later
|
||||||
URL: http://cybercom.net/~dcoffin/dcraw
|
URL: http://www.dechifro.org/dcraw/
|
||||||
Source0: http://cybercom.net/~dcoffin/dcraw/archive/dcraw-%{version}.tar.gz
|
Source0: http://www.dechifro.org/dcraw/archive/dcraw-%{version}.tar.gz
|
||||||
Patch0: dcraw-9.21-lcms2-error-reporting.patch
|
Patch0: dcraw-9.21-lcms2-error-reporting.patch
|
||||||
Patch1: dcraw-CVE-2018-5801.patch
|
Patch1: dcraw-CVE-2018-5801.patch
|
||||||
|
Patch2: dcraw-CVE-2017-13735.patch
|
||||||
|
Patch3: dcraw-CVE-2017-14608.patch
|
||||||
|
Patch4: dcraw-CVE-2018-19655.patch
|
||||||
BuildRequires: gcc
|
BuildRequires: gcc
|
||||||
BuildRequires: gettext
|
BuildRequires: gettext
|
||||||
BuildRequires: libjpeg-devel
|
BuildRequires: libjpeg-devel
|
||||||
@ -22,7 +25,8 @@ downloaded from digital cameras.
|
|||||||
%autosetup -n dcraw
|
%autosetup -n dcraw
|
||||||
|
|
||||||
%build
|
%build
|
||||||
gcc %optflags $RPM_LD_FLAGS \
|
%{__cc} %optflags $RPM_LD_FLAGS \
|
||||||
|
-Wl,--no-as-needed \
|
||||||
-lm -ljpeg -llcms2 -ljasper \
|
-lm -ljpeg -llcms2 -ljasper \
|
||||||
-DLOCALEDIR="\"%{_datadir}/locale\"" \
|
-DLOCALEDIR="\"%{_datadir}/locale\"" \
|
||||||
-o dcraw dcraw.c
|
-o dcraw dcraw.c
|
||||||
@ -65,8 +69,83 @@ done
|
|||||||
%{_mandir}/man1/*
|
%{_mandir}/man1/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Thu Jul 14 2018 Josef Ridky <jridky@redhat.com> - 9.27.0-9
|
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 9.28.0-25
|
||||||
- Fix CVE-2018-5801 (#1557165) and CVE-2018-5802 (#1557184)
|
- Bump release for October 2024 mass rebuild:
|
||||||
|
Resolves: RHEL-64018
|
||||||
|
|
||||||
|
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 9.28.0-24
|
||||||
|
- Bump release for June 2024 mass rebuild
|
||||||
|
|
||||||
|
* Wed Jan 24 2024 Fedora Release Engineering <releng@fedoraproject.org> - 9.28.0-23
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||||
|
|
||||||
|
* Fri Jan 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 9.28.0-22
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||||
|
|
||||||
|
* Tue Nov 28 2023 Orion Poplawski <orion@nwra.com> - 9.28.0-21
|
||||||
|
- Rebuild for jasper 4.1
|
||||||
|
|
||||||
|
* Wed Jul 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 9.28.0-20
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
||||||
|
|
||||||
|
* Tue May 02 2023 Josef Ridky <jridky@redhat.com> - 9.28.0-19
|
||||||
|
- move to SPDX license format
|
||||||
|
|
||||||
|
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 9.28.0-18
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
||||||
|
|
||||||
|
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 9.28.0-17
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
||||||
|
|
||||||
|
* Sun Feb 13 2022 Josef Ridky <jridky@redhat.com> - 9.28.0-16
|
||||||
|
- Bump for correct jasper so linking
|
||||||
|
|
||||||
|
* Sun Feb 13 2022 Josef Ridky <jridky@redhat.com> - 9.28.0-15
|
||||||
|
- Bump spec for jasper rebuild
|
||||||
|
|
||||||
|
* Fri Feb 11 2022 Josef Ridky <jridky@redhat.com> - 9.28.0-14
|
||||||
|
- rebuild for new jasper library
|
||||||
|
|
||||||
|
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 9.28.0-13
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
||||||
|
|
||||||
|
* Wed Jul 21 2021 Fedora Release Engineering <releng@fedoraproject.org> - 9.28.0-12
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
||||||
|
|
||||||
|
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 9.28.0-11
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
||||||
|
|
||||||
|
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 9.28.0-10
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
||||||
|
|
||||||
|
* Fri Mar 20 2020 Josef Ridky <jridky@redhat.com> - 9.28.0-9
|
||||||
|
- Fix CVE-2018-19655
|
||||||
|
|
||||||
|
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 9.28.0-8
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
||||||
|
|
||||||
|
* Tue Jan 14 2020 Tom Stellard <tstellar@redhat.com> - 9.28.0-7
|
||||||
|
- Use __cc macro instead of hard-coding gcc
|
||||||
|
|
||||||
|
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 9.28.0-6
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
||||||
|
|
||||||
|
* Fri Jun 28 2019 Josef Ridky <jridky@redhat.com> - 9.28.0-5
|
||||||
|
- set new upstream url
|
||||||
|
|
||||||
|
* Thu Feb 21 2019 Josef Ridky <jridky@redhat.com> - 9.28.0-4
|
||||||
|
- Fix CVE-2017-13735 (#1488932)
|
||||||
|
- Fix CVE-2017-14608 (#1499687)
|
||||||
|
|
||||||
|
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 9.28.0-3
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
||||||
|
|
||||||
|
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 9.28.0-2
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
||||||
|
|
||||||
|
* Thu Jun 14 2018 Josef Ridky <jridky@redhat.com> - 9.28.0-1
|
||||||
|
- New upstream release 9.28.0 (#1585348)
|
||||||
|
- Fix CVE-2018-5801 (#1557160)
|
||||||
|
|
||||||
* Fri Feb 23 2018 Florian Weimer <fweimer@redhat.com> - 9.27.0-8
|
* Fri Feb 23 2018 Florian Weimer <fweimer@redhat.com> - 9.27.0-8
|
||||||
- Use LDFLAGS from redhat-rpm-config
|
- Use LDFLAGS from redhat-rpm-config
|
||||||
|
2
sources
2
sources
@ -1 +1 @@
|
|||||||
SHA512 (dcraw-9.27.0.tar.gz) = 2b2faed3f1889ef82a50721f7d3f22b081104b586d644d369fa849ad08604c10898e9dfccf8935828cf432db74352161fe6d1f9bde5fbfa4dd8435188767a17a
|
SHA512 (dcraw-9.28.0.tar.gz) = 04609c4ddd5d1c9fa0ee1617d2ef25efdc22451e1fa6cf669d93abb1fa630a18198b30a289400f1814c8dca285547da8b081a1b00b085c00bb9318ad25c48a30
|
||||||
|
Loading…
Reference in New Issue
Block a user