mirror of https://github.com/MariaDB/server
Browse Source
Starting with commitpull/1441/head373443903bwe would invoke memcmp() unconditionally, even if the length is zero. But, a call to memcmp() is undefined if any parameter is a null pointer, even if the length is zero. In the following tests, a null pointer is being passed to the comparison: vcol.vcol_keys_innodb gcol.gcol_keys_innodb main.func_group_innodb innodb.innodb_bug53592 cmp_data(): Keep WITH_UBSAN happy and avoid potential future bugs in optimized builds, like the one addressed by commitfc168c3a5e(MDEV-15587).
1 changed files with 1 additions and 2 deletions
Loading…
Reference in new issue