Skip to content

Commit ec69171

Browse files
committed
fix(ubifs): attempts to continue extracting files even with bad block reads.
Corrupt samples require the '-w' option so that we can actually extract content.
1 parent 267a700 commit ec69171

File tree

1 file changed

+1
-1
lines changed
  • unblob/handlers/filesystem

1 file changed

+1
-1
lines changed

unblob/handlers/filesystem/ubi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ class UBIFSHandler(StructHandler):
8181
"""
8282
HEADER_STRUCT = "ubifs_sb_node_t"
8383

84-
EXTRACTOR = Command("ubireader_extract_files", "{inpath}", "-o", "{outdir}")
84+
EXTRACTOR = Command("ubireader_extract_files", "{inpath}", "-w", "-o", "{outdir}")
8585

8686
def calculate_chunk(self, file: File, start_offset: int) -> Optional[ValidChunk]:
8787
endian = get_endian(file, self._BIG_ENDIAN_MAGIC)

0 commit comments

Comments
 (0)