Skip to content

Commit 4176d1f

Browse files
committed
fix: LZO decompression after switched to lzallright
Fixes: #85 Relates-to: vlaci/lzallright#20
1 parent 479646d commit 4176d1f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ubireader/ubifs/misc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def decompress(ctype, unc_len, data):
6262
"""
6363
if ctype == UBIFS_COMPR_LZO:
6464
try:
65-
return lzo.decompress(b''.join((b'\xf0', struct.pack('>I', unc_len), data)))
65+
return lzo.decompress(data, output_size_hint=unc_len)
6666
except Exception as e:
6767
error(decompress, 'Warn', 'LZO Error: %s' % e)
6868
elif ctype == UBIFS_COMPR_ZLIB:

0 commit comments

Comments
 (0)