From 7db54dc23d77f6f1949d7a3fc9c5323c72f93d8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fredrik=20H=C3=BCbinette=20=28Hubbe=29?= <hubbe@hubbe.net> Date: Tue, 2 Oct 2001 02:29:48 -0700 Subject: [PATCH] fix for [bug 1869], lexer now complains when it finds a nul character Rev: src/lexer.h:1.35 --- src/lexer.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/lexer.h b/src/lexer.h index 9680e6fbf8..39dd372196 100644 --- a/src/lexer.h +++ b/src/lexer.h @@ -1,5 +1,5 @@ /* - * $Id: lexer.h,v 1.34 2001/09/24 14:37:34 grubba Exp $ + * $Id: lexer.h,v 1.35 2001/10/02 09:29:48 hubbe Exp $ * * Lexical analyzer template. * Based on lex.c 1.62 @@ -483,6 +483,9 @@ static int low_yylex(YYSTYPE *yylval) { case 0: lex.pos -= (1<<SHIFT); + if(lex.end != lex.pos) + my_yyerror("Illegal character (NUL)"); + #ifdef TOK_LEX_EOF return TOK_LEX_EOF; #else /* !TOK_LEX_EOF */ -- GitLab