Sync from SUSE:SLFO:Main tiff revision 9088f9711895990e8ff1d0a7b6ad84e3
This commit is contained in:
commit
e905965528
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
## Default LFS
|
||||||
|
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.png filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zst filter=lfs diff=lfs merge=lfs -text
|
2
README.SUSE
Normal file
2
README.SUSE
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
The documentation for tiff programs and library is in package tiff
|
||||||
|
in directory /usr/share/doc/packages/tiff.
|
6
baselibs.conf
Normal file
6
baselibs.conf
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
libtiff6
|
||||||
|
obsoletes "libtiff-<targettype> <= <version>"
|
||||||
|
provides "libtiff-<targettype> = <version>"
|
||||||
|
libtiff-devel
|
||||||
|
requires -libtiff-<targettype>
|
||||||
|
requires "libtiff6-<targettype> = <version>"
|
13
tiff-4.0.3-seek.patch
Normal file
13
tiff-4.0.3-seek.patch
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
Index: tiff-4.6.0/libtiff/tiffiop.h
|
||||||
|
===================================================================
|
||||||
|
--- tiff-4.6.0.orig/libtiff/tiffiop.h
|
||||||
|
+++ tiff-4.6.0/libtiff/tiffiop.h
|
||||||
|
@@ -256,7 +256,7 @@ struct TIFFOpenOptions
|
||||||
|
#define TIFFWriteFile(tif, buf, size) \
|
||||||
|
((*(tif)->tif_writeproc)((tif)->tif_clientdata, (buf), (size)))
|
||||||
|
#define TIFFSeekFile(tif, off, whence) \
|
||||||
|
- ((*(tif)->tif_seekproc)((tif)->tif_clientdata, (off), (whence)))
|
||||||
|
+ ((tif)->tif_seekproc?((*(tif)->tif_seekproc)((tif)->tif_clientdata,(toff_t)(off),whence)):0)
|
||||||
|
#define TIFFCloseFile(tif) ((*(tif)->tif_closeproc)((tif)->tif_clientdata))
|
||||||
|
#define TIFFGetFileSize(tif) ((*(tif)->tif_sizeproc)((tif)->tif_clientdata))
|
||||||
|
#define TIFFMapFileContents(tif, paddr, psize) \
|
BIN
tiff-4.6.0.tar.xz
(Stored with Git LFS)
Normal file
BIN
tiff-4.6.0.tar.xz
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
tiff-4.6.0.tar.xz.sig
Normal file
BIN
tiff-4.6.0.tar.xz.sig
Normal file
Binary file not shown.
33
tiff-CVE-2023-52356.patch
Normal file
33
tiff-CVE-2023-52356.patch
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
Index: tiff-4.6.0/libtiff/tif_getimage.c
|
||||||
|
===================================================================
|
||||||
|
--- tiff-4.6.0.orig/libtiff/tif_getimage.c
|
||||||
|
+++ tiff-4.6.0/libtiff/tif_getimage.c
|
||||||
|
@@ -3224,6 +3224,13 @@ int TIFFReadRGBAStripExt(TIFF *tif, uint
|
||||||
|
if (TIFFRGBAImageOK(tif, emsg) &&
|
||||||
|
TIFFRGBAImageBegin(&img, tif, stop_on_error, emsg))
|
||||||
|
{
|
||||||
|
+ if (row >= img.height)
|
||||||
|
+ {
|
||||||
|
+ TIFFErrorExtR(tif, TIFFFileName(tif),
|
||||||
|
+ "Invalid row passed to TIFFReadRGBAStrip().");
|
||||||
|
+ TIFFRGBAImageEnd(&img);
|
||||||
|
+ return (0);
|
||||||
|
+ }
|
||||||
|
|
||||||
|
img.row_offset = row;
|
||||||
|
img.col_offset = 0;
|
||||||
|
@@ -3301,6 +3308,14 @@ int TIFFReadRGBATileExt(TIFF *tif, uint3
|
||||||
|
return (0);
|
||||||
|
}
|
||||||
|
|
||||||
|
+ if (col >= img.width || row >= img.height)
|
||||||
|
+ {
|
||||||
|
+ TIFFErrorExtR(tif, TIFFFileName(tif),
|
||||||
|
+ "Invalid row/col passed to TIFFReadRGBATile().");
|
||||||
|
+ TIFFRGBAImageEnd(&img);
|
||||||
|
+ return (0);
|
||||||
|
+ }
|
||||||
|
+
|
||||||
|
/*
|
||||||
|
* The TIFFRGBAImageGet() function doesn't allow us to get off the
|
||||||
|
* edge of the image, even to fill an otherwise valid tile. So we
|
2148
tiff.changes
Normal file
2148
tiff.changes
Normal file
File diff suppressed because it is too large
Load Diff
29
tiff.keyring
Normal file
29
tiff.keyring
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
-----BEGIN PGP PUBLIC KEY BLOCK-----
|
||||||
|
|
||||||
|
mQENBFWDB10BCADeJcYKb4zsG2fs3MWGf996ZS4KIiOBRNQtQwCI5+h3K8m1qDur
|
||||||
|
qyRZ50tB/ODJwJNqdKGdGyrIvGDynsS9JsZMJ2PVoI9IK+X/vQiokx9lJCuDXTtw
|
||||||
|
1THmA85lyl1blLe3j6tA74MSXDiT3nVk375djTz+zO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fa9t3oJ3AZ3rmo5zzFdbJtNKhCmwCoHrvRNWOPn6u5E7YYW9kB
|
||||||
|
xgzUUhh1g2F9RMbh3CZjICi9HtbWK3slWGYTaMt4lg/ZABEBAAGJAR8EGAECAAkF
|
||||||
|
AlWDB10CGwwACgkQM+u/xHs92H2a0wf/XV0XjqMWufAIKkvL6CmrZrCixWmPOiC1
|
||||||
|
q8894h+gR5JpKD9h0gLJhtk4tLMy+pDmNSxPXsoRYHneJIqHl1M72Q7vEhTKIVXn
|
||||||
|
h9A306ZjCHTTNSQ3npNG1wpO0LyLDmn+Zvd1JBoFyCzsTPZ+TbUYvVJT0CeFbJBe
|
||||||
|
1JzoO1Mi2fOtA91GuYtstWLNccDbv2b5s+JSbAf3ix3+qiUpA5fglWFljCYPxzkA
|
||||||
|
eU8AReBpuirD0ZQ1Z7GJDJs2zHKZu5BqCTf5gpVLUHCXd3F46CZ4IaVrOGhNP1Ki
|
||||||
|
KemC/dPHz7Ku7HN0tqmmmu12nvUACBckNsVebCefOFrkGtdryHQ1Zw==
|
||||||
|
=4/vP
|
||||||
|
-----END PGP PUBLIC KEY BLOCK-----
|
125
tiff.spec
Normal file
125
tiff.spec
Normal file
@ -0,0 +1,125 @@
|
|||||||
|
#
|
||||||
|
# spec file for package tiff
|
||||||
|
#
|
||||||
|
# Copyright (c) 2024 SUSE LLC
|
||||||
|
#
|
||||||
|
# All modifications and additions to the file contributed by third parties
|
||||||
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
|
# upon. The license for this file, and modifications and additions to the
|
||||||
|
# file, is the same license as for the pristine package itself (unless the
|
||||||
|
# license for the pristine package is not an Open Source License, in which
|
||||||
|
# case the license is the MIT License). An "Open Source License" is a
|
||||||
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
|
# published by the Open Source Initiative.
|
||||||
|
|
||||||
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%define asan_build 0
|
||||||
|
%define debug_build 0
|
||||||
|
Name: tiff
|
||||||
|
Version: 4.6.0
|
||||||
|
Release: 0
|
||||||
|
Summary: Tools for Converting from and to the Tagged Image File Format
|
||||||
|
License: HPND
|
||||||
|
Group: Productivity/Graphics/Convertors
|
||||||
|
URL: https://libtiff.gitlab.io/libtiff/
|
||||||
|
Source: https://download.osgeo.org/libtiff/tiff-%{version}.tar.xz
|
||||||
|
Source1: https://download.osgeo.org/libtiff/tiff-%{version}.tar.xz.sig
|
||||||
|
Source2: README.SUSE
|
||||||
|
Source3: baselibs.conf
|
||||||
|
Source99: tiff.keyring
|
||||||
|
Patch0: tiff-4.0.3-seek.patch
|
||||||
|
Patch1: tiff-CVE-2023-52356.patch
|
||||||
|
BuildRequires: gcc-c++
|
||||||
|
BuildRequires: libjbig-devel
|
||||||
|
BuildRequires: libjpeg-devel
|
||||||
|
BuildRequires: libtool
|
||||||
|
BuildRequires: lzma-devel
|
||||||
|
BuildRequires: pkgconfig
|
||||||
|
BuildRequires: pkgconfig(libzstd)
|
||||||
|
BuildRequires: pkgconfig(zlib)
|
||||||
|
|
||||||
|
%description
|
||||||
|
This package contains the library and support programs for the TIFF
|
||||||
|
image format.
|
||||||
|
|
||||||
|
%package -n libtiff6
|
||||||
|
Summary: The Tiff Library (with JPEG and compression support)
|
||||||
|
Group: System/Libraries
|
||||||
|
Provides: libtiff = %{version}
|
||||||
|
|
||||||
|
%description -n libtiff6
|
||||||
|
This package includes the tiff libraries. To link a program with
|
||||||
|
libtiff, you will have to add -ljpeg and -lz to include the necessary
|
||||||
|
libjpeg and libz in the linking process.
|
||||||
|
|
||||||
|
%package -n libtiff-devel
|
||||||
|
Summary: Development Tools for Programs which will use the libtiff Library
|
||||||
|
Group: Development/Libraries/C and C++
|
||||||
|
Requires: glibc-devel
|
||||||
|
Requires: libstdc++-devel
|
||||||
|
Requires: libtiff6 = %{version}
|
||||||
|
|
||||||
|
%description -n libtiff-devel
|
||||||
|
This package contains the header files and static libraries for
|
||||||
|
developing programs which will manipulate TIFF format image files using
|
||||||
|
the libtiff library.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -p1
|
||||||
|
|
||||||
|
%build
|
||||||
|
CFLAGS="%{optflags} -fPIE"
|
||||||
|
%if %{debug_build}
|
||||||
|
CFLAGS="$CFLAGS -O0"
|
||||||
|
%endif
|
||||||
|
%configure --disable-static
|
||||||
|
%if %{asan_build}
|
||||||
|
find -name Makefile | xargs sed -i 's/\(^CFLAGS.*\)/\1 -fsanitize=address/'
|
||||||
|
%endif
|
||||||
|
%make_build LDFLAGS="-pie"
|
||||||
|
|
||||||
|
%install
|
||||||
|
mkdir -p %{buildroot}/{%{_mandir}/{man1,man3},usr/{bin,lib,include}}
|
||||||
|
%make_install
|
||||||
|
for f in `find %{buildroot}/%{_mandir} -type f -print ` ; do
|
||||||
|
if [ `wc -l <$f` -eq 1 ] && grep -q "^\.so " $f ; then
|
||||||
|
linkto=`sed -e "s|^\.so ||" $f`
|
||||||
|
[ -f "`dirname $f`/$linkto" ] && ln -sf "$linkto" $f
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
cp %{SOURCE2} .
|
||||||
|
rm -rf %{buildroot}%{_datadir}/doc/tiff*
|
||||||
|
find %{buildroot} -type f -name "*.la" -delete -print
|
||||||
|
|
||||||
|
%check
|
||||||
|
%if %{asan_build}
|
||||||
|
# ASAN needs /proc to be mounted
|
||||||
|
exit 0
|
||||||
|
%endif
|
||||||
|
for i in tools test; do
|
||||||
|
(cd $i && make %{?_smp_mflags} check)
|
||||||
|
done
|
||||||
|
|
||||||
|
%ldconfig_scriptlets -n libtiff6
|
||||||
|
|
||||||
|
%files
|
||||||
|
%{_bindir}/*
|
||||||
|
%doc README.md VERSION ChangeLog TODO RELEASE-DATE
|
||||||
|
%{_mandir}/man1/*
|
||||||
|
|
||||||
|
%files -n libtiff6
|
||||||
|
%license LICENSE.md
|
||||||
|
%doc README.md README.SUSE
|
||||||
|
%{_libdir}/*.so.*
|
||||||
|
|
||||||
|
%files -n libtiff-devel
|
||||||
|
%{_includedir}/*
|
||||||
|
%{_libdir}/*.so
|
||||||
|
%{_libdir}/pkgconfig/*.pc
|
||||||
|
%{_mandir}/man3/*
|
||||||
|
|
||||||
|
%changelog
|
Loading…
Reference in New Issue
Block a user