summaryrefslogtreecommitdiff
path: root/databases/mysql4-server/patches/patch-be
blob: eee1b3d07e7592e729abb666640bf98f851bcd76 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
$NetBSD: patch-be,v 1.2 2007/05/23 08:11:51 martti Exp $

--- sql/sql_lex.cc.orig	2006-11-03 04:15:21.000000000 +0200
+++ sql/sql_lex.cc	2007-05-23 08:57:51.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++;
       }