summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2019-08-11 12:41:37 +0100
committerCaolán McNamara <caolanm@redhat.com>2019-08-11 16:00:48 +0200
commit5a3e1685f741e597666ad2767d0749c01e041740 (patch)
treee5e3f187088e8806be290707e7ed6a6b5f9899e7 /sc
parent64f5fb6a4976004d4aa3ef983a61f8f20fa0098a (diff)
cid#1242793 make fuzzing tabsize check compile time instead of runtime
Change-Id: I9f5190e903a7e645712210b3e3aa5f2ad42c0d72 Reviewed-on: https://gerrit.libreoffice.org/77266 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sc')
-rw-r--r--sc/source/filter/lotus/lotimpop.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/sc/source/filter/lotus/lotimpop.cxx b/sc/source/filter/lotus/lotimpop.cxx
index 6848c6caa8b3..25fe9c7f8c32 100644
--- a/sc/source/filter/lotus/lotimpop.cxx
+++ b/sc/source/filter/lotus/lotimpop.cxx
@@ -33,6 +33,7 @@
#include <namebuff.hxx>
#include <lotattr.hxx>
#include <stringutil.hxx>
+#include <config_fuzzers.h>
#include <unotools/configmgr.hxx>
@@ -327,9 +328,11 @@ void ImportLotus::NamedSheet()
Read(aName);
SCTAB nLTab(SanitizeTab(static_cast<SCTAB>(nTmpTab)));
+#if ENABLE_FUZZERS
//ofz#14167 arbitrary sheet limit to make fuzzing useful
- if (nLTab > 5 && utl::ConfigManager::IsFuzzing())
+ if (nLTab > 5
nLTab = 5;
+#endif
if (pD->HasTable(nLTab))
pD->RenameTab(nLTab, aName);