PdfCraft: An open-source PDF reader and editor written by scratch in pure Rust
test(cos): qpdf can't check a prefixed file whose offsets include the prefix
Christoph Ortenburgc0a8a1a10f9a
diff --git a/crates/cos/tests/writer.rs b/crates/cos/tests/writer.rsindex b7a54aa16..ac04be2e9 100644--- a/crates/cos/tests/writer.rs+++ b/crates/cos/tests/writer.rs@@ -453,5 +453,6 @@ fn incremental_saves_of_a_file_whose_offsets_count_from_its_first_byte_keep_counassert!(back.repair_log().is_empty(), "{:?}", back.repair_log());assert_eq!(back.revisions().len(), 2);assert!(back.xref_entry_is_exact(1));- assert_qpdf_clean(&saved);+ // No qpdf check here: qpdf counts every offset from the header in a file with bytes before+ // it, so it already reconstructs this input before anything is appended.}