[Libreoffice-commits] core.git: Branch 'libreoffice-5-4' - sc/source

Eike Rathke erack at redhat.com
Wed Jun 21 21:42:17 UTC 2017


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

New commits:
commit 031bca731e914b309d59cc685839d14786bb615c
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
    (cherry picked from commit 0fed0829a601aaed6134bbc689b394e38c830605)
    Reviewed-on: https://gerrit.libreoffice.org/39067
    Reviewed-by: Eike Rathke <erack at redhat.com>
    Tested-by: Jenkins <ci at libreoffice.org>

diff --git a/sc/source/ui/view/viewdata.cxx b/sc/source/ui/view/viewdata.cxx
index f4daf380d684..54fc06227563 100644
--- a/sc/source/ui/view/viewdata.cxx
+++ b/sc/source/ui/view/viewdata.cxx
@@ -502,6 +502,7 @@ ScViewData::~ScViewData()
 
 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