<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 - Spurious warning in PDFDoc::checkHeader() with tiny PDF files"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=105674">105674</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Spurious warning in PDFDoc::checkHeader() with tiny PDF files
          </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>evangelos@foutrelis.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>The fix for <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - I/O errors during checkheader() cause hang"
   href="show_bug.cgi?id=104502">bug 104502</a> causes small PDF files (under 1024 bytes) to print a
warning. This in turn triggers test suite failures in pdf2djvu because it uses
really tiny PDFs in three of its tests.

My proposed patch makes use of an idiom also found elsewhere in PDFDoc.cc; it
reads up to headerSearchSize bytes and stops if it encounters EOF,
null-terminates the string in the buffer at the current position and continues
to process the data it has read up to that point.

With this patch on top of Poppler 0.63.0, the test suite of pdf2djvu 0.9.8
passes successfully. Hope the patch is correct; I don't trust me not to
introduce off-by-one errors. FWIW, the tests pass and Evince displays the
correct PDF version.</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>