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:
parent
dd15364793
commit
538956c32b
1 changed files with 6 additions and 0 deletions
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue