summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2022-04-09 09:56:23 +0100
committerMichael Stahl <michael.stahl@allotropia.de>2022-05-16 12:48:18 +0200
commitad8e7aedeb1790d8cefa55775b8165b1b8339b4b (patch)
tree1f55b8315cad29ad1ec92b290c096de25d7034c0
parentforcepoint#104 sw: do not delete fieldmark chars in MoveNodeRange() (diff)
downloadcore-ad8e7aedeb1790d8cefa55775b8165b1b8339b4b.tar.gz
core-ad8e7aedeb1790d8cefa55775b8165b1b8339b4b.zip
ofz#46526 Abrt
Change-Id: Iaec536b0989c4ec11b39b1534c7798e46715d7a0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132710 Tested-by: Jenkins Reviewed-by: Michael Stahl <michael.stahl@allotropia.de> (cherry picked from commit 67851564d74bc8108e4802abfeb4fb88f4adf71d) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133928 Tested-by: Michael Stahl <michael.stahl@allotropia.de>
-rw-r--r--connectivity/source/drivers/dbase/DTable.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/connectivity/source/drivers/dbase/DTable.cxx b/connectivity/source/drivers/dbase/DTable.cxx
index 6bd9ce2bbaf1..f3c15904072e 100644
--- a/connectivity/source/drivers/dbase/DTable.cxx
+++ b/connectivity/source/drivers/dbase/DTable.cxx
@@ -917,7 +917,7 @@ bool ODbaseTable::fetchRow(OValueRefRow& _rRow, const OSQLColumns & _rCols, bool
{
case DataType::DATE:
{
- if (aStr.getLength() != nLen)
+ if (nLen < 8 || aStr.getLength() != nLen)
{
(_rRow->get())[i]->setNull();
break;