Files
pdfcraft/crates
Higgs32584 fd11fcb6c4 fix(sign): read field locks strictly and compare them within bounds
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.
2026-11-09 14:32:58 -05:00
..
…
2026-11-09 18:32:42 +07:00
…