Compare commits
10 Commits
93da8a5966
...
fee3da6f93
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fee3da6f93 | ||
|
|
ef058e8f2d | ||
|
|
5a913d2016 | ||
|
|
e1b419913f | ||
|
|
edc0b40349 | ||
|
|
b8aa4cbfb7 | ||
|
|
daf2f94186 | ||
|
|
d47f500e34 | ||
|
|
ad6465a624 | ||
|
|
78799d21c1 |
BIN
As.I.Lay.Dying.ttf
Normal file
BIN
As.I.Lay.Dying.ttf
Normal file
Binary file not shown.
@ -1,37 +0,0 @@
|
||||
From e6fda039ad638866b7a6a5d046f03278ba1b7611 Mon Sep 17 00:00:00 2001
|
||||
From: Werner Lemberg <wl@gnu.org>
|
||||
Date: Mon, 14 Nov 2022 19:18:19 +0100
|
||||
Subject: [PATCH] * src/truetype/ttgxvar.c (tt_hvadvance_adjust): Integer
|
||||
overflow.
|
||||
|
||||
Reported as
|
||||
|
||||
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=50462
|
||||
---
|
||||
src/truetype/ttgxvar.c | 3 ++-
|
||||
1 file changed, 2 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/truetype/ttgxvar.c b/src/truetype/ttgxvar.c
|
||||
index aad3e29..a69a9b5 100644
|
||||
--- a/src/truetype/ttgxvar.c
|
||||
+++ b/src/truetype/ttgxvar.c
|
||||
@@ -42,6 +42,7 @@
|
||||
#include <ft2build.h>
|
||||
#include <freetype/internal/ftdebug.h>
|
||||
#include FT_CONFIG_CONFIG_H
|
||||
+#include <freetype/internal/ftcalc.h>
|
||||
#include <freetype/internal/ftstream.h>
|
||||
#include <freetype/internal/sfnt.h>
|
||||
#include <freetype/tttags.h>
|
||||
@@ -1075,7 +1076,7 @@
|
||||
delta == 1 ? "" : "s",
|
||||
vertical ? "VVAR" : "HVAR" ));
|
||||
|
||||
- *avalue += delta;
|
||||
+ *avalue = ADD_INT(*avalue, delta );
|
||||
|
||||
Exit:
|
||||
return error;
|
||||
--
|
||||
2.33.0
|
||||
|
||||
36
backport-CVE-2025-27363.patch
Normal file
36
backport-CVE-2025-27363.patch
Normal file
@ -0,0 +1,36 @@
|
||||
From 73720c7c9958e87b3d134a7574d1720ad2d24442 Mon Sep 17 00:00:00 2001
|
||||
From: Alexei Podtelezhnikov <apodtele@gmail.com>
|
||||
Date: Sun, 23 Jun 2024 10:58:00 -0400
|
||||
Subject: [PATCH] * src/truetype/ttgload.c (load_truetype_glyph): Unsigned fix.
|
||||
|
||||
Reference:https://gitlab.freedesktop.org/freetype/freetype/-/commit/73720c7c9958e87b3d134a7574d1720ad2d24442
|
||||
Conflict:NA
|
||||
|
||||
---
|
||||
src/truetype/ttgload.c | 4 ++--
|
||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/src/truetype/ttgload.c b/src/truetype/ttgload.c
|
||||
index 8cddc394c..b656ccf04 100644
|
||||
--- a/src/truetype/ttgload.c
|
||||
+++ b/src/truetype/ttgload.c
|
||||
@@ -1738,14 +1738,14 @@
|
||||
if ( FT_IS_NAMED_INSTANCE( FT_FACE( face ) ) ||
|
||||
FT_IS_VARIATION( FT_FACE( face ) ) )
|
||||
{
|
||||
- short i, limit;
|
||||
+ FT_UShort i, limit;
|
||||
FT_SubGlyph subglyph;
|
||||
|
||||
FT_Outline outline = { 0, 0, NULL, NULL, NULL, 0 };
|
||||
FT_Vector* unrounded = NULL;
|
||||
|
||||
|
||||
- limit = (short)gloader->current.num_subglyphs;
|
||||
+ limit = (FT_UShort)gloader->current.num_subglyphs;
|
||||
|
||||
/* construct an outline structure for */
|
||||
/* communication with `TT_Vary_Apply_Glyph_Deltas' */
|
||||
--
|
||||
GitLab
|
||||
|
||||
Binary file not shown.
BIN
freetype-2.13.2.tar.xz
Normal file
BIN
freetype-2.13.2.tar.xz
Normal file
Binary file not shown.
Binary file not shown.
BIN
freetype-doc-2.13.2.tar.xz
Normal file
BIN
freetype-doc-2.13.2.tar.xz
Normal file
Binary file not shown.
@ -2,16 +2,20 @@
|
||||
|
||||
%{!?with_xfree86:%define with_xfree86 1}
|
||||
|
||||
%bcond_without harfbuzz
|
||||
|
||||
Name: freetype
|
||||
Version: 2.12.1
|
||||
Release: 2
|
||||
Version: 2.13.2
|
||||
Release: 3
|
||||
Summary: FreeType is a freely available software library to render fonts
|
||||
License: (FTL or GPLv2+) and BSD and MIT and Public Domain and zlib with acknowledgement
|
||||
URL: http://www.freetype.org
|
||||
Source0: http://download.savannah.gnu.org/releases/freetype/freetype-%{version}.tar.xz
|
||||
Source1: http://download.savannah.gnu.org/releases/freetype/freetype-doc-%{version}.tar.xz
|
||||
Source2: http://download.savannah.gnu.org/releases/freetype/ft2demos-%{version}.tar.xz
|
||||
License: (FTL OR GPL-2.0-or-later) AND BSD-3-Clause AND MIT AND MIT-Modern-Variant AND Zlib
|
||||
URL: https://www.freetype.org
|
||||
Source0: https://download.savannah.gnu.org/releases/freetype/freetype-%{version}.tar.xz
|
||||
Source1: https://download.savannah.gnu.org/releases/freetype/freetype-doc-%{version}.tar.xz
|
||||
Source2: https://download.savannah.gnu.org/releases/freetype/ft2demos-%{version}.tar.xz
|
||||
Source3: ftconfig.h
|
||||
#from tests/scripts/download-test-fonts.py:https://github.com/python-pillow/Pillow/files/6622147/As.I.Lay.Dying.zip
|
||||
Source4: As.I.Lay.Dying.ttf
|
||||
|
||||
Patch1: backport-freetype-2.5.2-more-demos.patch
|
||||
Patch6000: backport-freetype-2.3.0-enable-spr.patch
|
||||
@ -20,13 +24,20 @@ Patch6002: backport-freetype-2.6.5-libtool.patch
|
||||
Patch6003: backport-freetype-2.8-multilib.patch
|
||||
Patch6004: backport-freetype-2.10.0-internal-outline.patch
|
||||
Patch6005: backport-freetype-2.10.1-debughook.patch
|
||||
Patch6006: backport-CVE-2023-2004.patch
|
||||
Patch6006: backport-CVE-2025-27363.patch
|
||||
|
||||
BuildRequires: gcc libX11-devel libpng-devel zlib-devel bzip2-devel
|
||||
BuildRequires: gcc meson
|
||||
BuildRequires: pkgconfig(bzip2)
|
||||
BuildRequires: pkgconfig(libbrotlidec)
|
||||
BuildRequires: pkgconfig(libpng)
|
||||
BuildRequires: pkgconfig(zlib)
|
||||
%if %{with harfbuzz}
|
||||
BuildRequires: pkgconfig(harfbuzz) >= 2.0.0
|
||||
%endif
|
||||
|
||||
Provides: %{name}-bytecode
|
||||
Provides: %{name}-bytecode = %{version}-%{release}
|
||||
%if %{?_with_subpixel_rendering:1}%{!?_with_subpixel_rendering:0}
|
||||
Provides: %{name}-subpixel
|
||||
Provides: %{name}-subpixel = %{version}-%{release}
|
||||
%endif
|
||||
|
||||
%description
|
||||
@ -42,25 +53,20 @@ The FreeType engine is a free and portable font rendering engine,developed to pr
|
||||
|
||||
%package devel
|
||||
Summary: FreeType development libraries and header files
|
||||
Requires: %{name} = %{version}-%{release} pkgconf
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
|
||||
%description devel
|
||||
The freetype-devel package includes the static libraries and header files
|
||||
for the FreeType font rendering engine.Install freetype-devel if you want to develop programs which will use
|
||||
FreeType.
|
||||
|
||||
%package help
|
||||
Summary: Documents for freetype
|
||||
Buildarch: noarch
|
||||
|
||||
%description help
|
||||
Man pages and other related for freetype documents.
|
||||
%package_help
|
||||
|
||||
%prep
|
||||
%setup -q -b 1 -a 2
|
||||
%setup -q -b 1 -a 2
|
||||
|
||||
pushd ft2demos-%{version}
|
||||
%patch1 -p1 -b .more-demos
|
||||
%patch1 -p1 -b .more-demos
|
||||
popd
|
||||
%patch6000 -p1
|
||||
%patch6001 -p1
|
||||
@ -71,7 +77,16 @@ popd
|
||||
%patch6006 -p1
|
||||
|
||||
%build
|
||||
%configure --disable-static --with-zlib=yes --with-bzip2=yes --with-png=yes --enable-freetype-config --with-harfbuzz=no
|
||||
%configure --disable-static \
|
||||
--with-zlib=yes \
|
||||
--with-bzip2=yes \
|
||||
--with-png=yes \
|
||||
%if %{with harfbuzz}
|
||||
--with-harfbuzz=yes \
|
||||
%else
|
||||
--with-harfbuzz=no \
|
||||
%endif
|
||||
--enable-freetype-config
|
||||
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' builds/unix/libtool
|
||||
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' builds/unix/libtool
|
||||
%make_build
|
||||
@ -82,7 +97,8 @@ make TOP_DIR=".."
|
||||
%endif
|
||||
|
||||
%install
|
||||
%make_install gnulocaledir=$RPM_BUILD_ROOT%{_datadir}/locale
|
||||
%make_install
|
||||
%delete_la
|
||||
{
|
||||
for ftdemo in ftbench ftchkwd ftmemchk ftpatchk fttimer ftdump ftlint ftmemchk ftvalid ; do
|
||||
builds/unix/libtool --mode=install install -m 755 ft2demos-%{version}/bin/$ftdemo $RPM_BUILD_ROOT/%{_bindir}
|
||||
@ -112,12 +128,14 @@ install -p -m 644 %{SOURCE3} $RPM_BUILD_ROOT%{_includedir}/freetype2/freetype/co
|
||||
exit 0
|
||||
}
|
||||
|
||||
%post -p /sbin/ldconfig
|
||||
|
||||
%postun -p /sbin/ldconfig
|
||||
%check
|
||||
mkdir -p tests/data/
|
||||
cp %{SOURCE4} tests/data/
|
||||
meson setup out -Dtests=enabled
|
||||
meson compile -C out
|
||||
meson test -C out
|
||||
|
||||
%files
|
||||
%{!?_licensedir:%global license %%doc}
|
||||
%license LICENSE.TXT docs/FTL.TXT docs/GPLv2.TXT
|
||||
%{_libdir}/libfreetype.so.*
|
||||
|
||||
@ -130,7 +148,6 @@ install -p -m 644 %{SOURCE3} $RPM_BUILD_ROOT%{_includedir}/freetype2/freetype/co
|
||||
%{_libdir}/libfreetype.so
|
||||
%{_libdir}/pkgconfig/freetype2.pc
|
||||
%{_bindir}/freetype-config
|
||||
%exclude %{_libdir}/*.{a,la}
|
||||
|
||||
%files help
|
||||
%doc docs/design
|
||||
@ -142,6 +159,22 @@ install -p -m 644 %{SOURCE3} $RPM_BUILD_ROOT%{_includedir}/freetype2/freetype/co
|
||||
%{_mandir}/man1/*
|
||||
|
||||
%changelog
|
||||
* Mon Mar 17 2025 zhangpan <zhangpan103@h-partners.com> - 2.13.2-3
|
||||
- fix CVE-2025-27363
|
||||
|
||||
* Sun Aug 11 2024 Funda Wang <fundawang@yeah.net> - 2.13.2-2
|
||||
- Cleanup spec
|
||||
- Conditioned build harfbuzz support
|
||||
|
||||
* Thu Dec 28 2023 Paul Thomas <paulthomas100199@gmail.com> - 2.13.2-1
|
||||
- update to version 2.13.2
|
||||
|
||||
* Wed Sep 20 2023 zhouwenpei <zhouwenpei1@h-partners.com> - 2.13.1-2
|
||||
- enable check
|
||||
|
||||
* Fri Jul 14 2023 zhangpan <zhangpan103@h-partners.com> - 2.13.1-1
|
||||
- update to 2.13.1
|
||||
|
||||
* Mon Apr 17 2023 zhouwenpei <zhouwenpei1@h-partners.com> - 2.12.1-2
|
||||
- fix CVE-2023-2004
|
||||
|
||||
|
||||
Binary file not shown.
BIN
ft2demos-2.13.2.tar.xz
Normal file
BIN
ft2demos-2.13.2.tar.xz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user