mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-11-18 18:15:34 +00:00
From review on #6763: - An Include or Exclude lock whose /Fields is missing, not an array, or holds something other than names, and a /Reference that is not an array of dictionaries, are unreadable locks (Unknown), not "no lock". - Names are matched exactly as written, and by a single pass over the walked form (a node is listed when its name or its parent is), with at most 16 locks read, so matching costs one lookup per node per lock. - The signature's own field is compared when its lock covers it. - A field added below a locked field changes it. - The form's /NeedAppearances, and /DA, /DR and /Q when a locked field has no appearance of its own, are compared too. - Each reference followed counts toward the depth cap: a cycle of references in a locked field's value overflowed the stack. - The locks are read from the field the signature is listed under; when that field is not among those ending the signed revision, a lock on any of them leaves the check undecided.