Fix buffer overrun on non-terminated comment

Also made the behavior consistent when an incomplete comment is found.
This commit is contained in:
Markus Mäkelä
2019-01-18 09:58:55 +02:00
committed by Johan Wikman
parent 7f978f275f
commit 9542641dae
3 changed files with 21 additions and 1 deletions

View File

@ -9,3 +9,7 @@ SELECT ? /*! +? */;
SELECT ? /*!? +? */;
SELECT ? /*M! +? */;
SELECT ? /*M!? +? */;
SELECT ?
SELECT ?
SELECT ?
SELECT ?

View File

@ -9,3 +9,7 @@ SELECT 1 /*! +1 */;
SELECT 1 /*!50101 +1 */;
SELECT 2 /*M! +1 */;
SELECT 2 /*M!50101 +1 */;
SELECT 2 /*
SELECT 2 /*
SELECT 2 /*/
SELECT 2 /**/