Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4399904

JPEG reader produces a warning message on stderr when subsampling

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.4.0
    • 1.4.0
    • client-libs
    • None
    • beta
    • generic
    • solaris_7

        The JPEG reader attempts to skip scanlines when a Y subsampling factor
      greater than 1 is used. This can result in an attempt to read past the end
      of the image, which results in a warning message being printed on stderr
      by the IJG library.

        The fix is to skip the minimum of 'stepY - 1' and 'scanlineLimit - cinfo->output_scanline' instead of always skipping 'stepY - 1' in the
      native routine for JPEGImageReader.readImage.

        The existing regression test in test/javax/imageio/IRPTest.java may
      be used as a test for this bug; the message 'Application transferred too
      many scanlines' should not appear.

            dricesunw Daniel Rice (Inactive)
            dricesunw Daniel Rice (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: