Uploaded image for project: 'Tika'
  1. Tika
  2. TIKA-2463

Parsing large tiff produces StackOverflowError

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      java -jar tika-app-1.16.jar test.tiff

      (attaching tiff to issue)

      Exception in thread "main" java.lang.StackOverflowError
      	at java.lang.StringCoding$StringDecoder.decode(StringCoding.java:153)
      	at java.lang.StringCoding.decode(StringCoding.java:193)
      	at java.lang.StringCoding.decode(StringCoding.java:254)
      	at java.lang.String.<init>(String.java:546)
      	at com.drew.lang.RandomAccessReader.getNullTerminatedString(RandomAccessReader.java:405)
      	at com.drew.imaging.tiff.TiffReader.processTag(TiffReader.java:267)
      	at com.drew.imaging.tiff.TiffReader.processIfd(TiffReader.java:224)
      	at com.drew.imaging.tiff.TiffReader.processIfd(TiffReader.java:244)
      	at com.drew.imaging.tiff.TiffReader.processIfd(TiffReader.java:244)
      
      1. test.zip
        42.89 MB
        Mike Cantrell

        Activity

        Hide
        mcantrell Mike Cantrell added a comment -

        test.zip containing the example test.tiff file

        Show
        mcantrell Mike Cantrell added a comment - test.zip containing the example test.tiff file
        Hide
        tallison@mitre.org Tim Allison added a comment -

        try -Xss4m

        I'm not sure this is a bug? Perhaps open this issue/ask Drew Noakes over on https://github.com/drewnoakes/metadata-extractor ?

        Show
        tallison@mitre.org Tim Allison added a comment - try -Xss4m I'm not sure this is a bug? Perhaps open this issue/ask Drew Noakes over on https://github.com/drewnoakes/metadata-extractor ?
        Hide
        mcantrell Mike Cantrell added a comment -

        Point taken! Thanks for the feedback

        Show
        mcantrell Mike Cantrell added a comment - Point taken! Thanks for the feedback

          People

          • Assignee:
            Unassigned
            Reporter:
            mcantrell Mike Cantrell
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development