Opened 9 years ago

Closed 9 years ago

#6131 closed enhancement (fixed)

cups-2.0.2

Reported by: bdubbs@… Owned by: bdubbs@…
Priority: normal Milestone: 7.7
Component: BOOK Version: SVN
Severity: normal Keywords:
Cc:

Description (last modified by Fernando de Oliveira)

New point version

http://www.cups.org/software.php?VERSION=2.0.2&FILE=2.0.2/cups-2.0.2-source.tar.bz2

http://www.cups.org/pipermail/cups/2015-February/026708.html

The new release addresses a potential buffer overflow for compressed
raster data and includes several general bug fixes. Changes include:

- Security: cupsRasterReadPixels buffer overflow with invalid page
  header and compressed raster data (STR #4551)
- Command-line programs were not localized on Mac OS X
  (<rdar://problem/14546232>)
- The scheduler incorrectly cleared the MakeModel string in the
  printers.conf file after a restart (<rdar://problem/16827518>)
- CUPS did not compile with older versions of GNU TLS (STR #4527)
- CUPS did not compile without Avahi or mDNSResponder (STR #4523)
- ippLength() did not return the correct length for IPP_TAG_CONST string
  values.
- The scheduler incorrectly aborted jobs after a job was restarted
  (<rdar://problem/19129387>)
- The cups-files.conf file contained the old ServerCertificate/Key
  directives instead of ServerKeychain.
- Fixed builds when no SSL/TLS library is available, or when explicitly
  disabled (STR #4531)
- Fixed an OpenBSD charset transcoding issue.
- Fixed USB printing on OpenBSD (STR #4525)
- The --without-xinetd configure option did not work (STR #4542)
- Backends needing to load OS X kernel extensions did not work
  (<rdar://problem/19015679>)
- Mapping of PPD keywords to IPP keywords did not work if the PPD
  keyword was already an IPP keyword (<rdar://problem/19121005>)
- cupsGetPPD* sent bad requests (STR #4567)
- ippserver used the wrong temporary directory on Windows (STR #4547)
- ippserver did not handle Bonjour registrations properly (STR #4548)
- The scheduler could crash during shutdown if Avahi was shutdown first
  (STR #4550)
- Added a USB quirk rule for Intermec printers (STR #4553)
- The scheduler did not always log which configuration file had the
  error (STR #4559)
- The ippfind and ipptool programs now correctly match hostnames with
  trailing dots (STR #4563)
- The ipptool timeout option did not work (STR #4515)
- Fixed several issues with client.conf, CUPS_SERVER, and the "-h"
  option of most commands (STR #4528)
- Another change for OpenBSD (STR #4526)
- Added Japanese localization (STR #4524)
- Documentation changes (STR #4569)

Change History (10)

comment:1 by Fernando de Oliveira, 9 years ago

Description: modified (diff)

comment:2 by Fernando de Oliveira, 9 years ago

There is a problem: cups-filters-1.0.62 does not compile with poppler-0.31.0. It needs to be reinstalled, after cups.

I had to downgrade poppler to 0.30.0.

Problem is (some edit done):

...
/usr/include/poppler/Object.h:260:10: warning: 
ISO C++ 1998 does not support ‘long long’ [-Wlong-long]
     long long int64g;           //   64-bit integer
          ^
filter/pdftoopvp/OPVPOutputDev.cxx: In member function 
‘void OPVPOutputDev::startDoc(XRef*)’:
filter/pdftoopvp/OPVPOutputDev.cxx:281:23: error: ‘class GlobalParams’
has no member named ‘getAntialias’
         globalParams->getAntialias());
                       ^
Makefile:3426: recipe for target 'pdftoopvp-OPVPOutputDev.o' failed
make[1]: *** [pdftoopvp-OPVPOutputDev.o] Error 1
make[1]: Leaving directory '/tmp//cups-filters-1.0.62'
Makefile:1647: recipe for target 'all' failed
make: *** [all] Error 2

In poppler-0.30.0, this was defined:

/usr/include/poppler/GlobalParams.h: GBool getAntialias();

but was removed, in poppler-0.31.0.

Actually this header has suffered a large amount of modifications: removed 53 lines and added 13, so, less 40 lines.

This bug is new (of course) and has not yet been solved:

https://bugs.linuxfoundation.org/show_bug.cgi?id=1254

Now, we have a big problem, if there is no solution before freeze.

comment:3 by bdubbs@…, 9 years ago

Not optimal, but in filter/pdftoopvp/OPVPOutputDev.cxx, there is a line:

globalParams->getAntialias());

try changeing it to

0);

just to see if it builds.

Also in filter/pdftoijs.cxx, line

 out = new SplashOutputDev(cmode,rowpad/* row padding */,
    reverseVideo,paperColor,gTrue,gFalse);

just remove the last ',gFalse' and use th edefault.

comment:4 by bdubbs@…, 9 years ago

cups filters builds OK for me with the following:

 sed -i "s:globalParams->getAntialias():gFalse:" filter/pdftoopvp/OPVPOutputDev.cxx
 sed -i "/setAntialias/d"                        filter/pdftoopvp/pdftoopvp.cxx
 sed -i "/paperColor,g/s:gTrue,gFalse:gTrue:"    filter/pdftoijs.cxx \
                                                 filter/pdftoraster.cxx

I didn't install. See if it works for you.

comment:5 by bdubbs@…, 9 years ago

If it works, a patch may be better.

comment:6 by Fernando de Oliveira, 9 years ago

It works, thanks. Will make a patch.

comment:7 by bdubbs@…, 9 years ago

He who will not be named has already created the patch.

comment:8 by Fernando de Oliveira, 9 years ago

I've built, installed, it works, only statistics changes:

    Download MD5 sum: 6e0ea72dbafcf5baaa1cf4178e71096d

    Download size: 8.4 MB

    Estimated disk space required: 61 MB (additional 20 MB for the tests)

    Estimated build time: 0.6 SBU (additional 0.4 SBU for the tests with -j8)

For the one who takes this, please, read in previous comments about problems needed to be solved with other package.

Last edited 9 years ago by Fernando de Oliveira (previous) (diff)

comment:9 by bdubbs@…, 9 years ago

Owner: changed from blfs-book@… to bdubbs@…
Status: newassigned

comment:10 by bdubbs@…, 9 years ago

Resolution: fixed
Status: assignedclosed

Fixed at revision 15491.

Note: See TracTickets for help on using tickets.