mirror of
https://github.com/mandiant/capa.git
synced 2025-12-12 15:49:46 -08:00
type capa.features.freeze
This commit is contained in:
@@ -228,7 +228,7 @@ def dump(extractor):
|
||||
return MAGIC + zlib.compress(dumps(extractor).encode("utf-8"))
|
||||
|
||||
|
||||
def is_freeze(buf):
|
||||
def is_freeze(buf: bytes) -> bool:
|
||||
return buf[: len(MAGIC)] == MAGIC
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user