[poppler] Branch 'poppler-0.10' - poppler/Gfx.cc

Carlos Garcia Campos carlosgc at kemper.freedesktop.org
Sun Nov 23 09:26:00 PST 2008


 poppler/Gfx.cc |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit e665309f4522af59a7a02c7726f9870257c1fd17
Author: Carlos Garcia Campos <carlosgc at gnome.org>
Date:   Sun Nov 23 18:20:14 2008 +0100

    Fix a crash when the second argument of opMarkPoint is not a dictionary
    
    According to the spec "If any of the values are indirect references to
    objects outside the content stream, the property list dictionary must
    instead be defined as a named resource.

diff --git a/poppler/Gfx.cc b/poppler/Gfx.cc
index 871feb3..20ec1bf 100644
--- a/poppler/Gfx.cc
+++ b/poppler/Gfx.cc
@@ -4254,7 +4254,7 @@ void Gfx::opMarkPoint(Object args[], int numArgs) {
     fflush(stdout);
   }
 
-  if(numArgs == 2) {
+  if(numArgs == 2 && args[1].isDict()) {
     out->markPoint(args[0].getName(),args[1].getDict());
   } else {
     out->markPoint(args[0].getName());


More information about the poppler mailing list