Uploaded image for project: 'Clair'
  1. Clair
  2. CLAIRDEV-156

Some valid JAR files marked as "not a valid jar"

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Normal Normal
    • None
    • claircore-1.5.37
    • indexer

      It is possible for a JAR file to start off with a bash script, instead of the normal ZIP header. Claircore does not allow this, though, and it always checks for the header.

      The Go standard library accounts for this, so we should just try to open it with the standard library and let it decide if it's a valid ZIP or not.

              rtannenb@redhat.com Ross Tannenbaum
              rtannenb@redhat.com Ross Tannenbaum
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: