diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-10-22 17:29:21 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-10-22 21:18:15 +0200 |
commit | aa3c2526893cbf08a08f881b9e4b24dbd2b8b0b7 (patch) | |
tree | effd94dd2ca72bf3ddb250a67e7f08c08f7c8023 /desktop/source | |
parent | 7b2f4b328c68513429657520eca8a8836717c4ec (diff) |
oss-fuzz: drop our own afl related hackery
Change-Id: Ia6a498c07fffd1790ad433287ef4d1cf82085887
Reviewed-on: https://gerrit.libreoffice.org/43695
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'desktop/source')
-rw-r--r-- | desktop/source/app/app.cxx | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/desktop/source/app/app.cxx b/desktop/source/app/app.cxx index cae1d3ce8b22..56850c64e29b 100644 --- a/desktop/source/app/app.cxx +++ b/desktop/source/app/app.cxx @@ -1255,23 +1255,6 @@ struct ExecuteGlobals static ExecuteGlobals* pExecGlobals = nullptr; - -//This just calls Execute() for all normal uses of LibreOffice, but for -//ui-testing if built with afl-clang-fast++ then on exit it will pseudo-restart -//(up to 100 times) -void Desktop::DoExecute() -{ -#if !defined(__AFL_HAVE_MANUAL_CONTROL) - Execute(); -#else - while (__AFL_LOOP(1000)) - { - Execute(); - OpenDefault(); - } -#endif -} - int Desktop::Main() { pExecGlobals = new ExecuteGlobals(); @@ -1663,7 +1646,7 @@ int Desktop::Main() // if this run of the office is triggered by restart, some additional actions should be done DoRestartActionsIfNecessary( !rCmdLineArgs.IsInvisible() && !rCmdLineArgs.IsNoQuickstart() ); - DoExecute(); + Execute(); } } catch(const css::document::CorruptedFilterConfigurationException& exFilterCfg) |