Skip to content

malformed ZipEntry #27

Description

@TomTasche

we have 1000 crashes affecting 500 users in the last 30 days where ZipCoder.toString crashes with "java.lang.IllegalArgumentException: MALFORMED[1]"

java.util.zip.ZipCoder.toString (ZipCoder.java:65)
java.util.zip.ZipFile.getZipEntry (ZipFile.java:594)
java.util.zip.ZipFile.-wrap2 (ZipFile.java)
java.util.zip.ZipFile$ZipEntryIterator.next (ZipFile.java:552)
java.util.zip.ZipFile$ZipEntryIterator.nextElement (ZipFile.java:527)
java.util.zip.ZipFile$ZipEntryIterator.nextElement (ZipFile.java:526)
at.stefl.commons.util.iterator.EnumerationIterator.next (EnumerationIterator.java:20)
at.stefl.opendocument.java.odf.LocatedOpenDocumentFile.getFileNames (LocatedOpenDocumentFile.java:54)
at.stefl.opendocument.java.odf.LocatedOpenDocumentFile.getRawFileStream (LocatedOpenDocumentFile.java:64)
at.stefl.opendocument.java.odf.OpenDocumentFile.getManifest (OpenDocumentFile.java:187)
at.stefl.opendocument.java.odf.EncryptionParameter.parseEncryptionParameters (EncryptionParameter.java:61)
at.stefl.opendocument.java.odf.OpenDocumentFile.isEncrypted (OpenDocumentFile.java:39)
at.tomtasche.reader.background.DocumentLoader.loadSync (DocumentLoader.java:207)
at.tomtasche.reader.background.DocumentLoader$1.run (DocumentLoader.java:104)
android.os.Handler.handleCallback (Handler.java:789)
android.os.Handler.dispatchMessage (Handler.java:98)
android.os.Looper.loop (Looper.java:164)
android.os.HandlerThread.run (HandlerThread.java:65)

could this be related to documents created for other languages? is there a way to know the correct encoding upfront?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions