diff options
author | Eike Rathke <erack@redhat.com> | 2017-06-21 17:45:46 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2017-06-21 17:49:32 +0200 |
commit | 0fed0829a601aaed6134bbc689b394e38c830605 (patch) | |
tree | 566c144fcaa0efc475f03587518970f45dbc4c51 | |
parent | 87cbbdc98d78c3c15f7161de6fec93d8680ee1de (diff) |
Assert that nTabNo fits maTabData, tdf#108654 related
Change-Id: I30b95f69a71317896d86e36b1b926c703f1539d1
-rw-r--r-- | sc/source/ui/view/viewdata.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
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) { |