Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 402862 Details for
Bug 548912
=dev-db/myodbc-5.2.7 - crash in case linked against mariadb 10.X
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch to fix myodbc crash
myodbc-mariadb-segfault2.patch (text/plain), 594 bytes, created by
Jaco Kroon
on 2015-05-08 13:37:15 UTC
(
hide
)
Description:
patch to fix myodbc crash
Filename:
MIME Type:
Creator:
Jaco Kroon
Created:
2015-05-08 13:37:15 UTC
Size:
594 bytes
patch
obsolete
>diff -Brau a/util/odbcinstw.c b/util/odbcinstw.c >--- a/util/odbcinstw.c 2014-04-23 21:54:40.000000000 +0200 >+++ b/util/odbcinstw.c 2015-05-08 15:29:09.400568356 +0200 >@@ -68,13 +68,7 @@ > > if (lpszRetBuffer && cbRetBuffer) > { >- ret= malloc(cbRetBuffer + 1); >- /* >- We cannot rely on getting correct results from the next call of >- SQLGetPrivateProfileString. So, taking precautions against unititialized >- values in the allocated buffer. >- */ >- memset(ret, 0, cbRetBuffer + 1); >+ ret= my_malloc(cbRetBuffer + 1, MYF(MY_ZEROFILL)); > } > else > ret= NULL;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 548912
: 402862