Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

malformed ZipEntry #27

Open
TomTasche opened this issue Jun 15, 2019 · 0 comments
Open

malformed ZipEntry #27

TomTasche opened this issue Jun 15, 2019 · 0 comments

Comments

@TomTasche
Copy link
Collaborator

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant