possible buffer overrun bug in command line client
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Drizzle |
Fix Released
|
Low
|
Andrew Hutchings |
Bug Description
The following are from Domas. Note the bit "near 'r/*!40103" ... that r shouldn't be there. Looks like an off-by-one bug.
Also - we should document something like this as a good way to catalog things that we've removed.
flu:dr midom$ mysqldump --no-create-info --extended-insert=0 --skip-add-locks wikidb watchlist | drizzle -f wikidb
ERROR 1193 (HY000) at line 7: Unknown system variable 'CHARACTER_
ERROR 1193 (HY000) at line 7: Unknown system variable 'CHARACTER_
ERROR 1193 (HY000) at line 7: Unknown system variable 'COLLATION_
ERROR 1193 (HY000) at line 7: Unknown system variable 'NAMES'
ERROR 1298 (HY000) at line 7: Unknown or incorrect time zone: '+00:00'
ERROR 1193 (HY000) at line 7: Unknown system variable 'SQL_MODE'
ERROR 1064 (42000) at line 22: You have an error in your SQL syntax; check the manual that corresponds to your Drizzle server version for the right syntax to use near 'r/*!40103 SET TIME_ZONE=
ERROR 1193 (HY000) at line 22: Unknown system variable 'SQL_MODE'
ERROR 1193 (HY000) at line 22: Unknown system variable 'CHARACTER_
ERROR 1193 (HY000) at line 22: Unknown system variable 'CHARACTER_
ERROR 1193 (HY000) at line 22: Unknown system variable 'COLLATION_
flu:dr midom$ mysqldump --no-create-info --extended-insert=0 --skip-add-locks wikidb watchlist | egrep -v NOTHINGNOTHINGN
ERROR 1193 (HY000) at line 7: Unknown system variable 'CHARACTER_
ERROR 1193 (HY000) at line 7: Unknown system variable 'CHARACTER_
ERROR 1193 (HY000) at line 7: Unknown system variable 'COLLATION_
ERROR 1193 (HY000) at line 7: Unknown system variable 'NAMES'
ERROR 1298 (HY000) at line 7: Unknown or incorrect time zone: '+00:00'
ERROR 1193 (HY000) at line 7: Unknown system variable 'SQL_MODE'
ERROR 1298 (HY000) at line 22: Unknown or incorrect time zone: 'SYSTEM'
ERROR 1193 (HY000) at line 22: Unknown system variable 'SQL_MODE'
ERROR 1193 (HY000) at line 22: Unknown system variable 'CHARACTER_
ERROR 1193 (HY000) at line 22: Unknown system variable 'CHARACTER_
ERROR 1193 (HY000) at line 22: Unknown system variable 'COLLATION_
Changed in drizzle: | |
assignee: | Monty Taylor (mordred) → Andrew Hutchings (linuxjedi) |
I don't think this has to do with the command line client at all. I think this has only to do with the code that you changed, Monty, in sql_lex.cc which handles /*! comments in the parser, no?