openbsd-ports/textproc/gpdf/patches/patch-xpdf_Stream_h
bernd bf60fbb21f Fix several security bugs in the xpdf code of gpdf.
o iDefense advisories from 2005-12-05
o CAN-2005-3191, CAN-2005-3192, CAN-2005-3193

- JPX Stream Reader Heap Overflow Vulnerability
- DCTStream Baseline Heap Overflow Vulnerability
- DCTStream Progressive Heap Overflow
- StreamPredictor Heap Overflow Vulnerability

Patch provided by xpdf developers.

Remove mbalmer@ from MAINTAINER per his request.
2005-12-07 10:51:40 +00:00

21 lines
531 B
Plaintext

$OpenBSD: patch-xpdf_Stream_h,v 1.1 2005/12/07 10:51:40 bernd Exp $
--- xpdf/Stream.h.orig Mon May 17 21:37:57 2004
+++ xpdf/Stream.h Tue Dec 6 22:42:40 2005
@@ -233,6 +233,8 @@ public:
~StreamPredictor();
+ GBool isOk() { return ok; }
+
int lookChar();
int getChar();
@@ -250,6 +252,7 @@ private:
int rowBytes; // bytes per line
Guchar *predLine; // line buffer
int predIdx; // current index in predLine
+ GBool ok;
};
//------------------------------------------------------------------------