[Poppler-bugs] [Bug 76478] New: [gfile.cc:495]: (style) Array index 'i' is used before limits check.

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sat Mar 22 05:07:51 PDT 2014


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

          Priority: medium
            Bug ID: 76478
          Assignee: poppler-bugs at lists.freedesktop.org
           Summary: [gfile.cc:495]: (style) Array index 'i' is used before
                    limits check.
          Severity: normal
    Classification: Unclassified
                OS: All
          Reporter: dcb314 at hotmail.com
          Hardware: All
            Status: NEW
           Version: unspecified
         Component: general
           Product: poppler

Source code is

    for (i = 0; mode[i] && i < sizeof(mode) - 1; ++i) {

Suggest new code

    for (i = 0; i < sizeof(mode) - 1 && mode[i]; ++i) {

-- 
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/20140322/c4a546f2/attachment.html>


More information about the Poppler-bugs mailing list