• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Aucun tag

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Demonstration of groff .psbb request handling code, for EPS and PDF input files


Commit MetaInfo

Révisionba17929975711bbcf99496d01ec1d8c1b4a58afd (tree)
l'heure2017-10-11 20:46:02
AuteurKeith Marshall <keith@user...>
CommiterKeith Marshall

Message de Log

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.

Change Summary

Modification

--- a/psbblex.l
+++ b/psbblex.l
@@ -359,6 +359,12 @@ static int pdf_trailer( void )
359359 <PDFOBJTYPE>{
360360 "/Catalog"/{PDFSEP} { yy_pop_state(); RETURN(PDFOBJREF); }
361361 "/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+ }
362368 {SEP}+
363369 }
364370