FreeBSD Bugzilla – Attachment 214244 Details for
Bug 245915
x11-fonts/fontconfig: webfonts on many sites crash www/firefox
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
upstream fix
bug245915.diff (text/plain), 2.22 KB, created by
Jan Beich
on 2020-05-07 19:26:09 UTC
(
hide
)
Description:
upstream fix
Filename:
MIME Type:
Creator:
Jan Beich
Created:
2020-05-07 19:26:09 UTC
Size:
2.22 KB
patch
obsolete
>From 98383178d206261ee1fc40827ae3c5a00a399596 Mon Sep 17 00:00:00 2001 >From: Jan Beich <jbeich@FreeBSD.org> >Date: Thu, 7 May 2020 19:20:50 +0000 >Subject: [PATCH] x11-fonts/fontconfig: fix crashes in www/firefox after > r530516 > >PR: 245915 >Approved by: ? >Obtained from: upstream >--- > x11-fonts/fontconfig/Makefile | 2 +- > x11-fonts/fontconfig/files/patch-2.13.92.diff | 13 +++++++++++++ > 2 files changed, 14 insertions(+), 1 deletion(-) > >diff --git a/x11-fonts/fontconfig/Makefile b/x11-fonts/fontconfig/Makefile >index c63bfa328a73..d9e98163a3e0 100644 >--- a/x11-fonts/fontconfig/Makefile >+++ b/x11-fonts/fontconfig/Makefile >@@ -3,7 +3,7 @@ > > PORTNAME= fontconfig > PORTVERSION= 2.13.92 >-PORTREVISION?= 1 >+PORTREVISION?= 2 > PORTEPOCH?= 1 > CATEGORIES= x11-fonts > MASTER_SITES= https://www.freedesktop.org/software/fontconfig/release/ >diff --git a/x11-fonts/fontconfig/files/patch-2.13.92.diff b/x11-fonts/fontconfig/files/patch-2.13.92.diff >index af5b8ebff1a5..3bd6b55c06fa 100644 >--- a/x11-fonts/fontconfig/files/patch-2.13.92.diff >+++ b/x11-fonts/fontconfig/files/patch-2.13.92.diff >@@ -28,6 +28,8 @@ > # https://cgit.freedesktop.org/fontconfig/commit/?id=71d6866d381a0ab3585eb9ee760aeec98e722359 > # Fix memory leaks > # https://cgit.freedesktop.org/fontconfig/commit/?id=61573ad5f7c4dd0860d613d99d0086433240eb75 >+# Set name_mapping to NULL after freeing to avoid risk of double-free. >+# https://cgit.freedesktop.org/fontconfig/commit/?id=6edaaa4d1823518a97fb4cc3004d110b1046f742 > # Fix assertion in FcFini() > # https://cgit.freedesktop.org/fontconfig/commit/?id=fbc05949ef52c8a8d69233eed77f6636dffec280 > # Set exact boolean value to color property >@@ -1338,6 +1340,17 @@ test/test-bz1744377.c, test/test-crbug1004254.c, test/test-issue180.c. > if (FcDebug () & FC_DBG_SCANV) > printf ("found full (n %2d p %d e %d l 0x%04x)", > sname.name_id, sname.platform_id, >+@@ -1624,7 +1627,10 @@ FcFreeTypeQueryFaceInternal (const FT_Fa >+ } >+ } >+ if (!nm_share) >++ { >+ free (name_mapping); >++ name_mapping = NULL; >++ } >+ >+ if (!nfamily && face->family_name && >+ FcStrCmpIgnoreBlanksAndCase ((FcChar8 *) face->family_name, (FcChar8 *) "") != 0) > @@ -1679,6 +1682,61 @@ FcFreeTypeQueryFaceInternal (const FT_Fa > ++nfamily; > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 245915
:
214242
|
214243
| 214244