mirror of
https://github.com/MariaDB/server.git
synced 2026-10-23 18:49:29 +03:00
Fix MSAN failure in mysqltest with --cursor-protocol after CC update
CONC-821 in Connector/C 3.3.21 no longer resets *length for string binds, so for NULL values the length array in append_stmt_result() stayed uninitialized. Zero-fill it on allocation.
This commit is contained in:
@@ -10845,7 +10845,7 @@ void append_stmt_result(DYNAMIC_STRING *ds, MYSQL_STMT *stmt,
|
||||
my_bind= (MYSQL_BIND*) my_malloc(PSI_NOT_INSTRUMENTED, num_fields * sizeof(MYSQL_BIND),
|
||||
MYF(MY_WME|MY_FAE|MY_ZEROFILL));
|
||||
length= (ulong*) my_malloc(PSI_NOT_INSTRUMENTED, num_fields * sizeof(ulong),
|
||||
MYF(MY_WME|MY_FAE));
|
||||
MYF(MY_WME|MY_FAE|MY_ZEROFILL));
|
||||
is_null= (my_bool*) my_malloc(PSI_NOT_INSTRUMENTED, num_fields * sizeof(my_bool),
|
||||
MYF(MY_WME|MY_FAE));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user