Skip to content

MDEV-39721: SIGSEGV in check_word|(extract_date_time|extract_oracle_date_time)#4917

Open
raghunandanbhat wants to merge 1 commit into12.3from
12.3-mdev-39721
Open

MDEV-39721: SIGSEGV in check_word|(extract_date_time|extract_oracle_date_time)#4917
raghunandanbhat wants to merge 1 commit into12.3from
12.3-mdev-39721

Conversation

@raghunandanbhat
Copy link
Copy Markdown
Contributor

@raghunandanbhat raghunandanbhat commented Apr 8, 2026

fixes MDEV-39721

Problem:

Date and time functions - STR_TO_DATE and TO_DATE (in Oracle mode) use check_word to check if a string token matches a valid locale-specific day or month name. Server crashed because of an un-initialized typelib member(type_lengths) for date locales which are not present in Oracle_date_locale (e.g: ar_DZ).

Fix:

Initialize type_lengths for all supported locales by iterating over my_locales array instead of Oracle_date_locale during server startup.

…cle_date_time`)

Problem:
  Date and time functions - `STR_TO_DATE` and `TO_DATE` (in Oracle mode)
  both use `check_word` to check if a string token matches a valid
  locale-specific day or month name. Server crashed because of an
  un-initialized typelib member(`type_lengths`) for date locales which
  are not present in `Oracle_date_locale` (e.g: `ar_DZ`).

Fix:
  Initialize `type_lengths` for all supported locales by iterating over
  `my_locales` array instead of `Oracle_date_locale` during server
  startup.
@raghunandanbhat raghunandanbhat marked this pull request as ready for review April 8, 2026 16:07
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