sc/source/ui/view/viewdata.cxx | 1 +
1 file changed, 1 insertion(+)
New commits:
commit 0fed0829a601aaed6134bbc689b394e38c830605
Author: Eike Rathke <[email protected]>
Date: Wed Jun 21 17:45:46 2017 +0200
Assert that nTabNo fits maTabData, tdf#108654 related
Change-Id: I30b95f69a71317896d86e36b1b926c703f1539d1
diff --git a/sc/source/ui/view/viewdata.cxx b/sc/source/ui/view/viewdata.cxx
index ceffc1973dca..a82fbd678914 100644
--- a/sc/source/ui/view/viewdata.cxx
+++ b/sc/source/ui/view/viewdata.cxx
@@ -502,6 +502,7 @@ ScViewData::~ScViewData() COVERITY_NOEXCEPT_FALSE
void ScViewData::UpdateCurrentTab()
{
+ assert(0 <= nTabNo && static_cast<size_t>(nTabNo) < maTabData.size());
pThisTab = maTabData[nTabNo];
while (!pThisTab)
{
_______________________________________________
Libreoffice-commits mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits