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

Eike Rathke erack at redhat.com
Wed Jun 21 15:52:11 UTC 2017


 sc/source/ui/view/viewdata.cxx |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit 0fed0829a601aaed6134bbc689b394e38c830605
Author: Eike Rathke <erack at redhat.com>
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)
     {


More information about the Libreoffice-commits mailing list