Ticket #5145: cups-filters-1.0.54-pdftoraster-1.patch

File cups-filters-1.0.54-pdftoraster-1.patch, 1.2 KB (added by Fernando de Oliveira, 10 years ago)

Upstream fix to pdftoraster segfault

  • filter/pdftoraster.cxx

    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 b  
    444444      }
    445445    }
    446446    /* support the "no-color-management" option */
    447     if (cupsGetOption("no-color-management", num_options, options) == NULL)
     447    if (cupsGetOption("no-color-management", num_options, options) != NULL)
    448448      cm_off = true;
    449449    if (!cm_off) {
    450450      if (getColorProfilePath(ppd,&profilePath)) {
     
    19981998        pdfError(-1,const_cast<char *>("Can't open raster stream"));
    19991999        exit(1);
    20002000  }
    2001   if (!cm_off) {
    2002     selectConvertFunc(raster);
    2003   }
     2001  selectConvertFunc(raster);
    20042002  for (i = 1;i <= npages;i++) {
    20052003    outPage(doc,catalog,i,out,raster);
    20062004  }