From faf22189f29a24f485fbdf7444151e29ce875be0 Mon Sep 17 00:00:00 2001 From: Quentin Kaiser <569494+qkaiser@users.noreply.github.com> Date: Wed, 3 Jan 2024 08:28:33 +0100 Subject: [PATCH] Update unblob/processing.py MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: KrisztiƔn Fekete <1246751+e3krisztian@users.noreply.github.com> --- unblob/processing.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) 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(