From: | Heikki Linnakangas <hlinnaka(at)iki(dot)fi> |
---|---|
To: | Andrus <kobruleht2(at)hot(dot)ee>, pgsql-odbc(at)postgresql(dot)org |
Subject: | Re: How to fix buffer overrun in Windows x32 |
Date: | 2015-09-22 07:31:36 |
Message-ID: | 560103D8.2090603@iki.fi |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-odbc |
On 09/18/2015 10:28 AM, Andrus wrote:
> Application crashes latest in 32-bit postgresql odbc driver (03.3.0400) in Windows 7 x64.
> After crash Visual Studio 2015 Community Edition debugger is invoked.
>
> It shows stack trace:
>
>> psqlodbc35w.dll!__crt_debugger_hook() Unknown
> psqlodbc35w.dll!__report_gsfailure() Line 315 + 0x7 bytes C
> psqlodbc35w.dll!SC_create_errorinfo(const StatementClass_ * self) Line 1423 + 0xa bytes C
> psqlodbc35w.dll!PGAPI_StmtError(void * hstmt, short RecNumber, unsigned char * szSqlState, long * pfNativeError, unsigned char * szErrorMsg, short cbErrorMsgMax, short * pcbErrorMsg, unsigned short flag) Line 1612 C
> psqlodbc35w.dll!PGAPI_GetDiagField(short HandleType, void * Handle, short RecNumber, short DiagIdentifier, void * DiagInfoPtr, short BufferLength, short * StringLengthPtr) Line 280 C
> psqlodbc35w.dll!SQLGetDiagFieldW(short fHandleType, void * handle, short iRecord, short fDiagField, void * rgbDiagInfo, short cbDiagInfoMax, short * pcbDiagInfo) Line 374 + 0x16 bytes C
> odbc32(dot)dll!_VFreeErrors(at)4() + 0x401f bytes
> odbc32(dot)dll!_SearchStatusCode(at)8() + 0x25 bytes
> odbc32(dot)dll!_IsStmtPositioned(at)4() + 0x14 bytes
> odbc32(dot)dll!_SQLExecute(at)4() - 0xfd3e bytes
> odbc32(dot)dll!_SQLExecDirect(at)12() + 0x77 bytes
> vfp9r.dll!0c3904c6()
> ...
Can you create a little test program to reproduce that? That would be
best. If that's not possible, please enable the Debug option for the
datasource, and send over the log.
- Heikki
From | Date | Subject | |
---|---|---|---|
Next Message | Heikki Linnakangas | 2015-09-22 07:55:02 | Re: [BUGS] There is a case in which psqlodbc-09.03.0400 returns unterminated strings on Windows. |
Previous Message | Andrus | 2015-09-19 07:48:51 | Re: How to fix buffer overrun in Windows x32 |