fix(deps): move zip to 9.1 (RUSTSEC-2026-0367/0368/0369)

The workspace pin goes from 8 to 9, kigi-tools drops its separate zip 3
pin for the workspace dependency, and office_oxide 0.1.16 follows onto
zip 9. zip 9 decodes entry names on demand and can fail; the PPTX reader
and the Windows update unpacker now report that error. The zip unpacker
gains the two tests the tar path already had.
This commit is contained in:
雷电芽衣 committed 2026-10-31 02:18:43 -04:00
1 parent 0894206a9f
commit 10cbb8a5f1
5 files changed
+91 -66

No files matched your search

@@ -31,10 +31,14 @@ pub(crate) fn extract_pptx_text_from_bytes(bytes: &[u8]) -> Result<String, Strin
let mut archive = ZipArchive::new(Cursor::new(bytes))
.map_err(|e| format!("Failed to open PPTX archive: {e}"))?;
let names = archive
.file_names()
.collect::<Result<Vec<_>, _>>()
.map_err(|e| format!("Failed to read PPTX entry names: {e}"))?;
// Collect slide numbers from `ppt/slides/slideN.xml` entries and sort
// numerically so slide ordering matches the presentation.
let mut slide_numbers: Vec<u32> = archive
.file_names()
let mut slide_numbers: Vec<u32> = names
.iter()
.filter_map(|name| {
name.strip_prefix("ppt/slides/slide")?
.strip_suffix(".xml")?