Author: fernando
Date: Wed Jun 11 04:11:08 2014
New Revision: 2909

Log:
cups-filters-1.0.54: patch to fix pdftoraster segfault.

Added:
   trunk/cups-filters/cups-filters-1.0.54-pdftoraster-1.patch

Added: trunk/cups-filters/cups-filters-1.0.54-pdftoraster-1.patch
==============================================================================
--- /dev/null   00:00:00 1970   (empty, because file is newly added)
+++ trunk/cups-filters/cups-filters-1.0.54-pdftoraster-1.patch  Wed Jun 11 
04:11:08 2014        (r2909)
@@ -0,0 +1,32 @@
+Submitted By:            Fernando de Oliveira <famobr at yahoo dot com dot br>
+Date:                    2014-06-11
+Initial Package Version: 1.0.54
+Upstream Status:         Fixed
+Origin:                  Upstream
+URL:                     
http://bzr.linuxfoundation.org/loggerhead/openprinting/cups-filters/diff/7219
+Description:             pdftoraster: Fixed segfault caused by introduction of 
"no-color-management" option (Bug #1214).
+
+=== modified file 'filter/pdftoraster.cxx'
+--- a/filter/pdftoraster.cxx   2014-06-06 10:44:22 +0000
++++ b/filter/pdftoraster.cxx   2014-06-11 08:55:52 +0000
+@@ -444,7 +444,7 @@
+       }
+     }
+     /* support the "no-color-management" option */
+-    if (cupsGetOption("no-color-management", num_options, options) == NULL)
++    if (cupsGetOption("no-color-management", num_options, options) != NULL)
+       cm_off = true;
+     if (!cm_off) {
+       if (getColorProfilePath(ppd,&profilePath)) {
+@@ -1998,9 +1998,7 @@
+         pdfError(-1,const_cast<char *>("Can't open raster stream"));
+       exit(1);
+   }
+-  if (!cm_off) {
+-    selectConvertFunc(raster);
+-  }
++  selectConvertFunc(raster);
+   for (i = 1;i <= npages;i++) {
+     outPage(doc,catalog,i,out,raster);
+   }
+
-- 
http://lists.linuxfromscratch.org/listinfo/patches
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to