summaryrefslogtreecommitdiff
path: root/Makefile.am
diff options
context:
space:
mode:
authorunknown <evgen@moonbone.local>2007-08-14 17:28:51 +0400
committerunknown <evgen@moonbone.local>2007-08-14 17:28:51 +0400
commit76a59b0b91d3406d6a41c54172e9d33a1db89c36 (patch)
tree32bc0d58af9aa51dfc813bc4a8754b5e360483da /Makefile.am
parent2b9607c7c9b38e7b5ea3a225820ac007a6b0f257 (diff)
downloadmariadb-git-76a59b0b91d3406d6a41c54172e9d33a1db89c36.tar.gz
Bug#29948: Unchecked NULL pointer caused server crash.
The cli_read_binary_rows function is used to fetch data from the server after a prepared statement execution. It accepts a statement handler and gets the connection handler from it. But when the auto-reconnect option is set the connection handler is reset to NULL after reconnection because the prepared statement is lost and the handler became useless. This case wasn't checked in the cli_read_binary_rows function and caused server crash. Now the cli_read_binary_rows function checks the connection handler to be not NULL and returns an error if it is. tests/mysql_client_test.c: Added a test case for the bug#29948: Unchecked NULL pointer caused server crash. libmysql/libmysql.c: Bug#29948: Unchecked NULL pointer caused server crash. Now the cli_read_binary_rows function checks the connection handler to be not NULL and returns an error if it is.
Diffstat (limited to 'Makefile.am')
0 files changed, 0 insertions, 0 deletions