mariadb/sql-common
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
..
client.c Bug #13708485: malformed resultset packet crashes client 2012-06-28 18:38:55 +03:00
Makefile.am my_strtoll10-x86.s: 2006-12-31 01:02:27 +01:00
my_time.c Updated/added copyright headers 2012-02-15 17:21:38 +01:00
my_user.c Updated/added copyright headers 2011-06-30 17:37:13 +02:00
pack.c Fixed a lot of compiler warnings and errors detected by Forte C++ on Solaris 2007-08-13 16:11:25 +03:00