[PATCH] odbc 64 bit crash: correct buffer length allocation for a SQLLEN

Lionel Elie Mamane lionel at mamane.lu
Tue Feb 14 05:54:03 PST 2012


---
 connectivity/source/inc/odbc/OBoundParam.hxx |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/connectivity/source/inc/odbc/OBoundParam.hxx b/connectivity/source/inc/odbc/OBoundParam.hxx
index 2310a2e..99a4901 100644
--- a/connectivity/source/inc/odbc/OBoundParam.hxx
+++ b/connectivity/source/inc/odbc/OBoundParam.hxx
@@ -68,7 +68,7 @@ namespace connectivity
                 // to a Java sal_Int32.  The jdbcodbc 'C' bridge provides an
                 // interface to do this.
 
-                paramLength = new sal_Int8[4];
+                paramLength = new sal_Int8[sizeof(SQLLEN)];
             }
 
             //--------------------------------------------------------------------
-- 
1.7.7.3


--yrj/dFKFPuw6o+aM--


More information about the LibreOffice mailing list