]> www.fi.muni.cz Git - evince.git/blobdiff - pdf/xpdf/Array.h
Fix for a number of integer overflow bugs discovered by Chris Evans.
[evince.git] / pdf / xpdf / Array.h
index ecf2eea6fdeca7120c8223da3bc5bd0ae422c16c..20ae05f29707ba81e9a3f213609e17471947b755 100644 (file)
@@ -2,19 +2,23 @@
 //
 // Array.h
 //
-// Copyright 1996 Derek B. Noonburg
+// Copyright 1996-2003 Glyph & Cog, LLC
 //
 //========================================================================
 
 #ifndef ARRAY_H
 #define ARRAY_H
 
-#ifdef __GNUC__
+#include <aconf.h>
+
+#ifdef USE_GCC_PRAGMAS
 #pragma interface
 #endif
 
 #include "Object.h"
 
+class XRef;
+
 //------------------------------------------------------------------------
 // Array
 //------------------------------------------------------------------------
@@ -23,7 +27,7 @@ class Array {
 public:
 
   // Constructor.
-  Array();
+  Array(XRef *xrefA);
 
   // Destructor.
   ~Array();
@@ -44,6 +48,7 @@ public:
 
 private:
 
+  XRef *xref;                  // the xref table for this PDF file
   Object *elems;               // array of elements
   int size;                    // size of <elems> array
   int length;                  // number of elements in array