Demonstration of groff .psbb request handling code, for EPS and PDF input files
Révision | ba17929975711bbcf99496d01ec1d8c1b4a58afd (tree) |
---|---|
l'heure | 2017-10-11 20:46:02 |
Auteur | ![]() |
Commiter | Keith Marshall |
Avoid a potential PDFSCANOBJECT lexer overrun.
* psbblex.l: Do not allow the lexer to remain in...
(PDFOBJTYPE): ...this state, when object type is unrecognized, and...
[DEBUGGING]: ...log any unrecognized object type name.
@@ -359,6 +359,12 @@ static int pdf_trailer( void ) | ||
359 | 359 | <PDFOBJTYPE>{ |
360 | 360 | "/Catalog"/{PDFSEP} { yy_pop_state(); RETURN(PDFOBJREF); } |
361 | 361 | "/Page"s?/{PDFSEP} { yy_pop_state(); } |
362 | +"/"{PDFNAME}/{PDFSEP} { DEBUG_MSG(("%d: ignoring unknown object type '%s'\n" | |
363 | + "%d: fall back to state 'PDFIGNORE'\n", | |
364 | + YYSTATE, yytext, YYSTATE | |
365 | + )); | |
366 | + BEGIN PDFIGNORE; | |
367 | + } | |
362 | 368 | {SEP}+ |
363 | 369 | } |
364 | 370 |