Bug #110900 MySQL ODBC Connector crashes
Submitted: 3 May 2023 19:30 Modified: 4 May 2023 3:12
Reporter: Matthew Tormay Email Updates:
Status: Verified Impact on me:
None 
Category:Connector / ODBC Severity:S1 (Critical)
Version:8.0 OS:Windows (10.0.19044)
Assigned to: CPU Architecture:Any
Tags: Connector / ODBC

[3 May 2023 19:30] Matthew Tormay
Description:
When creating a MySQL Connector/ODBC Data Source Configuration in Windows ODBC Data Sources, attempting to open the Details > Character Set drop down crashes the app.

If the dialog was accessed from within another process, the parent process also crashes.

How to repeat:
On Win 10:
Install via mysql-connector-odbc-8.0.33-winx64.msi
Open ODBC Data Sources (x64)
Add ... [MySQL ODBC 8.0 Unicode Driver] > Name it > Finish
When the MySQL Connector/ODBC Data Source Configuration dialog is shown, hit the Details >> button and attempt to open the Character Set drop down menu

> Crash

Suggested fix:
https://github.com/mysql/mysql-connector-odbc/pull/11
[3 May 2023 19:32] Matthew Tormay
Note this only occurs when the rest of the fields are not filled out in the dialog
[4 May 2023 3:12] MySQL Verification Team
Hello Matthew,

Thank you for the report and feedback.
Verified as described on Win11 with C/ODBC 8.0.33.

regards,
Umesh
[20 Jul 2023 9:08] Bogdan Degtyariov
Posted by developer:
 
The patch for the problem is pushed into the source tree.

If the connection credentials are not entered or are wrong the GUI dialog will display an empty list of charsets.
[2 Aug 2023 22:45] Philip Olson
Posted by developer:
 
Fixed as of the upcoming MySQL Connector/ODBC 8.2.0 release, and here's the proposed changelog entry from the documentation team:

Selecting the Character Set dropdown under Details while creating a new
Data Source Configuration in the GUI would unexpectedly halt the
application if the credential fields were empty or invalid.

Thank you for the bug report.