Skip to content

Commit

Permalink
Added check for empty data
Browse files Browse the repository at this point in the history
  • Loading branch information
ragusaa committed May 22, 2024
1 parent 1272fce commit 0df4380
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion libclamav_rust/src/alz.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 0df4380

Please sign in to comment.