You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
XrefRevision.StartXrefOffset is written and never read #210
XrefRevision (src/VellumPdf.Reader/XrefParser.cs:14) carries two fields. XrefOffset is used; StartXrefOffset (:20) is assigned in the constructor at :25 and read by nothing, in src/ or in tests/.
Easy to mistake for covered: PdfDocumentReader.StartXrefOffset is a different property with the
same name, and it is well exercised (IncrementalAppendTests, PdfReaderTests, RevisionAndEndOffsetTests). Grepping the bare name finds those and looks like coverage. Only XrefRevision's copy is dead.
Either delete the field, or give it the reader it was added for — the two values genuinely differ on a
file whose startxref does not point exactly at its own xref (an off-by-a-few offset the parser
tolerates), and something in the recovery path may well want both. It is a struct field either way, so
this is a one-line change plus whatever justifies it.
Activity
docs: release 2.2.0 — encryption and parser hardening (#217)
chore: delete two members the decrypt work left without readers (#216)
docs: release 2.2.0 — encryption and parser hardening (#217)
chore: delete two members the decrypt work left without readers (#216)
docs: release 2.2.0 — encryption and parser hardening (#217)