Skip to content

MDEV-35717: UBSAN: runtime error: applying zero offset to null pointer in my_strnncoll_utf8mb3_general1400_as_ci#4910

Open
raghunandanbhat wants to merge 1 commit into11.8from
11.8-mdev-35717
Open

MDEV-35717: UBSAN: runtime error: applying zero offset to null pointer in my_strnncoll_utf8mb3_general1400_as_ci#4910
raghunandanbhat wants to merge 1 commit into11.8from
11.8-mdev-35717

Conversation

@raghunandanbhat
Copy link
Copy Markdown
Contributor

@raghunandanbhat raghunandanbhat commented Apr 7, 2026

fixes MDEV-35717

Problem:

UBSAN reports runtime errors in string comparision functions where pointer arithmetic is done without checking NULL.

  • runtime errors: applying zero offset to null pointer in my_strnncoll_utf8mb3_general1400_as_ci

Fix:

Check pointers are not NULL before doing pointer arithmetic.

…r 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:
  Check pointers are not NULL before doing pointer arithmetic.
@raghunandanbhat raghunandanbhat changed the title MDEV-35717: UBSAN: runtime errors: applying [zero|non-zero] offset to null pointer MDEV-35717: UBSAN: runtime error: applying zero offset to null pointer in my_strnncoll_utf8mb3_general1400_as_ci Apr 13, 2026
@raghunandanbhat raghunandanbhat marked this pull request as ready for review April 13, 2026 11:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

1 participant