[packages/fontconfig] up to 2.18.4
atler
atler at pld-linux.org
Thu Nov 19 01:24:46 CET 2026
commit 04990c3bcc43225441e48d27fdbb73b25ebfcb45
Author: Jan Palus <atler at pld-linux.org>
Date: Thu Nov 19 01:24:36 2026 +0100
up to 2.18.4
fontconfig-cache-charset-validation.patch | 56 -------------------------------
fontconfig-cache-type-validation.patch | 28 ----------------
fontconfig.spec | 10 ++----
3 files changed, 3 insertions(+), 91 deletions(-)
---
diff --git a/fontconfig.spec b/fontconfig.spec
index 3f3d977..18ab133 100644
--- a/fontconfig.spec
+++ b/fontconfig.spec
@@ -8,8 +8,8 @@ Summary: Font configuration and customization tools
Summary(pl.UTF-8): Narzędzia do konfigurowania fontów
Summary(pt_BR.UTF-8): Ferramentas para configuração e customização do acesso a fontes
Name: fontconfig
-Version: 2.18.3
-Release: 3
+Version: 2.18.4
+Release: 1
Epoch: 1
License: MIT
Group: Libraries
@@ -18,12 +18,10 @@ Group: Libraries
# now at gitlab only
#Source0Download: https://gitlab.freedesktop.org/fontconfig/fontconfig/-/releases
Source0: https://gitlab.freedesktop.org/api/v4/projects/890/packages/generic/fontconfig/%{version}/%{name}-%{version}.tar.xz
-# Source0-md5: ce819e229ca6fb7d1be47a192d6681a3
+# Source0-md5: cba860d64dd6a8c07f9480065f45aed6
Source1: %{name}-lcd-filter.conf
Patch0: %{name}-bitstream-cyberbit.patch
Patch1: disable-tests.patch
-Patch2: %{name}-cache-charset-validation.patch
-Patch3: %{name}-cache-type-validation.patch
URL: https://fontconfig.org/
BuildRequires: autoconf >= 2.71
BuildRequires: automake >= 1:1.11
@@ -141,8 +139,6 @@ Este pacote contém a biblioteca estática do fontconfig
%setup -q
%patch -P0 -p1
%patch -P1 -p1
-%patch -P2 -p1
-%patch -P3 -p1
%build
%{__gettextize -d po-conf}
diff --git a/fontconfig-cache-charset-validation.patch b/fontconfig-cache-charset-validation.patch
deleted file mode 100644
index fc620d9..0000000
--- a/fontconfig-cache-charset-validation.patch
+++ /dev/null
@@ -1,56 +0,0 @@
-# reject crafted caches whose FcCharSet offsets point outside the cache (arbitrary free)
-# https://gitlab.freedesktop.org/fontconfig/fontconfig/-/commit/4ba7952e (issue #558)
-diff --git a/src/fccache.c b/src/fccache.c
-index 8cce6f2d..cdb36eab 100644
---- a/src/fccache.c
-+++ b/src/fccache.c
-@@ -970,6 +970,49 @@ FcCacheOffsetsValid (FcCache *cache)
- }
- return FcFalse;
- }
-+ {
-+ const FcCharSet *cs = FcValueCharSet (&l->value);
-+ intptr_t *leaves;
-+ int k;
-+
-+ if ((char *)cs < base || (char *)cs > end - sizeof (FcCharSet) ||
-+ !FcRefIsConst (&cs->ref)) {
-+ if (FcDebug() & FC_DBG_CACHE) {
-+ fprintf (stderr, "Fontconfig warning: invalid cache: non-constant or out-of-bounds charset\n");
-+ }
-+ return FcFalse;
-+ }
-+ if (cs->num < 0)
-+ return FcFalse;
-+ if (cs->num > 0) {
-+ if (cs->leaves_offset < 0 ||
-+ cs->leaves_offset > end - (char *)cs ||
-+ cs->num > (end - (char *)cs - cs->leaves_offset) / sizeof (intptr_t)) {
-+ if (FcDebug() & FC_DBG_CACHE) {
-+ fprintf (stderr, "Fontconfig warning: invalid cache: broken charset leaves offset\n");
-+ }
-+ return FcFalse;
-+ }
-+ if (cs->numbers_offset < 0 ||
-+ cs->numbers_offset > end - (char *)cs ||
-+ cs->num > (end - (char *)cs - cs->numbers_offset) / sizeof (FcChar16)) {
-+ if (FcDebug() & FC_DBG_CACHE) {
-+ fprintf (stderr, "Fontconfig warning: invalid cache: broken charset numbers offset\n");
-+ }
-+ return FcFalse;
-+ }
-+ leaves = FcCharSetLeaves (cs);
-+ for (k = 0; k < cs->num; k++) {
-+ if (leaves[k] < -((char *)leaves - base) ||
-+ leaves[k] > end - (char *)leaves - (ptrdiff_t) sizeof (FcCharLeaf)) {
-+ if (FcDebug() & FC_DBG_CACHE) {
-+ fprintf (stderr, "Fontconfig warning: invalid cache: broken charset leaf offset\n");
-+ }
-+ return FcFalse;
-+ }
-+ }
-+ }
-+ }
- break;
- case FcTypeLangSet:
- ls = FcValueLangSet (&l->value);
diff --git a/fontconfig-cache-type-validation.patch b/fontconfig-cache-type-validation.patch
deleted file mode 100644
index 5715adb..0000000
--- a/fontconfig-cache-type-validation.patch
+++ /dev/null
@@ -1,28 +0,0 @@
-# reject crafted caches storing a value type that does not match its object
-# https://gitlab.freedesktop.org/fontconfig/fontconfig/-/commit/3611892e
-diff --git a/src/fccache.c b/src/fccache.c
-index cdb36eab..e9ea3cc3 100644
---- a/src/fccache.c
-+++ b/src/fccache.c
-@@ -940,6 +940,21 @@ FcCacheOffsetsValid (FcCache *cache)
- if ((char *)l < last_offset || (char *)l > end - sizeof (*l) ||
- (l->next != NULL && !FcIsEncodedOffset (l->next)))
- return FcFalse;
-+ /* The checks below are driven by the type stored in the
-+ * value, whereas the users of a pattern pick the accessor
-+ * for a value by the object it belongs to. Reject values
-+ * whose type doesn't match the type registered for the
-+ * object, otherwise e.g. an integer stored for FC_FAMILY
-+ * would be accepted here without validating the union,
-+ * but dereferenced as a string later on.
-+ */
-+ if (!FcObjectValidType (e[j].object, l->value.type)) {
-+ if (FcDebug() & FC_DBG_CACHE) {
-+ fprintf (stderr, "Fontconfig warning: invalid cache: value of type %d doesn't match the type of object %d\n",
-+ l->value.type, e[j].object);
-+ }
-+ return FcFalse;
-+ }
- switch (l->value.type) {
- case FcTypeVoid:
- case FcTypeInteger:
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/fontconfig.git/commitdiff/04990c3bcc43225441e48d27fdbb73b25ebfcb45
More information about the pld-cvs-commit
mailing list