1
0
mirror of https://github.com/mariadb-corporation/mariadb-connector-c.git synced 2025-08-01 06:27:04 +03:00

CONC-711: Ubsan and ASAN fixes

- fixed write functions in my_auth.c
- fixed misalignment error when obtaining data via
  option MARIADB_OPT_USERDATA (mysql_get_optionv).
This commit is contained in:
Georg Richter
2024-12-09 19:28:10 +01:00
parent 98ae464bf9
commit 554893c269
2 changed files with 6 additions and 6 deletions

View File

@ -3488,7 +3488,7 @@ mysql_get_optionv(MYSQL *mysql, enum mysql_option option, void *arg, ...)
(uint)strlen((char *)key))))
{
p+= strlen(key) + 1;
*((void **)data)= *((void **)p);
memcpy(data, p, sizeof(void *));
break;
}
if (data)