[MDEV-4752] Segfault during parsing of illegal query Created: 2013-07-04 Updated: 2013-07-05 Resolved: 2013-07-05 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | 10.0.3, 5.5.31 |
| Fix Version/s: | 10.0.4, 5.5.32 |
| Type: | Bug | Priority: | Critical |
| Reporter: | Alex Light | Assignee: | Oleksandr Byelkin |
| Resolution: | Fixed | Votes: | 2 |
| Labels: | None | ||
| Environment: |
Linux 3.2.5-gg1236 #1 SMP Tue May 21 02:35:06 PDT 2013 x86_64 x86_64 x86_64 GNU/Linux |
||
| Attachments: |
|
| Description |
|
Any user of a mariadb server with the ability to 'USE' some database is able to cause a segfault on the server during command parsing. Steps to reproduce:
The only thing a user needs to be able to trigger this segfault is the ability to 'USE' some database. They need no other permissions. according to gdb the stack trace is
logs for a test run are attached.
|
| Comments |
| Comment by Arjen Lentz [ 2013-07-04 ] |
|
Confirmed as described, on 10.0.3 |
| Comment by Jean Weisbuch [ 2013-07-04 ] |
|
Also crash on MySQL5.5.31-0+wheezy1 amd64 but does not on 5.1.66-0+squeeze1 amd64. |
| Comment by Oleksandr Byelkin [ 2013-07-04 ] |
|
st_select_lex::nest_last_join trying to get table, but it absent due to invalid syntax... |
| Comment by Oleksandr Byelkin [ 2013-07-04 ] |
|
commited for review |
| Comment by Sergei Petrunia [ 2013-07-04 ] |
|
Patch approved |
| Comment by Oleksandr Byelkin [ 2013-07-04 ] |
|
pushed to 5.5 |