ofz#58400 Timeout

Change-Id: I6ded0d0613b66f7ec075796e257d93cf25822d2b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/151189
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
This commit is contained in:
Caolán McNamara 2023-04-29 19:56:46 +01:00
parent dd15364793
commit 538956c32b

View file

@ -1476,6 +1476,12 @@ void HwpReader::makePageStyle()
HWPInfo& hwpinfo = hwpfile.GetHWPInfo();
int pmCount = hwpfile.getColumnCount();
if (pmCount > 512 && utl::ConfigManager::IsFuzzing())
{
SAL_WARN("filter.hwp", "too many pages: " << pmCount << " clip to " << 512);
pmCount = 512;
}
for( int i = 0 ; i < pmCount ; i++ ){
mxList->addAttribute("style:name", sXML_CDATA, "pm" + OUString::number(i + 1));
startEl("style:page-master");