diff --git a/unblob/processing.py b/unblob/processing.py index b754e2ec2b..35c40b4b63 100644 --- a/unblob/processing.py +++ b/unblob/processing.py @@ -452,13 +452,7 @@ def _iterate_directory(self, extract_dirs, processed_paths): def is_padding(file: File, chunk: UnknownChunk): - return not any( - current_byte != next_byte - for current_byte, next_byte in zip( - file[chunk.start_offset : chunk.end_offset], - file[chunk.start_offset + 1 : chunk.end_offset], - ) - ) + return len(set(file[chunk.start_offset : chunk.end_offset])) == 1 def process_patterns(