Entry

io.joern.jimple2cpg.util.ProgramHandlingUtil.Entry
sealed class Entry(entry: Either[File, ZipEntry], parentArchive: Option[ZipFile])

Common properties of a File and ZipEntry, used to determine whether a file in a directory or an entry in an archive is worth emitting/extracting

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Constructors

def this(file: File)
def this(entry: ZipEntry, parentArchive: ZipFile)

Concrete methods

def extension: Option[String]
def isDirectory: Boolean
def isZipFile: Boolean
def isZipSlip: Boolean

Determines whether a zip entry is potentially malicious.

Determines whether a zip entry is potentially malicious.

Attributes

Returns

whether the entry is a ZipEntry and uses '..' in it's components

def maybeRegularFile(): Boolean
def name: String