1
0
mirror of https://github.com/mariadb-corporation/mariadb-connector-c.git synced 2025-08-07 02:42:49 +03:00

- Fixed memory overrun in mysql_stmt_execute due to wrong length calculation.

- Fixed bug in mysql_stmt_next_result
- Fixed mysql_stmt_reset: multi result sets weren't flushed properly
- Fixed several test cases
This commit is contained in:
Georg Richter
2013-05-20 18:00:08 +02:00
parent f8e6248cc3
commit 30caf3c64b
5 changed files with 155 additions and 55 deletions

View File

@@ -4615,6 +4615,7 @@ static int test_long_data1(MYSQL *mysql)
FAIL_IF(!stmt, mysql_error(mysql));
rc= mysql_stmt_prepare(stmt, query, strlen(query));
check_stmt_rc(rc, stmt);
memset(bind, 0, sizeof(MYSQL_BIND));
bind[0].buffer_type= MYSQL_TYPE_STRING;
rc= mysql_stmt_bind_param(stmt, bind);
check_stmt_rc(rc, stmt);