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

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Fri Oct 18 11:10:11 UTC 2019


 sc/source/filter/lotus/op.cxx |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit bc7d16db29abd4a305e912982678fffe64892102
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Fri Oct 18 09:41:19 2019 +0100
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Fri Oct 18 13:08:55 2019 +0200

    cid#1448338 Untrusted value as argument
    
    Change-Id: I9b7e88a04e33d59a6fd88538051767c86112dc68
    Reviewed-on: https://gerrit.libreoffice.org/81026
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/sc/source/filter/lotus/op.cxx b/sc/source/filter/lotus/op.cxx
index 7033f6da0550..a9a3ba9692f6 100644
--- a/sc/source/filter/lotus/op.cxx
+++ b/sc/source/filter/lotus/op.cxx
@@ -594,6 +594,8 @@ void OP_SheetName123(LotusContext& rContext, SvStream& rStream, sal_uInt16 nLeng
 
     if (!sSheetName.empty())
     {
+        if (!ValidTab(nSheetNum) || nSheetNum >= rContext.pDoc->GetTableCount())
+            return;
         OUString aName(sSheetName.data(), strlen(sSheetName.data()), rContext.eCharVon);
         rContext.pDoc->RenameTab(nSheetNum, aName);
     }


More information about the Libreoffice-commits mailing list