From e6d9e5f6ddcb8ed50af28abc60e94bbdba87034c Mon Sep 17 00:00:00 2001 From: tannevaled Date: Thu, 27 Aug 2026 20:32:44 +0200 Subject: [PATCH] deps: take the reader that salvages, decrypts /Crypt and answers the same twice MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit reader v0.6.0 brings three things this module was doing without: /Crypt 209 files — 12.8% of the 1 633 real forms — carry the filter, and every one of them used to decode to nothing readable. determinism a second map-order non-determinism, in indexObjectStreams, distinct from the inline-image one v0.4.2 settled: five answers in five runs of the same binary on the same file. salvage a damaged stream's decoded prefix is kept and labelled as salvage, instead of being returned with a nil error as though it were the whole of it. Nothing in this module's own output changes; the tests say so. It is taken because a module lagging its own dependency is how pdffont shipped the 21-second reader.Open to its callers for a whole release, and the fix for that is to stop lagging rather than to remember not to. Co-Authored-By: Claude Opus 5 --- go.mod | 2 +- go.sum | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index 8a6aeb1..90c9ba1 100644 --- a/go.mod +++ b/go.mod @@ -6,7 +6,7 @@ require ( github.com/go-crdt/crdt v0.31.0 github.com/go-deltasync/chunk v0.2.0 github.com/go-pdfkit/ops v0.7.0 - github.com/go-pdfkit/reader v0.5.0 + github.com/go-pdfkit/reader v0.6.0 ) require ( diff --git a/go.sum b/go.sum index 7e672d6..08b8282 100644 --- a/go.sum +++ b/go.sum @@ -12,5 +12,5 @@ github.com/go-pdfkit/ops v0.7.0 h1:W8sK//0nfs/OACvjzvw/GK5ywtd90eDoYcdv74GxW8M= github.com/go-pdfkit/ops v0.7.0/go.mod h1:Is3FBR2NcCUEzNt4eowdsVa+P0SBtGtcxK8lDlOeyrk= github.com/go-pdfkit/pdffont v0.3.0 h1:G5DKcAmsZJ0e17QhSrcUaL7PKEXKjUx4P/iGMl7bAbI= github.com/go-pdfkit/pdffont v0.3.0/go.mod h1:bfmNLna1l1CljNX/Utg55YzFylovfmI7sJnvgA3bzKI= -github.com/go-pdfkit/reader v0.5.0 h1:DaJ5C6eKXPRG9Cdu+olA/0KLmsQgyHEC1coteQQuBxU= -github.com/go-pdfkit/reader v0.5.0/go.mod h1:fQFOVfCMUui1AdvD4qhimdyvvNr9KvvJ1S7IuKZjyV8= +github.com/go-pdfkit/reader v0.6.0 h1:KAabNOYUcTlZlNBTbG9bEhWP1NiZhjuhzUdavdTdfes= +github.com/go-pdfkit/reader v0.6.0/go.mod h1:fQFOVfCMUui1AdvD4qhimdyvvNr9KvvJ1S7IuKZjyV8=