mariadb/include
Nisha Gopalakrishnan 56cf9d2db4 BUG#18080920: CRASH; MY_REALLOC_STR DEREFERENCES NEGATIVE VALUE
INTO CLIENT_ERRORS ARRAY
              
Analysis:
--------
The client may crash while executing a statement due to
the missing mapping of the server error to it's equivalent
client error.

When trying to reallocate memory for the packet buffer, if
the system is out of memory or the packet buffer is large,
the server errors 'ER_OUT_OF_RESOURCES' or 'ER_PACKET_TOO_LARGE'
is returned respectively. The client error number calculated is
negative and when trying to dereference the array of client 
error messages with the calculated error number, the client
crashes.

Fix:
----
Map the server error returned to it's equivalent client error
prior to dereferencing the array of client error messages.

Note: Test case is not added since it is difficult to simulate
the error condition.
2014-04-24 09:30:21 +05:30
..
atomic
mysql Updated/added copyright headers 2014-01-06 10:52:35 +05:30
base64.h Fix for Bug 16395495 - OLD FSF ADDRESS IN GPL HEADER 2013-03-19 15:53:48 +01:00
CMakeLists.txt
decimal.h
errmsg.h BUG#18080920: CRASH; MY_REALLOC_STR DEREFERENCES NEGATIVE VALUE 2014-04-24 09:30:21 +05:30
ft_global.h Updated/added copyright headers 2013-02-26 06:35:17 +01:00
hash.h
heap.h
keycache.h Updated/added copyright headers. 2013-02-25 15:26:00 +01:00
lf.h
m_ctype.h Bug #17760379 COLLATIONS WITH CONTRACTIONS BUFFER-OVERFLOW THEMSELVES IN THE FOOT 2014-01-11 14:48:29 +05:30
m_string.h Updated/added copyright headers 2013-02-26 06:35:17 +01:00
my_aes.h Updated/added copyright headers. 2013-02-25 15:26:00 +01:00
my_alarm.h
my_alloc.h Updated/added copyright headers. 2013-02-25 15:26:00 +01:00
my_atomic.h
my_attribute.h Updated/added copyright headers. 2013-02-25 15:26:00 +01:00
my_base.h Updated/added copyright headers. 2013-02-25 15:26:00 +01:00
my_bit.h
my_bitmap.h Fix for Bug 16395495 - OLD FSF ADDRESS IN GPL HEADER 2013-03-19 15:53:48 +01:00
my_check_opt.h Bug#17513737 INTRODUCE CHECK TABLE...QUICK 2013-10-17 18:09:04 +05:30
my_compare.h Fix for Bug 16395495 - OLD FSF ADDRESS IN GPL HEADER 2013-03-19 15:53:48 +01:00
my_compiler.h Updated/added copyright headers. 2013-02-25 15:26:00 +01:00
my_dbug.h
my_dir.h Updated/added copyright headers. 2013-02-25 15:26:00 +01:00
my_getopt.h Updated/added copyright headers 2014-01-06 10:52:35 +05:30
my_global.h Bug#16729109: FIX COMPILATION WARNINGS WITH GCC 4.8 2013-06-14 10:52:23 +02:00
my_libwrap.h Updated/added copyright headers. 2013-02-25 15:26:00 +01:00
my_list.h Updated/added copyright headers. 2013-02-25 15:26:00 +01:00
my_md5.h Fix for Bug 16395495 - OLD FSF ADDRESS IN GPL HEADER 2013-03-19 15:53:48 +01:00
my_net.h Updated/added copyright headers 2014-01-06 10:52:35 +05:30
my_nosys.h Updated/added copyright headers. 2013-02-25 15:26:00 +01:00
my_pthread.h Bug#17702677 WRONG INSTRUMENTATION INTERFACE FOR MYSQL_COND_TIMEDWAIT 2013-11-07 15:44:57 -06:00
my_rdtsc.h
my_stacktrace.h
my_sys.h Fix for Bug 16395495 - OLD FSF ADDRESS IN GPL HEADER 2013-03-19 15:53:48 +01:00
my_time.h
my_tree.h Updated/added copyright headers. 2013-02-25 15:26:00 +01:00
my_uctype.h
my_user.h Fix for Bug 16395495 - OLD FSF ADDRESS IN GPL HEADER 2013-03-19 15:53:48 +01:00
my_xml.h Fix for Bug 16395495 - OLD FSF ADDRESS IN GPL HEADER 2013-03-19 15:53:48 +01:00
myisam.h Updated/added copyright headers 2014-01-06 10:52:35 +05:30
myisammrg.h
myisampack.h Updated/added copyright headers 2013-02-26 06:35:17 +01:00
mysql.h Updated/added copyright headers 2013-02-26 06:35:17 +01:00
mysql.h.pp
mysql_com.h
mysql_embed.h
mysql_time.h Fix for Bug 16395495 - OLD FSF ADDRESS IN GPL HEADER 2013-03-19 15:53:48 +01:00
mysql_version.h.in Fixing the bug 18184414: WRONG COPYRIGHT TO FILE INCLUDE/MYSQL_VERSION.H.IN 2014-02-06 14:11:38 +05:30
mysys_err.h
password.h
probes_mysql.d.base
probes_mysql.h
probes_mysql_nodtrace.h
queues.h Updated/added copyright headers. 2013-02-25 15:26:00 +01:00
rijndael.h Updated/added copyright headers. 2013-02-25 15:26:00 +01:00
service_versions.h
sha1.h
sha2.h
sql_common.h
sslopt-case.h Updated/added copyright headers. 2013-02-25 15:26:00 +01:00
sslopt-longopts.h
sslopt-vars.h Updated/added copyright headers. 2013-02-25 15:26:00 +01:00
t_ctype.h Updated/added copyright header. Added line "use is subject to license terms" 2014-02-17 18:19:04 +05:30
thr_alarm.h Updated/added copyright headers. 2013-02-25 15:26:00 +01:00
thr_lock.h
typelib.h Fix for Bug 16395495 - OLD FSF ADDRESS IN GPL HEADER 2013-03-19 15:53:48 +01:00
violite.h Updated/added copyright headers. 2013-02-25 15:26:00 +01:00
welcome_copyright_notice.h updating the current copyright year which reflects in the MySQL welcome message. 2014-01-09 16:07:14 +05:30