diff options
author | Eike Rathke <erack@redhat.com> | 2017-06-21 17:45:46 +0200 |
---|---|---|
committer | Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> | 2017-06-21 23:41:56 +0200 |
commit | 031bca731e914b309d59cc685839d14786bb615c (patch) | |
tree | 338c64257bd74d455dae1fd868af49ec4dab5412 | |
parent | 3e3b37ca4cbc881628a71715b67ac172018cf9f2 (diff) |
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@redhat.com>
Tested-by: Jenkins <ci@libreoffice.org>
-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 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) { |