From 0df4380d45ffa852542701fb78b1bbd322f07ccd Mon Sep 17 00:00:00 2001 From: Andy Ragusa Date: Wed, 22 May 2024 14:54:08 -0700 Subject: [PATCH] Added check for empty data --- libclamav_rust/src/alz.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libclamav_rust/src/alz.rs b/libclamav_rust/src/alz.rs index 56674fb9c6..fef676a0db 100644 --- a/libclamav_rust/src/alz.rs +++ b/libclamav_rust/src/alz.rs @@ -358,7 +358,9 @@ impl AlzLocalFileHeader { data: buffer.to_vec(), }; - files.push(extracted_file); + if 0 != extracted_file.data.len() { + files.push(extracted_file); + } } fn extract_file_nocomp(