$NetBSD: patch-bb,v 1.5 2010/10/01 21:32:34 spz Exp $

security fixes for http://secunia.com/advisories/41596/
taken from http://cgit.freedesktop.org/poppler

- Avoid loops in Form::fieldLookup

--- poppler/Dict.h.orig	2010-10-01 05:53:53.000000000 +0000
+++ poppler/Dict.h
@@ -16,6 +16,7 @@
 // Copyright (C) 2005 Kristian Høgsberg <krh@redhat.com>
 // Copyright (C) 2006 Krzysztof Kowalczyk <kkowalczyk@gmail.com>
 // Copyright (C) 2007-2008 Julien Rebetez <julienr@svn.gnome.org>
+// Copyright (C) 2010 Albert Astals Cid <aacid@kde.org>
 //
 // To see a description of the changes please see the Changelog file that
 // came with your tarball or type make ChangeLog if you are building from git
@@ -84,6 +85,8 @@ public:
   // parsed.
   void setXRef(XRef *xrefA) { xref = xrefA; }
 
+  XRef *getXRef() { return xref; }
+
 private:
 
   XRef *xref;			// the xref table for this PDF file
