You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MDEV-35717: UBSAN: runtime error: applying zero offset to null pointer in my_strnncoll_utf8mb3_general1400_as_ci
Problem:
UBSAN reports runtime errors in string comparision functions where
pointer arithmetic is done without checking NULL.
Fix:
Defines a new function `streq_safe` as a replacement for `streq` that
resulted in UBSAN errors, capable of handling NULL pointers. Also
makes `is_infoschema_db` and `is_perfschema_db` use `streq_safe` for
comparision.
0 commit comments