Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZeI3i-0005BD-Bx for pgsql-odbc@arkaria.postgresql.org; Tue, 22 Sep 2015 07:32:14 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZeI3h-00081A-Q1 for pgsql-odbc@arkaria.postgresql.org; Tue, 22 Sep 2015 07:32:13 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZeI3K-0007cG-41 for pgsql-odbc@postgresql.org; Tue, 22 Sep 2015 07:31:50 +0000 Received: from mail-pa0-x22c.google.com ([2607:f8b0:400e:c03::22c]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1ZeI3B-0007iK-TE for pgsql-odbc@postgresql.org; Tue, 22 Sep 2015 07:31:48 +0000 Received: by pablk4 with SMTP id lk4so1756643pab.3 for ; Tue, 22 Sep 2015 00:31:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:message-id:date:from:user-agent:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=GbKXeBqCl0rN3OqEwGqbibWnGWO4YJDJC75Q7YXh8HQ=; b=rugW3QfaThDRHCxIF0FOxKCr/H/+YKY1y7Yoj1zI76JGP144mBHXaQeEekvqecuj9G OvxvApCE6vHSJteK9nL9hPc9yQFLqYOVWJWT2GibsFPikKgDlsxMDOvWhIW1TTk+Ro6L JniVonmCGtI4VlfHESVyYR9nMSu0+VWZght2pJrW4E4JonFszee+Yjw5gE1+hyKTbXin 3UuAymF8z0RaeM1bAXp/n2UaWO2HusRpHzCwvBMuaY0jytpMZVZQnpIRfHXIGugpeu7b Ji3lo0m3XByNSdu23SwEMWZm2n7i8aHE3cPfIJ6ZKDkAb83g6G+O7RsYgs5TFx2cdqdn /KWw== X-Received: by 10.66.194.138 with SMTP id hw10mr30220193pac.71.1442907100456; Tue, 22 Sep 2015 00:31:40 -0700 (PDT) Received: from [192.168.1.110] (dsl-hkibrasgw1-58c38f-82.dhcp.inet.fi. [88.195.143.82]) by smtp.gmail.com with ESMTPSA id gj10sm398867pbc.68.2015.09.22.00.31.38 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 22 Sep 2015 00:31:39 -0700 (PDT) Message-ID: <560103D8.2090603@iki.fi> Date: Tue, 22 Sep 2015 10:31:36 +0300 From: Heikki Linnakangas User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.8.0 MIME-Version: 1.0 To: Andrus , pgsql-odbc@postgresql.org Subject: Re: How to fix buffer overrun in Windows x32 References: <1B88854920C942948F943E26B452E3A4@dell2> In-Reply-To: <1B88854920C942948F943E26B452E3A4@dell2> Content-Type: text/plain; charset=windows-1257; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.4 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-odbc Precedence: bulk Sender: pgsql-odbc-owner@postgresql.org 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