Skip to content

NPE when handling corrupt jar files  #38

@abn

Description

@abn

While handling a corrupt jar file, the following stack trace was dumped:

Caused by: java.util.zip.ZipException: invalid distance too far back
         at 
java.util.zip.InflaterInputStream.read(InflaterInputStream.java:164)
         at java.util.zip.ZipInputStream.read(ZipInputStream.java:193)
         at java.util.jar.JarInputStream.read(JarInputStream.java:207)
         at 
com.redhat.victims.fingerprint.JarFile.getNextFile(JarFile.java:214)
         at com.redhat.victims.fingerprint.JarFile.<init>(JarFile.java:149)

The victims lib should be more robust and provide better error/debug information in the scenarios.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions