$NetBSD: patch-be,v 1.4 2008/03/26 13:22:00 wiz Exp $ --- sql/sql_lex.cc.orig 2006-11-03 04:15:21.000000000 +0200 +++ sql/sql_lex.cc 2007-05-23 08:26:27.000000000 +0300 @@ -894,6 +894,8 @@ while (lex->ptr != lex->end_of_query && ((c=yyGet()) != '*' || yyPeek() != '/')) { + if (c == '\0') + return(ABORT_SYM); // NULLs illegal even in comments if (c == '\n') lex->yylineno++; }