From 6f06cef02b062f240806cad555275c54fd68eba6 Mon Sep 17 00:00:00 2001 From: Michael Widenius Date: Tue, 13 Mar 2012 16:38:43 +0200 Subject: Fixed bug lp:917689 "Archive table corruption crashing MariaDB signal 11" Added 'from_end' as extra parameter to Field::unpack() to detect wrong from data. Change ha_archive::unpack_row() to detect wrong field lengths. Replication code changed to detect wrong field information in events. mysql-test/r/archive.result: dded test case for lp:917689 sql/field.cc: Added 'from_end' as extra parameter to Field::unpack() to detect wrong from data. Removed not used 'unpack_key' functions. sql/field.h: Added 'from_end' as extra parameter to Field::unpack() to detect wrong from data. Removed not used 'unpack_key' functions. Removed some not needed unpack() functions. sql/filesort.cc: Added buffer end parameter to unpack_addon_fields() sql/log_event.h: Added end of buffer argument to unpack_row() sql/log_event_old.cc: Added end of buffer argument to unpack_row() sql/log_event_old.h: Added end of buffer argument to unpack_row() sql/records.cc: Added buffer end parameter to unpack_addon_fields() sql/rpl_record.cc: Added end of buffer argument to unpack_row() Added detection of wrong field information in events sql/rpl_record.h: Added end of buffer argument to unpack_row() sql/rpl_record_old.cc: Added end of buffer argument to unpack_row() Added detection of wrong field information in events sql/rpl_record_old.h: Added end of buffer argument to unpack_row() sql/table.h: Added buffer end parameter to unpack() storage/archive/ha_archive.cc: Change ha_archive::unpack_row() to detect wrong field lengths. This fixes lp:917689 --- mysql-test/std_data/t917689.ARZ | Bin 0 -> 8687 bytes 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 mysql-test/std_data/t917689.ARZ (limited to 'mysql-test/std_data') diff --git a/mysql-test/std_data/t917689.ARZ b/mysql-test/std_data/t917689.ARZ new file mode 100644 index 00000000000..4770ca0c257 Binary files /dev/null and b/mysql-test/std_data/t917689.ARZ differ -- cgit v1.2.1