[unixODBC-support] buffer overrun in extract_diag_error_w

Yakovets, Aleksey aleksey.yakovets at jpmorgan.com
Mon Mar 3 22:20:56 GMT 2014

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

SQLERRORW/extract_sql_error_w  follow the same convention

Any help is greatly appreciated.

This email is confidential and subject to important disclaimers and conditions including on offers for the purchase or sale of securities, accuracy and completeness of information, viruses, confidentiality, legal privilege, and legal entity disclaimers, available at http://www.jpmorgan.com/pages/disclosures/email.  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.unixodbc.org/pipermail/unixodbc-support/attachments/20140303/a86bbac6/attachment.html>

More information about the unixODBC-support mailing list