Bug #102871 | Unsafe usage of setlocale() in insert_params() | ||
---|---|---|---|
Submitted: | 9 Mar 2021 3:35 | Modified: | 9 Jun 2021 21:24 |
Reporter: | Seokjin Lee | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | Connector / ODBC | Severity: | S2 (Serious) |
Version: | 8.0.23 | OS: | Windows |
Assigned to: | CPU Architecture: | Any |
[9 Mar 2021 3:35]
Seokjin Lee
[16 Mar 2021 7:24]
Bogdan Degtyariov
Posted by developer: Patch is pushed into the source tree.
[16 Mar 2021 7:26]
Bogdan Degtyariov
Posted by developer: Unsafe locale handling is fixed.
[9 Jun 2021 21:24]
Philip Olson
Posted by developer: Fixed as of the upcoming MySQL Connector/ODBC 8.0.26 release, and here's the proposed changelog entry from the documentation team: Fixed insert_params() code to use the __LOCALE_SET and __LOCALE_RESTORE macros rather than setlocale directly. Thank you for the bug report.