mariadb/storage
Sergey Vojtovich 85094f3cc1 BUG#47598 - MyISAM may write uninitialized data to disk
When MyISAM writes newly created index page it may be
initialized partially. In other words some bytes of
sensible data and uninitialized tail of the page may
go into index file.

Under certain rare circumstances these hunks of memory
may contain data that would be otherwise inaccessible
to user, like passwords or data from other tables.

Fixed by initializing memory for temporary MyISAM key
buffer to '\0'.

No test case for this fix as it is heavily covered by
existing tests.

storage/myisam/mi_open.c:
  When creating new MI_INFO object, initialize MI_INFO::buff.
  This is done to ensure that we never write uninitialized
  memory hunks to index file.
storage/myisam/mi_page.c:
  No need to silence memory error detector anymore,
  page buffer is always initialized.
storage/myisam/mi_write.c:
  Fixed invalid memory read of 2 bytes. new_right_length
  is length of data on a page, including first 2 bytes
  that store this length itself. pos + k_length is pure
  data excluding these 2 bytes containing length.
storage/myisam/rt_index.c:
  To avoid uninitialized data write, create new page
  on info->buff, instead of locally allocated buffer.
  
  Note: second key block on info->buff is used here,
  because first block is used by called functions.
storage/myisam/rt_split.c:
  To avoid uninitialized data write, create new page
  on info->buff, instead of locally allocated buffer.
2010-03-25 15:18:14 +04:00
..
archive BUG#48757 - missing .ARZ file causes server crash 2010-02-12 16:33:03 +04:00
blackhole Bug #40877: multi statement execution fails in 5.1.30 2009-10-16 13:29:42 +03:00
csv Bug#33717 INSERT...(default) fails for enum. Crashes CSV tables, loads spaces for MyISAM 2010-02-17 16:13:42 +04:00
example Bug #49829 Many "hides virtual function" warnings with 2010-03-14 17:01:45 +01:00
federated Bug #49829 Many "hides virtual function" warnings with 2010-03-14 17:01:45 +01:00
heap Merge from 5.0 2009-09-17 17:25:52 +02:00
ibmdb2i merging with mysql-5.1-bugteam 2009-12-11 17:27:12 +05:30
innobase Applying InnoDB snapshot, fixes BUG#50691 2010-02-26 13:04:24 +04:00
innodb_plugin Fix for BUG#49502 - CMake error compiling 5.1 on Windows 2009-12-14 13:42:26 +05:30
myisam BUG#47598 - MyISAM may write uninitialized data to disk 2010-03-25 15:18:14 +04:00
myisammrg Bug #49829 Many "hides virtual function" warnings with 2010-03-14 17:01:45 +01:00
ndb Bug #35250: readline check breaks when doing vpath build 2010-03-09 17:51:31 +02:00
Makefile.am Backport WL#3653 to 5.1 to enable bundled innodb plugin. 2009-06-10 10:59:49 +02:00
mysql_storage_engine.cmake Bug #47797 CMake, engine can't specify additional libraries to link with 2009-10-08 14:54:11 +02:00