1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00
Files
mariadb/mysql-test/t
Jon Olav Hauglid c1b2d72900 Bug #57130 crash in Item_field::print during SHOW CREATE TABLE or VIEW
This crash could happen if SHOW CREATE VIEW indirectly failed to open a
view due to failures to open underlying tables (or functions). Several
such errors were hidden and converted to ER_VIEW_INVALID warnings to
prevent exposing details of underlying tables for which the user have
no privileges.

However, with the changes introduced by the patch for Bug#52044,
failing to open a view will cause opened tables, views and functions
to be closed. Since the errors causing these failures were converted
to warnings, SHOW CREATE VIEW would try to continue. This made it
possible to try to access memory that had been freed, causing a crash.

This patch fixes the problem by not closing opened tables, views and
functions in these cases. This allows SHOW CREATE VIEW to continue
and also prevents it from accessing freed memory.

Test case added to lock_sync.test.
2010-11-03 16:47:32 +01:00
..
2010-02-25 23:13:11 +04:00
2010-05-26 22:34:25 +08:00
2010-02-24 13:15:34 +04:00
2010-10-13 08:51:37 +04:00
2010-02-24 13:15:34 +04:00
2010-02-24 13:15:34 +04:00
2009-12-08 10:53:40 +03:00
2010-10-18 16:22:02 +04:00
2009-12-09 18:56:34 +03:00
2010-10-18 15:06:15 +04:00
2010-04-13 19:04:45 +04:00
2010-04-13 19:04:45 +04:00
2010-10-29 15:25:18 +03:00
2010-10-13 08:51:37 +04:00
2010-09-08 09:36:39 +02:00
2010-10-29 12:31:28 +04:00
2010-06-11 10:15:55 +02:00
2010-01-15 15:42:15 +04:00
2010-01-15 15:42:15 +04:00
2010-08-12 17:50:23 +04:00
2010-07-14 15:05:20 +03:00
2010-04-20 10:51:50 +02:00
2010-08-25 13:17:15 +05:00
2010-08-25 13:17:15 +05:00
2010-07-16 21:25:00 +03:00
2010-10-19 14:13:05 +02:00
2010-04-13 19:04:45 +04:00
2010-09-13 14:46:55 +02:00
2010-10-15 20:44:55 +05:00
2010-09-13 15:56:56 +02:00
2010-10-01 16:06:10 +02:00
2010-02-24 00:22:19 -07:00
2010-10-20 16:56:09 +02:00
2010-10-20 16:56:09 +02:00
2010-10-20 16:56:09 +02:00
2010-10-20 16:56:09 +02:00
2010-10-20 16:56:09 +02:00
2009-11-02 21:05:42 +01:00
2009-12-29 15:19:05 +03:00
2010-02-06 13:28:06 +03:00
2010-10-06 13:02:11 +03:00
2009-11-20 22:51:12 +03:00
2010-07-16 21:25:00 +03:00
2010-07-04 20:35:05 +01:00
2010-07-30 19:28:36 +04:00
2010-04-13 19:04:45 +04:00
2010-04-13 19:04:45 +04:00
2010-04-13 19:04:45 +04:00
2010-04-13 19:04:45 +04:00
2010-04-13 19:04:45 +04:00
2010-09-07 12:17:12 +02:00
2010-06-25 16:32:47 +03:00
2010-08-13 14:20:49 +03:00