[
https://issues.apache.org/jira/browse/TRAFODION-1438?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14655130#comment-14655130
]
ASF GitHub Bot commented on TRAFODION-1438:
-------------------------------------------
GitHub user ryzuo opened a pull request:
https://github.com/apache/incubator-trafodion/pull/43
[TRAFODION-1438] Fixing Win ODBC crashes with long cert file name
length(over 30 bytes)
Change the driver to determine the length of buffer for certificate
file name at runtime, and fill the name with secured strcpy
version(strcpy_s)
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/ryzuo/incubator-trafodion jira1438
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/incubator-trafodion/pull/43.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #43
----
commit 8b289c767b88ea5ba5efb50af186a0177c857362
Author: RuoYu Zuo <[email protected]>
Date: 2015-07-20T04:16:30Z
Merge branch 'master' of https://github.com/apache/incubator-trafodion
commit c4b5beedb12e7334a1343e64099f48903136f81e
Author: RuoYu Zuo <[email protected]>
Date: 2015-07-28T03:46:09Z
Merge branch 'master' of https://github.com/apache/incubator-trafodion
commit ff2f4d3f40f5eaf4f78077c8ebc6d6524ec04783
Author: RuoYu Zuo <[email protected]>
Date: 2015-08-05T09:14:28Z
Merge branch 'master' of https://github.com/apache/incubator-trafodion
commit 1bb92f0c9b9c42eed30bfa0b83054abedb5fa54a
Author: RuoYu Zuo <[email protected]>
Date: 2015-08-05T09:55:25Z
[JIRA 1438] Fixing Win ODBC crashes with long cert file name length
Change the driver to determine the length of buffer for certificate
file name at runtime, and fill the name with secured strcpy version.
----
> Windows ODBC Driver is not able to create certificate file with long name
> length (over 30 bytes).
> -------------------------------------------------------------------------------------------------
>
> Key: TRAFODION-1438
> URL: https://issues.apache.org/jira/browse/TRAFODION-1438
> Project: Apache Trafodion
> Issue Type: Bug
> Components: client-odbc-windows
> Affects Versions: 2.0-incubating
> Environment: Windows
> Reporter: RuoYu Zuo
> Priority: Critical
> Fix For: 2.0-incubating
>
>
> Windows ODBC driver stores the certificate file with the server name in its
> file name, when the server name is long, the driver is not able to handle.
> For now driver just uses 30 char* buffer to create the file name, thus when
> it copies a long server name into the file name, it crashes.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)