1
0
mirror of https://github.com/mariadb-corporation/mariadb-connector-c.git synced 2025-08-05 15:55:58 +03:00

Fixed 2 buffer overflows in unittests

This commit is contained in:
Georg Richter
2018-01-26 13:04:37 +01:00
parent 9ee186141e
commit 058fc080b4
2 changed files with 1 additions and 5 deletions

View File

@@ -242,7 +242,7 @@ static int test_parse_error_and_bad_length(MYSQL *mysql)
rc= mysql_query(mysql, "SHOW DATABAAAA");
FAIL_UNLESS(rc, "Error expected");
rc= mysql_real_query(mysql, "SHOW DATABASES", 100);
rc= mysql_real_query(mysql, "SHOW DATABASES\0AAA", 18);
FAIL_UNLESS(rc, "Error expected");
stmt= mysql_stmt_init(mysql);