Feedback
Did this article resolve your question/issue?

   

Article

SQL Server ODBC driver crash in SQLDescribeParam

Information

 
TitleSQL Server ODBC driver crash in SQLDescribeParam
URL NameSQL-Server-ODBC-driver-crash-in-SQLDescribeParam
Article Number000185126
EnvironmentProduct: Connect(64) for ODBC SQL Server Wire Protocol driver
Version: 07.15.0277
OS: All supported platforms
Database: SQL Server
Application: All supported applications
Question/Problem Description
After preparing a statement and executing many iterations of SQLDescribeParam/SQLBindParameter, a crash in SQLDescribeParam occurs.

Stack trace:
0x0900000000040d28 leftmost(??, ??) + 0x8
0x090000000053f838 _global_lock_common(??, ??, ??) + 0x4b8
0x090000000002baac malloc_common@AF104_87(??) + 0x4c
0x090000003291159c QeStringW::resize(unsigned long)() + 0x58
0x0900000032911078 QeStringW::concat(const unsigned char*,unsigned long)() + 0xb0
0x09000000328f5140 SswpStatement::parseExpression(const unsigned short*,unsigned long,QeScannerW&,QeTokenW&,int*,int*,int)() + 0x5fc
0x09000000328f61c4 SswpStatement::parseSelect(QeScannerW&,QeTokenW&,int,int*)() + 0x1f0
0x09000000328f8660 SswpStatement::doDescrParam(unsigned short,short*,unsigned long*,short*,short*)() + 0x1068
0x09000000329d14f8 BaseStatement::SQLDescribeParam(unsigned short,short*,unsigned long*,short*,short*)() + 0x19b8
Steps to Reproduce
Clarifying Information
Error Message
Defect NumberDefect 35954
Enhancement Number
Cause
The driver was not resetting an internal length parameter when freeing the associated object, and the parameter value kept increasing until it exceeded the heap.
Resolution
Fixed in hot fix 07.16.0284.
Refer to article Connect and Connect64 for ODBC hot fix download and install instructions for instructions on how to download and install the hot fix.
Workaround
Notes
Last Modified Date11/20/2020 7:24 AM
Files
Disclaimer The origins of the information on this site may be internal or external to Progress Software Corporation (“Progress”). Progress Software Corporation makes all reasonable efforts to verify this information. However, the information provided is for your information only. Progress Software Corporation makes no explicit or implied claims to the validity of this information.

Any sample code provided on this site is not supported under any Progress support program or service. The sample code is provided on an "AS IS" basis. Progress makes no warranties, express or implied, and disclaims all implied warranties including, without limitation, the implied warranties of merchantability or of fitness for a particular purpose. The entire risk arising out of the use or performance of the sample code is borne by the user. In no event shall Progress, its employees, or anyone else involved in the creation, production, or delivery of the code be liable for any damages whatsoever (including, without limitation, damages for loss of business profits, business interruption, loss of business information, or other pecuniary loss) arising out of the use of or inability to use the sample code, even if Progress has been advised of the possibility of such damages.