--- poppler-0.52.0/poppler/Gfx.cc.orig 2017-01-16 13:36:58.000000000 -0800 +++ poppler-0.52.0/poppler/Gfx.cc 2018-01-02 17:10:46.554532450 -0800 @@ -5173,6 +5173,7 @@ if ( numArgs >= 2 ) { if (!args[1].isName()) { error(errSyntaxError, getPos(), "Unexpected MC Type: {0:d}", args[1].getType()); + goto bad_oc_type; } char* name1 = args[1].getName(); Object markedContent; @@ -5188,6 +5189,7 @@ } else { error(errSyntaxError, getPos(), "insufficient arguments for Marked Content"); } + bad_oc_type:; } else if (args[0].isName("Span") && numArgs == 2 && args[1].isDict()) { Object obj; if (args[1].dictLookup("ActualText", &obj)->isString()) {