File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 2424 * Portions Copyright (c) 1994, Regents of the University of California
2525 *
2626 * IDENTIFICATION
27- * $PostgreSQL: pgsql/src/backend/parser/scan.l,v 1.160 2009/09/25 20:51:37 petere Exp $
27+ * $PostgreSQL: pgsql/src/backend/parser/scan.l,v 1.161 2009/09/25 21:13:06 petere Exp $
2828 *
2929 *-------------------------------------------------------------------------
3030 */
@@ -1223,6 +1223,9 @@ litbuf_udeescape(unsigned char escape, base_yyscan_t yyscanner)
12231223 yyerror (" invalid Unicode surrogate pair" );
12241224 }
12251225 }
1226+ else if (is_utf16_surrogate_second (unicode))
1227+ yyerror (" invalid Unicode surrogate pair" );
1228+
12261229 if (is_utf16_surrogate_first (unicode))
12271230 pair_first = unicode;
12281231 else
@@ -1253,6 +1256,9 @@ litbuf_udeescape(unsigned char escape, base_yyscan_t yyscanner)
12531256 yyerror (" invalid Unicode surrogate pair" );
12541257 }
12551258 }
1259+ else if (is_utf16_surrogate_second (unicode))
1260+ yyerror (" invalid Unicode surrogate pair" );
1261+
12561262 if (is_utf16_surrogate_first (unicode))
12571263 pair_first = unicode;
12581264 else
You can’t perform that action at this time.
0 commit comments