mariadb/include
Georgi Kodinov 428ff7f8a0 Bug #13708485: malformed resultset packet crashes client
Several fixes :

* sql-common/client.c
Added a validity check of the fields metadata packet sent 
by the server.
Now libmysql will check if the length of the data sent by
the server matches what's expected by the protocol before
using the data.

* client/mysqltest.cc
Fixed the error handling code in mysqltest to avoid sending
new commands when the reading the result set failed (and 
there are unread data in the pipe).

* sql_common.h + libmysql/libmysql.c + sql-common/client.c
unpack_fields() now generates a proper error when it fails.
Added a new argument to this function to support the error 
generation.

* sql/protocol.cc
Added a debug trigger to cause the server to send a NULL
insted of the packet expected by the client for testing 
purposes.
2012-06-28 18:38:55 +03:00
..
mysql Updated/added copyright headers 2011-06-30 17:37:13 +02:00
.cvsignore
base64.h Merge mysql.com:/home/kent/bk/main/mysql-5.0 2006-12-23 20:20:40 +01:00
config-netware.h Updated/added copyright headers 2011-06-30 17:37:13 +02:00
config-win.h Updated/added copyright headers 2011-06-30 17:37:13 +02:00
decimal.h Updated/added copyright headers 2012-02-15 17:21:38 +01:00
errmsg.h Bug#27430 "Crash in subquery code when in PS and table DDL changed after 2008-05-20 20:36:26 +04:00
ft_global.h WL#3817: Simplify string / memory area types and make things more consistent (first part) 2007-05-10 12:59:39 +03:00
hash.h Updated/added copyright headers 2011-06-30 17:37:13 +02:00
heap.h Updated/added copyright headers 2012-02-15 17:13:47 +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 Updated/added copyright headers 2011-06-30 17:37:13 +02:00
m_ctype.h Updated/added copyright headers 2012-02-15 17:21:38 +01:00
m_string.h Updated/added copyright headers 2012-02-15 17:13:47 +01:00
Makefile.am BUG#12695969 2011-07-12 02:13:36 +01:00
my_aes.h my_strtoll10-x86.s: 2006-12-31 01:02:27 +01:00
my_alarm.h Updated/added copyright headers 2011-06-30 17:37:13 +02:00
my_alloc.h WL#3817: Simplify string / memory area types and make things more consistent (first part) 2007-05-10 12:59:39 +03: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#13635833: MULTIPLE CRASHES IN FOREIGN KEY CODE WITH CONCURRENT DDL/DML 2012-03-01 11:05:51 +05:30
my_bit.h Updated/added copyright headers 2011-07-03 17:47:37 +02:00
my_bitmap.h Updated/added copyright headers 2011-07-03 17:47:37 +02:00
my_compare.h Bug#11900714 REMOVE LGPL LICENSED FILES IN MYSQL 5.1 2011-03-28 10:47:30 +02:00
my_compiler.h Bug#58057: 5.1 libmysql/libmysql.c unused variable/compile failure 2010-11-10 19:14:47 -02:00
my_dbug.h Updated/added copyright headers 2011-06-30 17:37:13 +02:00
my_dir.h Many files: 2006-12-23 20:17:15 +01:00
my_getopt.h Bug#14238406 NEW COMPILATION WARNINGS WITH GCC 4.7 (-WERROR=NARROWING) 2012-06-29 13:25:57 +02:00
my_global.h Updated/added copyright headers 2011-07-03 17:47:37 +02:00
my_libwrap.h Many files: 2006-12-23 20:17:15 +01:00
my_list.h WL#3817: Simplify string / memory area types and make things more consistent (first part) 2007-05-10 12:59:39 +03: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 Merge mysql.com:/home/kent/bk/main/mysql-5.0 2006-12-23 20:20:40 +01:00
my_no_pthread.h Updated/added copyright headers 2011-06-30 17:37:13 +02:00
my_nosys.h WL#3817: Simplify string / memory area types and make things more consistent (first part) 2007-05-10 12:59:39 +03:00
my_pthread.h Updating header copyright/README in source for 2011 2011-01-25 15:42:40 +01:00
my_stacktrace.h Bug#11761576 54082: HANDLE_SEGFAULT MAKES USE OF UNSAFE FUNCTIONS 2011-11-30 15:39:29 +01:00
my_sys.h Updated/added copyright headers 2011-06-30 17:31:31 +02:00
my_time.h Updated/added copyright headers 2011-06-30 17:37:13 +02:00
my_tree.h WL#3817: Simplify string / memory area types and make things more consistent (first part) 2007-05-10 12:59:39 +03:00
my_trie.h WL#3817: Simplify string / memory area types and make things more consistent (first part) 2007-05-10 12:59:39 +03:00
my_uctype.h Many files: 2006-12-31 02:29:11 +01:00
my_user.h WL#3817: Simplify string / memory area types and make things more consistent (first part) 2007-05-10 12:59:39 +03:00
my_vle.h WL#3817: Simplify string / memory area types and make things more consistent (first part) 2007-05-10 12:59:39 +03:00
my_xml.h WL#3817: Simplify string / memory area types and make things more consistent (first part) 2007-05-10 12:59:39 +03:00
myisam.h Updated/added copyright headers 2011-07-03 17:47:37 +02:00
myisammrg.h Updated/added copyright headers 2011-06-30 17:37:13 +02:00
myisampack.h Many files: 2006-12-23 20:17:15 +01:00
mysql.h Updated/added copyright headers 2011-06-30 17:37:13 +02:00
mysql.h.pp Fixed bug #47485 - mysql_store_result returns a not NULL result set 2010-09-07 14:18:01 +07:00
mysql_com.h Updated/added copyright headers 2011-06-30 17:31:31 +02:00
mysql_embed.h Updated/added copyright headers 2011-06-30 17:37:13 +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 Updated/added copyright headers 2011-06-30 17:37:13 +02:00
queues.h Bug #31890 Partitions: ORDER BY DESC in InnoDB not working. 2007-11-14 22:20:31 +04:00
rijndael.h my_strtoll10-x86.s: 2006-12-31 01:02:27 +01:00
sha1.h Bug #56428: Replace copyright notice removed from SHA1 code (.h) 2010-10-05 17:05:37 +03:00
sql_common.h Bug #13708485: malformed resultset packet crashes client 2012-06-28 18:38:55 +03:00
sslopt-case.h Many files: 2006-12-23 20:17:15 +01:00
sslopt-longopts.h Updated/added copyright headers 2011-06-30 17:37:13 +02: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 fixes for build failures due to my yesterday's changeset forbidding 2008-02-19 18:45:11 +01:00
thr_lock.h Updated/added copyright headers 2011-06-30 17:37:13 +02:00
typelib.h Merge bk-internal.mysql.com:/home/bk/mysql-5.1-engines 2007-04-27 19:09:39 +02:00
violite.h BUG#13431369 - MAIN.VARIABLES-NOTEMBEDDED CRASHES THE SERVER SPORADICALLY ON WINDOWS 2012-02-17 19:02:17 +00:00
welcome_copyright_notice.h BUG#12695969: FIX OUTDATED COPYRIGHT NOTICES IN REPLACTION 2011-07-11 17:11:41 +01:00