mariadb/libmysql
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
..
.cvsignore Import changeset 2000-07-31 21:29:14 +02:00
acinclude.m4 Import changeset 2000-07-31 21:29:14 +02:00
client_settings.h Fix compile warnings. 2007-09-29 23:31:08 +04:00
CMakeLists.txt Updated/added copyright headers 2011-07-03 17:47:37 +02:00
conf_to_src.c A follow-up for Bug#58340 (Remove Server GPL EXCEPTIONS-CLIENT file) -- remove all 2010-11-24 12:53:39 +03:00
dll.c Merge from mysql-5.0-bugteam. 2010-11-24 13:07:37 +03:00
errmsg.c Merge from mysql-5.0-bugteam. 2010-11-24 13:07:37 +03:00
get_password.c Merge from mysql-5.0-bugteam. 2010-11-24 13:07:37 +03:00
libmysql.c Bug #13708485: malformed resultset packet crashes client 2012-06-28 18:38:55 +03:00
libmysql.def Post-merge fix for bug 41728: revert fix that was pushed in mistake to 5.1 and up. 2009-11-24 19:25:23 -02:00
libmysql.ver.in BUG#3074: Unversioned symbols in shared library 2006-01-17 18:51:08 +04:00
Makefile.am Updated/added copyright headers 2011-06-30 17:37:13 +02:00
Makefile.shared Updated/added copyright headers 2011-07-03 17:47:37 +02:00
manager.c Updated/added copyright headers 2011-06-30 17:37:13 +02:00