From a2d8eca5900790dcca44e1353a6cb444de91e148 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=B3zef=20Kucia?= Date: Sat, 10 Mar 2012 19:58:43 +0100 Subject: [PATCH] wpp: Reset lexer state after unexpected end of file. (cherry picked from commit 1d9bb50230edd3c8cfdeb6c763aaaf5655d24aa4) --- libs/wpp/ppl.l | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libs/wpp/ppl.l b/libs/wpp/ppl.l index 2718fd02ac7..8d979dc761a 100644 --- a/libs/wpp/ppl.l +++ b/libs/wpp/ppl.l @@ -774,7 +774,10 @@ void pp_writestring(const char *format, ...) if(!bep) { if(YY_START != INITIAL) + { ppy_error("Unexpected end of file during preprocessing"); + BEGIN(INITIAL); + } yyterminate(); } else if(bep->should_pop == 2) -- 2.11.4.GIT