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

Caolán McNamara caolanm at redhat.com
Wed Sep 10 05:42:40 PDT 2014


 connectivity/source/drivers/dbase/DTable.cxx |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit ce454057e09fef607ea8eab55e8e5db43941320b
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Wed Sep 10 13:41:50 2014 +0100

    check for empty m_pBuffer
    
    Change-Id: I90135b6d7780ba8a22fff725a965f0ea7e442707

diff --git a/connectivity/source/drivers/dbase/DTable.cxx b/connectivity/source/drivers/dbase/DTable.cxx
index a9f74b9..845d037 100644
--- a/connectivity/source/drivers/dbase/DTable.cxx
+++ b/connectivity/source/drivers/dbase/DTable.cxx
@@ -774,6 +774,9 @@ sal_Int64 ODbaseTable::getSomething( const Sequence< sal_Int8 > & rId ) throw (R
 
 bool ODbaseTable::fetchRow(OValueRefRow& _rRow, const OSQLColumns & _rCols, bool _bUseTableDefs, bool bRetrieveData)
 {
+    if (!m_pBuffer)
+        return false;
+
     // Read the data
     bool bIsCurRecordDeleted = (char)m_pBuffer[0] == '*';
 


More information about the Libreoffice-commits mailing list