Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Jun 2018 00:20:43 +0000 (UTC)
From:      Jan Beich <jbeich@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-branches@freebsd.org
Subject:   svn commit: r472947 - in branches/2018Q2/www/waterfox: . files
Message-ID:  <201806210020.w5L0Khm3006030@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jbeich
Date: Thu Jun 21 00:20:42 2018
New Revision: 472947
URL: https://svnweb.freebsd.org/changeset/ports/472947

Log:
  MFH: r472942
  
  www/waterfox: apply some FF61 fix
  
  Approved by:	ports-secteam blanket

Modified:
  branches/2018Q2/www/waterfox/Makefile
  branches/2018Q2/www/waterfox/files/patch-bug1464039
Directory Properties:
  branches/2018Q2/   (props changed)

Modified: branches/2018Q2/www/waterfox/Makefile
==============================================================================
--- branches/2018Q2/www/waterfox/Makefile	Thu Jun 21 00:19:48 2018	(r472946)
+++ branches/2018Q2/www/waterfox/Makefile	Thu Jun 21 00:20:42 2018	(r472947)
@@ -3,6 +3,7 @@
 PORTNAME=	waterfox
 DISTVERSION=	56.2.1-19
 DISTVERSIONSUFFIX=	-gff88ad0b627dc
+PORTREVISION=	1
 CATEGORIES=	www ipv6
 
 MAINTAINER=	jbeich@FreeBSD.org

Modified: branches/2018Q2/www/waterfox/files/patch-bug1464039
==============================================================================
--- branches/2018Q2/www/waterfox/files/patch-bug1464039	Thu Jun 21 00:19:48 2018	(r472946)
+++ branches/2018Q2/www/waterfox/files/patch-bug1464039	Thu Jun 21 00:20:42 2018	(r472947)
@@ -25,3 +25,63 @@ index e382fbe001422..2b0e707c443c4 100644
                  transform->transform_module_fn(transform,src,dest,len);
                  dest = src;
                  src = new_src;
+commit 223a7e0a67fd
+Author: Nicolas Silva <nsilva@mozilla.com>
+Date:   Tue Jun 19 15:32:29 2018 +0200
+
+    Bug 1464039 - Only reject qcms transform with invalid grid size if the transform function uses the grid size. r=Bas, a=jcristau
+    
+    --HG--
+    extra : source : 8dde5c1d895e4c063d5bda39029c9a01a178ebba
+    extra : intermediate-source : a64fb8de655dc28efd0b7de94b6f0008b08ae0ae
+---
+ gfx/qcms/chain.c           | 4 +++-
+ gfx/thebes/gfxPlatform.cpp | 6 +++++-
+ 2 files changed, 8 insertions(+), 2 deletions(-)
+
+diff --git gfx/qcms/chain.c gfx/qcms/chain.c
+index 2b0e707c443c4..dbae183789e79 100644
+--- gfx/qcms/chain.c
++++ gfx/qcms/chain.c
+@@ -972,7 +972,9 @@ static float* qcms_modular_transform_data(struct qcms_modular_transform *transfo
+ 			assert(0 && "Unsupported transform module");
+ 			return NULL;
+ 		}
+-		if (transform->grid_size <= 0) {
++		if (transform->grid_size <= 0 &&
++			(transform_fn == qcms_transform_module_clut ||
++			 transform_fn == qcms_transform_module_clut_only)) {
+ 			assert(0 && "Invalid transform");
+ 			return NULL;
+ 		}
+diff --git gfx/thebes/gfxPlatform.cpp gfx/thebes/gfxPlatform.cpp
+index d7c966ea1bcc2..278a609817d9e 100644
+--- gfx/thebes/gfxPlatform.cpp
++++ gfx/thebes/gfxPlatform.cpp
+@@ -160,6 +160,7 @@ static Mutex* gGfxPlatformPrefsLock = nullptr;
+ static qcms_profile *gCMSOutputProfile = nullptr;
+ static qcms_profile *gCMSsRGBProfile = nullptr;
+ 
++static bool gCMSRGBTransformFailed = false;
+ static qcms_transform *gCMSRGBTransform = nullptr;
+ static qcms_transform *gCMSInverseRGBTransform = nullptr;
+ static qcms_transform *gCMSRGBATransform = nullptr;
+@@ -2068,7 +2069,7 @@ gfxPlatform::GetCMSsRGBProfile()
+ qcms_transform *
+ gfxPlatform::GetCMSRGBTransform()
+ {
+-    if (!gCMSRGBTransform) {
++    if (!gCMSRGBTransform && !gCMSRGBTransformFailed) {
+         qcms_profile *inProfile, *outProfile;
+         outProfile = GetCMSOutputProfile();
+         inProfile = GetCMSsRGBProfile();
+@@ -2079,6 +2080,9 @@ gfxPlatform::GetCMSRGBTransform()
+         gCMSRGBTransform = qcms_transform_create(inProfile, QCMS_DATA_RGB_8,
+                                               outProfile, QCMS_DATA_RGB_8,
+                                              QCMS_INTENT_PERCEPTUAL);
++        if (!gCMSRGBTransform) {
++            gCMSRGBTransformFailed = true;
++        }
+     }
+ 
+     return gCMSRGBTransform;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201806210020.w5L0Khm3006030>