<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Blank page when tiling pattern's cell is too far"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=105905">105905</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Blank page when tiling pattern's cell is too far
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>poppler
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Other
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>general
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>poppler-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>mkasik@redhat.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=138621" name="attach_138621" title="reproducer">attachment 138621</a> <a href="attachment.cgi?id=138621&action=edit" title="reproducer">[details]</a></span>
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
(<a href="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">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</a>).

Link to the original bug report:
<a href="https://bugzilla.redhat.com/show_bug.cgi?id=1557355">https://bugzilla.redhat.com/show_bug.cgi?id=1557355</a></pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>