connectivity/source/drivers/dbase/DTable.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 73ee783b6cacceffe79c1772ab861019652ddb98 Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Sat Apr 9 09:56:23 2022 +0100 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Mon Apr 11 17:15:19 2022 +0200 ofz#46526 Abrt Change-Id: Iaec536b0989c4ec11b39b1534c7798e46715d7a0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132704 Reviewed-by: Michael Stahl <michael.st...@allotropia.de> Tested-by: Jenkins diff --git a/connectivity/source/drivers/dbase/DTable.cxx b/connectivity/source/drivers/dbase/DTable.cxx index c5da1d6b2477..2665469076d9 100644 --- a/connectivity/source/drivers/dbase/DTable.cxx +++ b/connectivity/source/drivers/dbase/DTable.cxx @@ -946,7 +946,7 @@ bool ODbaseTable::fetchRow(OValueRefRow& _rRow, const OSQLColumns & _rCols, bool { case DataType::DATE: { - if (aStr.getLength() != nLen) + if (nLen < 8 || aStr.getLength() != nLen) { (*_rRow)[i]->setNull(); break;