You've already forked mariadb-connector-c
mirror of
https://github.com/mariadb-corporation/mariadb-connector-c.git
synced 2025-08-07 02:42:49 +03:00
Fixed UBSan Error
Kudos to Alexey Milovidov for providing this short patch.
This commit is contained in:
@@ -1442,7 +1442,7 @@ MYSQL *mthd_my_real_connect(MYSQL *mysql, const char *host, const char *user,
|
|||||||
{
|
{
|
||||||
mysql->server_language= uint1korr(end + 2);
|
mysql->server_language= uint1korr(end + 2);
|
||||||
mysql->server_status= uint2korr(end + 3);
|
mysql->server_status= uint2korr(end + 3);
|
||||||
mysql->server_capabilities|= (unsigned int)(uint2korr(end + 5) << 16);
|
mysql->server_capabilities|= (unsigned int)(uint2korr(end + 5)) << 16;
|
||||||
pkt_scramble_len= uint1korr(end + 7);
|
pkt_scramble_len= uint1korr(end + 7);
|
||||||
|
|
||||||
/* check if MariaD2B specific capabilities are available */
|
/* check if MariaD2B specific capabilities are available */
|
||||||
|
Reference in New Issue
Block a user