Kaydet (Commit) f4b80fc5 authored tarafından Caolán McNamara's avatar Caolán McNamara

ofz#6352 set limits for useful fuzzing

Change-Id: Id4a2dab7da84adf6c6268340dff34e8776abe924
Reviewed-on: https://gerrit.libreoffice.org/54383Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst 41422627
......@@ -30,11 +30,12 @@
#include <editeng/editobj.hxx>
#include <editeng/editstat.hxx>
#include <editeng/flditem.hxx>
#include <svx/pageitem.hxx>
#include <editeng/colritem.hxx>
#include <sfx2/printer.hxx>
#include <sfx2/docfile.hxx>
#include <svx/pageitem.hxx>
#include <svl/zforlist.hxx>
#include <unotools/configmgr.hxx>
#include <sfx2/objsh.hxx>
#include <tools/urlobj.hxx>
......@@ -1080,6 +1081,12 @@ void ImportExcel::TableOp()
nInpRow2 = aIn.ReaduInt16();
nInpCol2 = aIn.ReaduInt16();
if (utl::ConfigManager::IsFuzzing())
{
//shrink to smallish arbitrary value to not timeout
nLastRow = std::min<sal_uInt16>(nLastRow, MAXROW_30);
}
if( ValidColRow( nLastCol, nLastRow ) )
{
if( nFirstCol && nFirstRow )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment