[unixODBC-support] buffer overrun in extract_diag_error_w

Nick Gorham nick at lurcher.org
Tue Mar 4 08:09:06 GMT 2014


On 03/03/14 22:20, Yakovets, Aleksey wrote:
>
> Hi,
>
> I ran into buffer overrun problem when an error message is too long ( 
> longer than 1.5K - Vertica/ pyodbc/unix odbc2.3.1/RedHat stack)
>
> What is the msg1 buffer length  in SQLGETDIAGRECW() 
> /extract_diag_error_w -- is it in bytes or in characters?
>
> The code seems to be inconsistent with 
> http://support.microsoft.com/kb/243526/EN-US 
> <http://support.microsoft.com/kb/243526/EN-US>
>
> SQLERRORW/extract_sql_error_w  follow the same convention
>
> Any help is greatly appreciated.
>

Hi,

I will take a look at this, but could you check 2.3.3pre to make sure 
its not already fixed.

-- 
Nick
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.unixodbc.org/pipermail/unixodbc-support/attachments/20140304/a8d64759/attachment.html>


More information about the unixODBC-support mailing list