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(