You've already forked mariadb-connector-c
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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user