Skip to content

Commit 23fd811

Browse files
committed
Merge branch '1.0-dev' into 1.0
2 parents 614add1 + f94b848 commit 23fd811

File tree

3 files changed

+60
-24
lines changed

3 files changed

+60
-24
lines changed

SPECS/libtiff/CVE-2022-3970.patch

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
From 227500897dfb07fb7d27f7aa570050e62617e3be Mon Sep 17 00:00:00 2001
2+
From: Even Rouault <[email protected]>
3+
Date: Tue, 8 Nov 2022 15:16:58 +0100
4+
Subject: [PATCH] TIFFReadRGBATileExt(): fix (unsigned) integer overflow on
5+
strips/tiles > 2 GB
6+
7+
Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=53137
8+
---
9+
libtiff/tif_getimage.c | 8 ++++----
10+
1 file changed, 4 insertions(+), 4 deletions(-)
11+
12+
diff --git a/libtiff/tif_getimage.c b/libtiff/tif_getimage.c
13+
index a4d0c1d6..60b94d8e 100644
14+
--- a/libtiff/tif_getimage.c
15+
+++ b/libtiff/tif_getimage.c
16+
@@ -3016,15 +3016,15 @@ TIFFReadRGBATileExt(TIFF* tif, uint32_t col, uint32_t row, uint32_t * raster, in
17+
return( ok );
18+
19+
for( i_row = 0; i_row < read_ysize; i_row++ ) {
20+
- memmove( raster + (tile_ysize - i_row - 1) * tile_xsize,
21+
- raster + (read_ysize - i_row - 1) * read_xsize,
22+
+ memmove( raster + (size_t)(tile_ysize - i_row - 1) * tile_xsize,
23+
+ raster + (size_t)(read_ysize - i_row - 1) * read_xsize,
24+
read_xsize * sizeof(uint32_t) );
25+
- _TIFFmemset( raster + (tile_ysize - i_row - 1) * tile_xsize+read_xsize,
26+
+ _TIFFmemset( raster + (size_t)(tile_ysize - i_row - 1) * tile_xsize+read_xsize,
27+
0, sizeof(uint32_t) * (tile_xsize - read_xsize) );
28+
}
29+
30+
for( i_row = read_ysize; i_row < tile_ysize; i_row++ ) {
31+
- _TIFFmemset( raster + (tile_ysize - i_row - 1) * tile_xsize,
32+
+ _TIFFmemset( raster + (size_t)(tile_ysize - i_row - 1) * tile_xsize,
33+
0, sizeof(uint32_t) * tile_xsize );
34+
}
35+
36+
--
37+
GitLab

SPECS/libtiff/libtiff.spec

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Summary: TIFF libraries and associated utilities.
22
Name: libtiff
33
Version: 4.4.0
4-
Release: 5%{?dist}
4+
Release: 6%{?dist}
55
License: libtiff
66
URL: https://gitlab.com/libtiff/libtiff
77
Group: System Environment/Libraries
@@ -16,6 +16,7 @@ Patch3: CVE-2022-3570.patch
1616
# Also fixes CVE-2022: 3626 and 3627.
1717
Patch4: CVE-2022-3597.patch
1818
Patch5: CVE-2022-3599.patch
19+
Patch6: CVE-2022-3970.patch
1920

2021
BuildRequires: autoconf
2122
BuildRequires: automake
@@ -75,6 +76,9 @@ make %{?_smp_mflags} -k check
7576
%{_datadir}/man/man3/*
7677

7778
%changelog
79+
* Fri Nov 18 2022 Nicolas Guibourge <[email protected]> - 4.4.0-6
80+
- Patching CVE-2022-3970.
81+
7882
* Mon Nov 07 2022 Pawel Winogrodzki <[email protected]> - 4.4.0-5
7983
- Patching CVE-2022s: 3597, 3598, 3599, 3626, and 3627.
8084

SPECS/python3-twisted/python3-twisted.spec

Lines changed: 18 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,16 @@ CFLAGS="${CFLAGS:-${optflags}}" LDFLAGS="${LDFLAGS:-%{build_ldflags}}" python3 s
5454

5555
%install
5656
python3 setup.py install --prefix=%{_prefix} --root=%{buildroot}
57-
ln -s twistd %{buildroot}/%{_bindir}/twistd3
58-
ln -s trial %{buildroot}/%{_bindir}/trial3
59-
ln -s tkconch %{buildroot}/%{_bindir}/tkconch3
60-
ln -s pyhtmlizer %{buildroot}/%{_bindir}/pyhtmlizer3
61-
ln -s twist %{buildroot}/%{_bindir}/twist3
62-
ln -s conch %{buildroot}/%{_bindir}/conch3
63-
ln -s ckeygen %{buildroot}/%{_bindir}/ckeygen3
64-
ln -s cftp %{buildroot}/%{_bindir}/cftp3
57+
# Re-naming binaries to avoid conflicts with older Python 2 version of the package.
58+
mv %{buildroot}/%{_bindir}/{cftp,cftp3}
59+
mv %{buildroot}/%{_bindir}/{ckeygen,ckeygen3}
60+
mv %{buildroot}/%{_bindir}/{conch,conch3}
61+
mv %{buildroot}/%{_bindir}/{mailmail,mailmail3}
62+
mv %{buildroot}/%{_bindir}/{pyhtmlizer,pyhtmlizer3}
63+
mv %{buildroot}/%{_bindir}/{tkconch,tkconch3}
64+
mv %{buildroot}/%{_bindir}/{trial,trial3}
65+
mv %{buildroot}/%{_bindir}/{twist,twist3}
66+
mv %{buildroot}/%{_bindir}/{twistd,twistd3}
6567

6668
%check
6769
route add -net 224.0.0.0 netmask 240.0.0.0 dev lo
@@ -76,27 +78,20 @@ LANG=en_US.UTF-8 sudo -u test /home/test/.local/bin/tox -e nocov-posix-alldeps
7678
%defattr(-,root,root)
7779
%license LICENSE
7880
%{python3_sitelib}/*
79-
%{_bindir}/twistd
80-
%{_bindir}/trial
81-
%{_bindir}/tkconch
82-
%{_bindir}/pyhtmlizer
83-
%{_bindir}/twist
84-
%{_bindir}/mailmail
85-
%{_bindir}/conch
86-
%{_bindir}/ckeygen
87-
%{_bindir}/cftp
88-
%{_bindir}/twistd3
89-
%{_bindir}/trial3
90-
%{_bindir}/tkconch3
81+
%{_bindir}/cftp3
82+
%{_bindir}/ckeygen3
83+
%{_bindir}/conch3
84+
%{_bindir}/mailmail3
9185
%{_bindir}/pyhtmlizer3
86+
%{_bindir}/tkconch3
87+
%{_bindir}/trial3
9288
%{_bindir}/twist3
93-
%{_bindir}/conch3
94-
%{_bindir}/ckeygen3
95-
%{_bindir}/cftp3
89+
%{_bindir}/twistd3
9690

9791
%changelog
9892
* Wed Nov 09 2022 Pawel Winogrodzki <[email protected]> - 22.10.0-2
9993
- Ported to Mariner 1.0 to fix CVE-2022-39348.
94+
- Re-named binaries to avoid conflicts with Python 2 version.
10095

10196
* Mon Oct 31 2022 CBL-Mariner Servicing Account <[email protected]> - 22.10.0-1
10297
- Upgrade to 22.10.0

0 commit comments

Comments
 (0)