1
0
mirror of https://github.com/MariaDB/server.git synced 2025-05-27 01:57:48 +03:00
unknown cc7a75e6fd Fixed bug#17726: Not checked empty list caused endless loop
When the Item_cond::fix_fields() function reduces cond tree, it in loop
scans it's own list and when it founds Item_cond with same function (AND
or OR) it does next things: 1) replaces that item with item's list. 2)
empties item's list. Due to this operation is done twice - for update and
for view, at the update phase cond's list of lower view is already empty.
Empty list returns ref to itself, thus making endless loop by replacing
list with itself, emptying, replacing again and so on. This results in
server hung up.

To the Item_cond::fix_fields() function added check that ensures that
list being replaced with isn't empty.


mysql-test/t/view.test:
  Added test for bug#17726: Not checked empty list caused endless loop
mysql-test/r/view.result:
  Added test for bug#17726: Not checked empty list caused endless loop
sql/item_cmpfunc.cc:
  Fixed bug#17726: Not checked empty list caused endless loop
  To the Item_cond::fix_fields() function added check that ensures that
  list being replaced with isn't empty.
2006-03-03 16:19:57 +03:00
..
2006-03-01 15:50:15 +04:00
2005-11-21 21:11:28 +04:00
2005-10-13 11:28:06 +02:00
2005-11-03 16:17:11 +04:00
2006-01-12 13:08:49 +04:00
2005-09-08 18:15:05 +01:00
2005-09-15 21:05:42 +02:00
2005-08-29 22:35:48 -05:00
2005-08-15 14:19:56 -07:00
2006-01-21 21:50:54 +04:00
2006-02-07 13:26:35 +01:00
2005-08-26 22:25:45 -07:00
2005-11-01 11:43:34 +04:00
2005-09-09 12:47:57 +02:00
2006-02-06 11:35:13 -08:00
2006-01-06 00:47:49 +02:00
2005-07-22 21:06:02 +05:00
2006-02-02 23:56:08 -08:00
2006-02-03 00:07:36 +03:00
2005-12-06 21:28:13 +01:00
2005-10-28 02:36:19 +03:00
2005-08-12 17:57:19 +03:00
2006-01-27 21:20:28 -08:00
2005-08-29 21:06:45 +02:00
2005-09-14 12:24:14 +03:00
2005-12-06 21:28:13 +01:00
2005-10-12 15:19:51 +02:00
2006-02-07 19:57:31 +01:00
2005-12-14 00:23:46 +02:00
2005-08-26 22:25:45 -07:00
2005-09-15 22:21:30 +04:00
2005-08-19 11:38:14 +03:00
2005-08-24 19:37:27 +03:00
2005-07-28 21:25:05 +03:00
2005-10-07 15:09:44 +05:00
2005-07-19 03:01:25 +04:00
2005-09-14 23:12:01 +03:00
2006-01-13 16:27:38 +03:00
2005-10-13 11:28:06 +02:00
2005-10-13 11:28:06 +02:00
2005-10-10 19:38:58 +02:00
2005-08-11 18:42:22 +01:00
2005-11-29 16:46:51 +04:00
2005-11-30 13:10:08 -08:00
2006-02-14 08:24:01 +04:00