Skip to content

Fix RT #97625 use-after-free in mysql_dr_error, and #86153 #26

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Aug 1, 2014

Conversation

rurban
Copy link
Contributor

@rurban rurban commented Jul 30, 2014

No description provided.

Reini Urban added 2 commits July 28, 2014 15:24
free imp_dbh->pmysql  in my_login matching the allocation.
In the success case, imp_dbh->pmysql is freed seperately
later in dbd_db_destroy().
This reverts the wrong leak-fix from RT #86153 and adds the
real fix for it.
@rurban
Copy link
Contributor Author

rurban commented Aug 1, 2014

See additional comments in https://rt.cpan.org/Ticket/Display.html?id=97625#txn-1393444

This my_login fix does not yet fix the same error with reconnects via mysql_auto_reconnect.
And the leak test is also not working in a system with wrong dbi connection settings. So it still leaks when the first connection fails.

CaptTofu added a commit that referenced this pull request Aug 1, 2014
Fix RT #97625 use-after-free in mysql_dr_error, and #86153
@CaptTofu CaptTofu merged commit a179896 into perl5-dbi:master Aug 1, 2014
@CaptTofu
Copy link
Member

CaptTofu commented Aug 1, 2014

Thank you!

@iHeadRu iHeadRu mentioned this pull request Mar 20, 2024
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.

2 participants