pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Heikki Linnakangas <hlinnaka@iki.fi>
To: Andrus <kobruleht2@hot.ee>
To: pgsql-odbc@postgresql.org
Subject: Re: How to fix buffer overrun in Windows x32
Date: Tue, 22 Sep 2015 10:31:36 +0300
Message-ID: <560103D8.2090603@iki.fi> (raw)
In-Reply-To: <1B88854920C942948F943E26B452E3A4@dell2>
References: <1B88854920C942948F943E26B452E3A4@dell2>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-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.dll!_VFreeErrors@4()  + 0x401f bytes
>       odbc32.dll!_SearchStatusCode@8()  + 0x25 bytes
>       odbc32.dll!_IsStmtPositioned@4()  + 0x14 bytes
>       odbc32.dll!_SQLExecute@4()  - 0xfd3e bytes
>       odbc32.dll!_SQLExecDirect@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


-- 
Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-odbc



view thread (5+ messages)  latest in thread

Message-ID: <560103D8.2090603@iki.fi>
Permalink:  ../560103D8.2090603@iki.fi/
Also on:    postgresql.org/message-id/560103D8.2090603@iki.fi

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-odbc@postgresql.org
  Cc: hlinnaka@iki.fi, kobruleht2@hot.ee
  Subject: Re: How to fix buffer overrun in Windows x32
  In-Reply-To: <560103D8.2090603@iki.fi>
  References: <1B88854920C942948F943E26B452E3A4@dell2> <560103D8.2090603@iki.fi>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox