[Poppler-bugs] [Bug 85233] New: [pdfseparate] Near-eternal loop, 3 exabyte file output

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Oct 20 04:24:26 PDT 2014


https://bugs.freedesktop.org/show_bug.cgi?id=85233

            Bug ID: 85233
           Summary: [pdfseparate] Near-eternal loop, 3 exabyte file output
           Product: poppler
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: minor
          Priority: medium
         Component: utils
          Assignee: poppler-bugs at lists.freedesktop.org
          Reporter: ravdune+bugzilla at gmail.com

Created attachment 108108
  --> https://bugs.freedesktop.org/attachment.cgi?id=108108&action=edit
disk-fill.pdf

OS: Fedora 20 (running in virtualbox)
Dependencies installed with: yum-builddep poppler
Version: GIT Master
Command line for loop demonstration: master/utils/pdfseparate <attached.pdf>
/dev/null
Command line for filling disk: master/utils/pdfseparate <attached.pdf> out-%d

Attached several files that repeat this, basically there's an output loop that
attempts to write 3,695,785,924,655,524,693 bytes (3.6 exabytes) to disk.
Should probably sanity check the size. Obviously minor bug.

  for (Goffset i = 0; i < length; i++) {
    int c = str->getUnfilteredChar();
    outStr->printf("%c", c);  
  }

  Here with attached file & command line length = 3695785924655524693

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/poppler-bugs/attachments/20141020/f8e1f8d3/attachment.html>


More information about the Poppler-bugs mailing list