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

ArrayIndexOutOfBounds exception in JpegXmpRewriter.updateXmpXml()

    XMLWordPrintableJSON

Details

    Description

      Got the attached image passed to me. It triggers the following exception:

      java.lang.IndexOutOfBoundsException: Range [65535, 65535 + 65535) out of bounds for length 77353
       at java.base/jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:64)
       at java.base/jdk.internal.util.Preconditions.outOfBoundsCheckFromIndexSize(Preconditions.java:82)
       at java.base/jdk.internal.util.Preconditions.checkFromIndexSize(Preconditions.java:343)
       at java.base/java.util.Objects.checkFromIndexSize(Objects.java:425)
       at java.base/java.io.ByteArrayOutputStream.write(ByteArrayOutputStream.java:129)
       at org.apache.commons.imaging.formats.jpeg.xmp.JpegXmpRewriter.writeXmpSegment(JpegXmpRewriter.java:200)
       at org.apache.commons.imaging.formats.jpeg.xmp.JpegXmpRewriter.updateXmpXml(JpegXmpRewriter.java:184)
       at org.apache.commons.imaging.formats.jpeg.xmp.JpegXmpRewriter.updateXmpXml(JpegXmpRewriter.java:124) 

      Attachments

        1. Overhead_16_reduced.jpg
          915 kB
          David Ekholm

        Activity

          People

            kinow Bruno P. Kinoshita
            davidekholm David Ekholm
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 2h
                2h
                Remaining:
                Remaining Estimate - 2h
                2h
                Logged:
                Time Spent - Not Specified
                Not Specified