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
Commit 497695c
Browse filesBrowse the repository at this point in the historyBrowse files
test(page-count): fixture for the /Count=0 rescue + tighten comments (yfedoseev#909)
Adds the regression test the review asked for: a broken-/Count PDF (a /Pages node
with /Count 0 but real /Kids) that the standard reader counts as 0 while get_page
still reaches every page, so the enumerator rescue recovers the real count (3).
Verified it goes RED (0 != 3) when the rescue hunk is reverted, green with it.
Also addresses the two review notes: tighten the outer comment so it no longer
implies get_page reaches pages via all_page_refs (the premise is that the /Count
readers AND all_page_refs miss these trees, while get_page's own per-page
traversal / collect_all_pages reaches them), and acknowledge the O(n*objects)
count for an ObjStm-packed recovered tree (bounded, only on already-broken docs).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Signed-off-by: Anthony J. (Tony) Bufort <ajbufort@ajbconsulting.us>
0 commit comments