Details
-
Bug
-
Status: Closed (View Workflow)
-
Critical
-
Resolution: Fixed
-
3.1.10
-
None
Description
Passing an unsupported client capability flag in mysql_real_connect might lead to unexpected behavior and crashes.
#define CLIENT_DEPRECATE_EOF (1ULL << 24)
|
|
unsigned long client_flags = CLIENT_REMEMBER_OPTIONS | CLIENT_DEPRECATE_EOF; |
|
if (mysql_real_connect(mysql, host, user, password, db, 0, NULL, client_flags)) |
{
|
printf("error: %s\n", mysql_error(mysql)); |
}
|