Tag: cws_src680_dba23b User: oj Date: 2007-07-03 06:09:35+0000 Modified: dba/connectivity/source/drivers/odbc/OTools.cxx
Log: #i79097# correct buffer overrun, applied patch File Changes: Directory: /dba/connectivity/source/drivers/odbc/ ================================================= File [changed]: OTools.cxx Url: http://dba.openoffice.org/source/browse/dba/connectivity/source/drivers/odbc/OTools.cxx?r1=1.29&r2=1.29.98.1 Delta lines: +4 -4 ------------------- --- OTools.cxx 2006-09-17 03:07:57+0000 1.29 +++ OTools.cxx 2007-07-03 06:09:33+0000 1.29.98.1 @@ -4,9 +4,9 @@ * * $RCSfile: OTools.cxx,v $ * - * $Revision: 1.29 $ + * $Revision: 1.29.98.1 $ * - * last change: $Author: obo $ $Date: 2006/09/17 03:07:57 $ + * last change: $Author: oj $ $Date: 2007/07/03 06:09:33 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -564,7 +564,7 @@ { sal_Unicode waCharArray[2048]; // read the unicode data - sal_Int32 nMaxLen = sizeof(waCharArray) - sizeof(sal_Unicode); + sal_Int32 nMaxLen = (sizeof(waCharArray) / sizeof(sal_Unicode)) - 1; // GETDATA(SQL_C_WCHAR, waCharArray, nMaxLen + sizeof(sal_Unicode)); SQLINTEGER pcbValue=0; --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
