Details
-
Bug
-
Status: Closed (View Workflow)
-
Minor
-
Resolution: Fixed
-
3.1.18
-
None
Description
That could be possible if the attribute value is passed with length, and not with SQL_NTS and ANSI API is used(i.e. SQLSetConnectAttr and not SQLSetConnectAttrW) . Even if the string itself is NULL-terminated, but terminating NULL is not included into string length) on Windows DM maps the call to widechar function, and while transcoding string to unicode, it uses only passed number of characters, and transcoded string could end up not NULL-terminated(actually not always, but that is more like magic).
Since nobody ever hit it - it's probably minor.