Skip to content

Fix: DEREF_OF_NULL.RET.LIB in db_ido_mysql/idomysqlconnection.cpp - #11076

Open
Ti-Mis wants to merge 1 commit into
Icinga:masterfrom
Ti-Mis:FixDoN-idomysqlconnection.cpp
Open

Ti-Mis wants to merge 1 commit into
Icinga:masterfrom
Ti-Mis:FixDoN-idomysqlconnection.cpp

Conversation

@Ti-Mis

@Ti-Mis Ti-Mis commented Oct 4, 2026

Copy link
Copy Markdown

Fix: DEREF_OF_NULL.RET.LIB

Problem:
The create_mysql_shim function pointer returned by GetSymbolAddress() may be NULL when the symbol cannot be found in the loaded MySQL shim library. The pointer is called without checking its value, which may result in a null function pointer dereference and process termination.

Solution: Check the create_mysql_shim function pointer before calling it and throw an exception if the symbol is not available.

Signed-off-by: t.mishin@fobos-nt.ru
Signed-off-by: bogdanb@altlinux.org

Fix: DEREF_OF_NULL.RET.LIB

Problem:
The create_mysql_shim function pointer returned by GetSymbolAddress() may be NULL when the symbol cannot be found in the loaded MySQL shim library. The pointer is called without checking its value, which may result in a null function pointer dereference and process termination.

Solution: Check the create_mysql_shim function pointer before calling it and throw an exception if the symbol is not available.

Signed-off-by: t.mishin@fobos-nt.ru
Signed-off-by: bogdanb@altlinux.org
@cla-bot

cla-bot Bot commented Oct 4, 2026

Copy link
Copy Markdown

Thank you for your pull request. Before we can look at it, you'll need to sign a Contributor License Agreement (CLA).

Please follow instructions at https://icinga.com/company/contributor-agreement to sign the CLA.

After that, please reply here with a comment and we'll verify.

Contributors that have not signed yet: @Ti-Mis

Details
  • If you've already signed a CLA, it's possible we don't have your GitHub username or you're using a different email address. Please contact us if you think this is the case.

  • If you signed the CLA as a corporation, your GitHub username may not have been submitted to us. Please reach out to the responsible person in your organization.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant