[Libreoffice-commits] core.git: connectivity/source

Julien Nabet serval2412 at yahoo.fr
Sun Oct 8 05:47:48 UTC 2017


 connectivity/source/drivers/odbc/OResultSet.cxx |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit 12d5e57dcac22c288ef23075b82e3e3e87929912
Author: Julien Nabet <serval2412 at yahoo.fr>
Date:   Sat Oct 7 22:58:34 2017 +0200

    tdf#112947: fix write to free'd memory (odbc)
    
    suggested by Nick Gorham
    
    Change-Id: I3579caf5192df6e460dea3a5b3728196d75a65f4
    Reviewed-on: https://gerrit.libreoffice.org/43234
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Julien Nabet <serval2412 at yahoo.fr>

diff --git a/connectivity/source/drivers/odbc/OResultSet.cxx b/connectivity/source/drivers/odbc/OResultSet.cxx
index 51c2e88ae2cf..7a74762a30c0 100644
--- a/connectivity/source/drivers/odbc/OResultSet.cxx
+++ b/connectivity/source/drivers/odbc/OResultSet.cxx
@@ -164,6 +164,7 @@ OResultSet::OResultSet(SQLHANDLE _pStatementHandle ,OStatement_Base* pStmt) :
 
 OResultSet::~OResultSet()
 {
+    setStmtOption<SQLUSMALLINT*, SQL_IS_POINTER>(SQL_ATTR_ROW_STATUS_PTR, nullptr);
 }
 
 void OResultSet::construct()


More information about the Libreoffice-commits mailing list