mariadb/include
V Narayanan 336c810618 Bug#43572 Handle failures from hash_init
Failure to allocate memory for the hash->array element,
caused hash_init to return without initializing the other
members of the hash. Thus although the dynamic array
buffer may be allocated at a later point in the code, the
incompletely initialized hash caused fatal failures.

This patch moves the initialization of the other members
of the hash above the array allocation, so that the usage
of this hash will not result in fatal failures.

include/hash.h:
  Bug#43572 Handle failures from hash_init
  
  hash_inited is used to verify that the hash is
  valid. After the change induced by the current
  patch hash->array.buffer !=0 is not a valid check
  for this condition, since, the dynamic array can
  be allocated even at a later time. Bootstrap SQL
  script is setting some variables, which are
  actually not set due to this hash_inited issue.
  Thus we get empty grant tables.
  
  A better way to check if the hash is valid is
  to verify that hash->blength is greater than 0.
mysys/hash.c:
  Bug#43572 Handle failures from hash_init
  
  Move the initialization of the other members
  of the hash above the array allocation, so that
  the usage of this hash will not result in fatal
  failures.
2009-06-19 17:29:21 +05:30
..
.cvsignore Import changeset 2000-07-31 21:29:14 +02:00
base64.h Many files: 2006-12-23 20:17:15 +01:00
config-netware.h A few portability tweaks for Netware, SCO and QNX 2009-05-01 19:35:04 +02:00
config-os2.h Many files: 2006-12-23 20:17:15 +01:00
config-win.h Updates to build with community features enabled for community builds. 2009-05-20 23:04:34 +02:00
decimal.h Bug #27957 cast as decimal does not check overflow, also inconsistent with group, subselect 2007-05-09 17:27:14 +05:00
errmsg.h Many files: 2006-12-23 20:17:15 +01:00
ft_global.h Many files: 2006-12-23 20:17:15 +01:00
hash.h Bug#43572 Handle failures from hash_init 2009-06-19 17:29:21 +05:30
heap.h Many files: 2006-12-23 20:17:15 +01:00
help_end.h my_strtoll10-x86.s: 2006-12-31 01:02:27 +01:00
help_start.h my_strtoll10-x86.s: 2006-12-31 01:02:27 +01:00
keycache.h Backport of the keycache changes from http://lists.mysql.com/commits/31517 to make keycache 64-bit safe in 5.0. This is for bug #5731. 2007-08-29 20:45:04 +04:00
m_ctype.h Bug#37575 UCASE fails on monthname 2008-12-23 18:08:04 +04:00
m_string.h Bug#31177: Server variables can't be set to their current values 2007-11-30 06:32:04 +01:00
Makefile.am Generate "config.h" directly into the "include" directory, later copied 2007-07-30 21:09:45 +02:00
my_aes.h my_strtoll10-x86.s: 2006-12-31 01:02:27 +01:00
my_alarm.h Many files: 2006-12-23 20:17:15 +01:00
my_alloc.h Many files: 2006-12-23 20:17:15 +01:00
my_attribute.h Bug#25118 ATTRIBUTE_FORMAT_FPTR undeclared in m_ctype.h 2007-04-12 00:43:25 +02:00
my_base.h Bug#39370: wrong output for error code 153 2009-02-24 12:05:37 +02:00
my_bitmap.h Many files: 2006-12-23 20:17:15 +01:00
my_dbug.h Bug#26243 mysql command line crash after control-c 2008-03-28 14:02:27 -04:00
my_dir.h Many files: 2006-12-23 20:17:15 +01:00
my_getopt.h Bug#31177: Server variables can't be set to their current values 2007-11-30 06:32:04 +01:00
my_global.h MySQL 5.0 backport of Chad Miller's patch for Bug#34309: 2009-05-30 12:38:36 -03:00
my_handler.h my_strtoll10-x86.s: 2006-12-31 01:02:27 +01:00
my_libwrap.h Many files: 2006-12-23 20:17:15 +01:00
my_list.h Many files: 2006-12-23 20:17:15 +01:00
my_md5.h Bug #42434: license of mysys MD5 implementation is not GPL-compatible 2009-03-09 20:57:03 +02:00
my_net.h Many files: 2006-12-23 20:17:15 +01:00
my_no_pthread.h Many files: 2006-12-23 20:17:15 +01:00
my_nosys.h Many files: 2006-12-23 20:17:15 +01:00
my_pthread.h Bug#30960 processlist state '*** DEAD ***' on recent 5.0.48 windows builds 2008-03-19 15:01:03 -03:00
my_sys.h Merge 5.0.80 release and 5.0 community. Version left at 5.0.80. 2009-04-14 13:20:13 -04:00
my_time.h Bug#26294: library name conflict between MySQL 4.x, 5.0 and Qt 3.3 2008-04-03 11:32:00 -04:00
my_tree.h Many files: 2006-12-23 20:17:15 +01:00
my_user.h Many files: 2006-12-23 20:17:15 +01:00
my_xml.h Many files: 2006-12-23 20:17:15 +01:00
myisam.h Bug#32167 another privilege bypass with DATA/INDEX DIRECTORY. 2008-08-22 17:31:53 +05:00
myisammrg.h Many files: 2006-12-23 20:17:15 +01:00
myisampack.h Many files: 2006-12-23 20:17:15 +01:00
mysql.h Bug#29592 SQL Injection issue 2007-11-26 14:09:37 -02:00
mysql_com.h Merge mysql.com:/home/hf/work/mrg/my41-mrg 2007-11-30 22:29:34 +04:00
mysql_embed.h Many files: 2006-12-23 20:17:15 +01:00
mysql_h.ic Bug#29592 SQL Injection issue 2007-11-26 14:09:37 -02:00
mysql_time.h my_strtoll10-x86.s: 2006-12-31 01:02:27 +01:00
mysql_version.h.in Bug #15327: configure: --with-tcp-port option being partially ignored 2007-09-13 16:19:46 +02:00
mysys_err.h Many files: 2006-12-23 20:17:15 +01:00
queues.h Many files: 2006-12-23 20:17:15 +01:00
raid.h Merge ua141d10.elisa.omakaista.fi:/home/my/bk/mysql-4.1-main 2007-03-28 20:46:42 +03:00
rijndael.h my_strtoll10-x86.s: 2006-12-31 01:02:27 +01:00
sha1.h my_strtoll10-x86.s: 2006-12-31 01:02:27 +01:00
sql_common.h Bug #25097 mysql_server_init fails silently if no errmsg.sys is present. 2008-02-27 12:42:43 +04:00
sslopt-case.h Many files: 2006-12-23 20:17:15 +01:00
sslopt-longopts.h Many files: 2006-12-23 20:17:15 +01:00
sslopt-vars.h Many files: 2006-12-23 20:17:15 +01:00
t_ctype.h Many files: 2006-12-23 20:17:15 +01:00
thr_alarm.h Merge chilla.local:/home/mydev/mysql-4.1-axmrg 2007-02-02 10:03:22 +01:00
thr_lock.h Bug #26162: Trigger DML ignores low_priority_updates setting 2007-06-03 09:40:00 +03:00
typelib.h Merge siva.hindu.god:/usr/home/tim/m/bk/g50 2006-12-26 22:28:28 -07:00
violite.h follow-up fix 2007-06-15 11:28:15 +02:00