diff --git a/tests/fixtures/slice_from_raw_parts.zip b/tests/fixtures/slice_from_raw_parts.zip new file mode 100644 index 0000000..5b5af64 Binary files /dev/null and b/tests/fixtures/slice_from_raw_parts.zip differ diff --git a/tests/integration_test.rs b/tests/integration_test.rs index af22d98..2f228f0 100644 --- a/tests/integration_test.rs +++ b/tests/integration_test.rs @@ -854,3 +854,10 @@ fn iterate_archive_with_filter_path() { "filtered file list inside the archive did not match" ); } + +#[test] +fn test_slice_from_raw_parts() { + let mut source = std::fs::File::open("tests/fixtures/slice_from_raw_parts.zip").unwrap(); + let mut outfile = tempfile::NamedTempFile::new().unwrap(); + uncompress_archive_file(&mut source, &mut outfile, "1/2/1.txt").unwrap(); +} \ No newline at end of file