summaryrefslogtreecommitdiff
path: root/sc/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-03-30 09:24:58 +0100
committerCaolán McNamara <caolanm@redhat.com>2021-03-30 12:34:53 +0200
commitffe6eb528dca34b19fecf738bce647ccb8367379 (patch)
tree196c13cec2116dd441c3aa753f4f1a18e1e3d242 /sc/source
parentb80fc56c89e805372d87373903a6c4da0c4466c8 (diff)
cid#1473732 Untrusted loop bound
Change-Id: I0d0585f8d379fc0586ee76527f96e50c92953d13 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/113338 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sc/source')
-rw-r--r--sc/source/filter/excel/xltoolbar.cxx13
1 files changed, 7 insertions, 6 deletions
diff --git a/sc/source/filter/excel/xltoolbar.cxx b/sc/source/filter/excel/xltoolbar.cxx
index f94f96f50033..acf6d8339f20 100644
--- a/sc/source/filter/excel/xltoolbar.cxx
+++ b/sc/source/filter/excel/xltoolbar.cxx
@@ -111,14 +111,15 @@ bool ScCTB::Read( SvStream &rS )
SAL_WARN("sc.filter", "ScCTB::Read more entries claimed than stream could contain");
return false;
}
- }
- for ( sal_Int16 index = 0; index < nIndexes; ++index )
- {
- ScTBC aTBC;
- aTBC.Read( rS );
- rTBC.push_back( aTBC );
+ for ( sal_Int16 index = 0; index < nIndexes; ++index )
+ {
+ ScTBC aTBC;
+ aTBC.Read( rS );
+ rTBC.push_back( aTBC );
+ }
}
+
return true;
}