diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2024-07-30 15:07:35 +0500 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2024-08-01 07:26:54 +0200 |
commit | 1c8a48ba766f30c9babc80db46e2cf24074486b8 (patch) | |
tree | 85f2a5c755141e01982f14c86374342d410f1180 /scripting/Library_protocolhandler.mk | |
parent | 6c413b1e75c98175bc2b498e8980150d9f69d13e (diff) |
Fix OTools::ThrowException
First, it used 5-character buffer for SQL state, where MS documentation
for SQLGetDiagRec specifies, that the buffer is for five-character code
plus terminating NULL. The declaration of the function in Windows Kit's
sqlucode.h uses decoration '_Out_writes_opt_(6)' for the parameter.
Next, SQLGetDiagRec may fail or return SQL_NO_DATA; and then, the data
in buffers will be undefiled.
Change-Id: Ia36555b4fe4f49c8803a25f8fc1cc1a3b6ac4ddc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/171238
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'scripting/Library_protocolhandler.mk')
0 files changed, 0 insertions, 0 deletions