Interface IJadxZipSecurity

All Known Subinterfaces:
IJadxSecurity
All Known Implementing Classes:
DisabledZipSecurity, JadxSecurity, JadxZipSecurity

public interface IJadxZipSecurity
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Max entries count expected in a zip file, fail zip open if the limit exceeds.
    boolean
    isInSubDirectory(File baseDir, File file)
    Check if a file will be inside baseDir after a system resolves its path
    boolean
    Check if zip entry is valid and safe to process
    boolean
    Check if the zip entry name is valid.
    boolean
    Use limited InputStream for entry uncompressed data
  • Method Details

    • isValidEntry

      boolean isValidEntry(IZipEntry entry)
      Check if zip entry is valid and safe to process
    • isValidEntryName

      boolean isValidEntryName(String entryName)
      Check if the zip entry name is valid. This check should be part of isValidEntry(IZipEntry) method.
    • useLimitedDataStream

      boolean useLimitedDataStream()
      Use limited InputStream for entry uncompressed data
    • getMaxEntriesCount

      int getMaxEntriesCount()
      Max entries count expected in a zip file, fail zip open if the limit exceeds. Return -1 to disable entries count check.
    • isInSubDirectory

      boolean isInSubDirectory(File baseDir, File file)
      Check if a file will be inside baseDir after a system resolves its path