sc/source/filter/lotus/op.cxx | 2 ++
1 file changed, 2 insertions(+)
New commits:
commit bc7d16db29abd4a305e912982678fffe64892102
Author: Caolán McNamara <[email protected]>
AuthorDate: Fri Oct 18 09:41:19 2019 +0100
Commit: Caolán McNamara <[email protected]>
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 <[email protected]>
Tested-by: Caolán McNamara <[email protected]>
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);
}
_______________________________________________
Libreoffice-commits mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits