diff options
author | Georgi Kodinov <Georgi.Kodinov@Oracle.com> | 2012-06-28 18:38:55 +0300 |
---|---|---|
committer | Georgi Kodinov <Georgi.Kodinov@Oracle.com> | 2012-06-28 18:38:55 +0300 |
commit | 428ff7f8a0b1abfbe34b617411da42ef4159ea7c (patch) | |
tree | ac775c6049caad12351f943d51ed977413345b5c /client/mysqlimport.c | |
parent | 435866976746d342847ad2a7a13be77cd77c556b (diff) | |
download | mariadb-git-428ff7f8a0b1abfbe34b617411da42ef4159ea7c.tar.gz |
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.
Diffstat (limited to 'client/mysqlimport.c')
0 files changed, 0 insertions, 0 deletions