]> www.fi.muni.cz Git - evince.git/blobdiff - pdf/xpdf/TextOutputDev.h
Fix for a number of integer overflow bugs discovered by Chris Evans.
[evince.git] / pdf / xpdf / TextOutputDev.h
index b501907b4a257868566c632fe01dee88e4de0179..2c622376f3937b31985da9b08badcdd058173ba7 100644 (file)
@@ -354,6 +354,9 @@ public:
   // Start a new page.
   void startPage(GfxState *state);
 
+  // End the current page.
+  void endPage();
+
   // Update the current font.
   void updateFont(GfxState *state);
 
@@ -426,6 +429,8 @@ private:
   double curFontSize;          // current font size
   int nest;                    // current nesting level (for Type 3 fonts)
   int nTinyChars;              // number of "tiny" chars seen so far
+  GBool lastCharOverlap;       // set if the last added char overlapped the
+                               //   previous char
 
   TextPool *pools[4];          // a "pool" of TextWords for each rotation
   TextFlow *flows;             // linked list of flows