-
Notifications
You must be signed in to change notification settings - Fork 164
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
Fix: heap-use-after-free reported by Address Sanitizer. #474
Conversation
Fix: heap-use-after-free reported by Address Sanitizer:
Sorry, this patch does not make much sense to me. The code was using |
The issue could be the call to |
Some information was lost when creating this pull request from my private repo: Fix: heap-use-after-free reported by Address Sanitizer:
Memory freed (look for net.c:752):
This heap-use-after-free causes freetds to segfault when the connection to a MS SQLServer is teared down:
|
And yes, removing |
Fixed. New 1.3.16 version will be packaged automatically tomorrow. I also updated my settings to catch this type of errors (silly mistake). |
This fix prevents freetds to segfault when connection is lost to a SQLServer instance.