~ubuntu-branches/ubuntu/precise/cups-filters/precise-security

« back to all changes in this revision

Viewing changes to pdftopdf/P2PXRef.cxx

  • Committer: Package Import Robot
  • Author(s): Till Kamppeter, Till Kamppeter, Martin Pitt
  • Date: 2012-03-30 08:49:48 UTC
  • mfrom: (1.1.9)
  • Revision ID: package-import@ubuntu.com-20120330084948-7h3u3zfikkvuywmk
Tags: 1.0.11-1
[ Till Kamppeter ]
* New upstream release
   - Updated all code copied from Poppler to the current state of Poppler,
     to fix any bugs or security vulnerabilities which were in that
     Poppler code.
   - Made Poppler-based PDF filters building with various versions of
     Poppler.
   - Deactivated NIME conversion rules which are not used by the PDF-
     based printing workflow.
   - Added generic PPD for native PDF printers.
   - Cleaned up sample PPD file HP-Color_LaserJet_CM3530_MFP-PDF.ppd.
   - imagetopdf: Added support for native PDF printers.
   - imagetopdf, imagetoraster: Let image input "scale to fit"
     by default. This makes photo printing via AirPrint work,
     as the iOS devices send JPEG but do not allow setting options.
   - pdftops: Generally do not compress fonts and images, and
     also do not do CCITT compression for bitmap glyphs to make
     the PostScript output more compatible with buggy PostScript
     interpreters. The output gets 30-50% longer but will work on
     many more different printer models. Problems were also
     discovered on HP and not only on Brother (LP: #960666).

[ Martin Pitt ]
* Drop debian/patches/poppler-pre-0.18.patch and patch machinery around it.
  It's not necessary with the current upstream version any more.

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
#include "goo/gmem.h"
33
33
#include "P2PXRef.h"
34
34
#include "P2PObject.h"
35
 
#include "Error.h"
 
35
#include "P2PError.h"
36
36
 
37
37
/* increment size for object table */
38
38
#define INCSIZE 1024
129
129
      /* this situation is error. */
130
130
      /* but continue */
131
131
      str->puts("0000000000 00000 f \n");
132
 
      error(-1,const_cast<char *>("freed object:%d found\n"),i);
 
132
      p2pError(-1,const_cast<char *>("freed object:%d found\n"),i);
133
133
    } else {
134
134
      objects[i]->getNum(&num,&gen);
135
135
      offset = objects[i]->getOffset();
136
136
 
137
137
      if (offset < 0) {
138
138
        /* not output yet. error */
139
 
        error(-1,const_cast<char *>("not output object:%d found\n"),i);
 
139
        p2pError(-1,const_cast<char *>("not output object:%d found\n"),i);
140
140
      } else {
141
141
        str->printf("%010d %05d n \n",offset,gen);
142
142
      }