Bug #35936 Garbage in syntax error message
| Submitted: | 9 Apr 2008 12:50 | Modified: | 29 May 2008 3:50 |
|---|---|---|---|
| Reporter: | Sven Sandberg | Email Updates: | |
| Status: | Closed | Impact on me: | |
| Category: | MySQL Server: Parser | Severity: | S2 (Serious) |
| Version: | 6.0 | OS: | Linux |
| Assigned to: | Marc ALFF | CPU Architecture: | Any |
| Tags: | bad memory address, corruption, parse error | ||
[9 Apr 2008 12:50]
Sven Sandberg
[9 Apr 2008 15:06]
Sveta Smirnova
Thank you for the report. Verified as described on Linux. On Mac and on Linux, but with other versions I get empty string instead of garbage.
[21 Apr 2008 23:37]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/45796 ChangeSet@1.2623, 2008-04-21 17:37:29-06:00, malff@lambda.hsd1.co.comcast.net. +4 -0 Bug#35936 (Garbage in syntax error message) Before this fix, the default initialization of Lex_input_stream::lookahead_token was using the value END_OF_INPUT to represent that no lookahead token has been parsed. This choice was unfortunate, since END_OF_INPUT is a real token value that can be returned by the lexer, which caused confusion when a query contains the following tokens: <WITH> <END_OF_INPUT> which in turn happens when a (malformed) query ends with <WITH>. Changed the value that represents "no token" to an out-of-bound token value, (-1), that can not be returned by the lexer.
[28 May 2008 10:01]
Bugs System
Pushed into 6.0.6-alpha
[29 May 2008 3:50]
Paul DuBois
Noted in 6.0.6 changelog. Some syntactically invalid statements could cause the server to return an error message containing garbage characters.
Portions of this website are copyright © 2001, 2002 The PHP Group
Page generated in 0.040 sec. using MySQL 8.4.7-u6-cloud
Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the
respective copyright holders.
It is not reviewed in advance
by Oracle and does not necessarily represent the opinion of
Oracle or any other party.