[Libreoffice-commits] .: Branch 'libreoffice-3-4' - connectivity/source

Michael Stahl mst at kemper.freedesktop.org
Tue Feb 14 07:25:27 PST 2012


 connectivity/source/inc/odbc/OBoundParam.hxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit adb1ed5f13b4638690ca2966138eb2c61bdb1b53
Author: Lionel Elie Mamane <lionel at mamane.lu>
Date:   Tue Feb 14 14:54:03 2012 +0100

    odbc 64 bit crash: correct buffer length allocation for a SQLLEN
    
    (cherry picked from commit 84d21e4de26bd69f7ca5b10f2c72779f07e11347)
    
    Signed-off-by: Michael Stahl <mstahl at redhat.com>

diff --git a/connectivity/source/inc/odbc/OBoundParam.hxx b/connectivity/source/inc/odbc/OBoundParam.hxx
index 5817aac..b8856e9 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)];
             }
 
             //--------------------------------------------------------------------


More information about the Libreoffice-commits mailing list