Blank page when tiling pattern's cell is too far
@mkasik
Submitted by Marek Kasik Assigned to poppler-bugs
Link to original bug (#105905)
Description
Created attachment 138621 reproducer
Rendering of tiling pattern which has pattern matrix moving pattern cell far away (e.g. /Matrix [ 0.96000 0 0 -0.96000 42.54000 245481.37900 ]) can fail on allocation of memory (e.g. in CairoOutputDev).
I've prepared a patch which solves this issue by moving the pattern cell as close to (0,0) as possible by integer number of cells in pattern matrix before it is passed to tilingPatternFill().
Attached is page number 332 from a document where this can be reproduced (https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/pdf/virtualization_deployment_and_administration_guide/Red_Hat_Enterprise_Linux-7-Virtualization_Deployment_and_Administration_Guide-en-US.pdf).
Link to the original bug report: https://bugzilla.redhat.com/show_bug.cgi?id=1557355
Attachment 138621, "reproducer":
page-332.pdf