Uploaded image for project: 'Commons Imaging'
  1. Commons Imaging
  2. IMAGING-11

ArrayIndexOutOfBounds exception throwing when get metadata

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.94-incubator
    • 1.0-alpha1
    • None
    • None
    • Ubuntu 11.04/Liftweb/SBT

    Description

      This is the executed script: Sanselan.getMetadata(new File(filePath))

      But, this throws following exception:
      Caught and thrown by:
      Message: java.lang.ArrayIndexOutOfBoundsException
      java.lang.System.arraycopy(Native Method)
      org.apache.sanselan.common.byteSources.ByteSourceArray.getBlock(ByteSourceArray.java:52)
      org.apache.sanselan.formats.tiff.TiffField.fillInValue(TiffField.java:309)
      org.apache.sanselan.formats.tiff.TiffReader.readDirectory(TiffReader.java:195)
      org.apache.sanselan.formats.tiff.TiffReader.readDirectory(TiffReader.java:110)
      org.apache.sanselan.formats.tiff.TiffReader.readDirectories(TiffReader.java:101)
      org.apache.sanselan.formats.tiff.TiffReader.read(TiffReader.java:448)

      Attachments

        1. stupidpic.jpg
          413 kB
          Chka Davaadorj
        2. stupidpic-analysis.ods
          11 kB
          Damjan Jovanovic
        3. tiff-handle-bad-offsets.patch
          2 kB
          Damjan Jovanovic
        4. tiff-patch.txt
          1 kB
          Damjan Jovanovic

        Activity

          People

            Unassigned Unassigned
            chka Chka Davaadorj
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: