Skip to content

fix: resolve three bugs in font lookup, subfont parsing, and PDF parsing#301

Merged
mgieseki merged 1 commit into
mgieseki:masterfrom
jschueller:misc
Jun 25, 2026
Merged

fix: resolve three bugs in font lookup, subfont parsing, and PDF parsing#301
mgieseki merged 1 commit into
mgieseki:masterfrom
jschueller:misc

Conversation

@jschueller

Copy link
Copy Markdown
Contributor
  • FontManager: capture actual resolved path from FileFinder::lookup instead of storing the format array element (nullptr for exact match)
  • Subfont: avoid forming pointer before array when gcount() < 2
  • PDFParser: validate object types before popping from vector

@mgieseki

Copy link
Copy Markdown
Owner

Thanks for the PR. I'll have a look later today.

Comment thread src/FontManager.cpp Outdated
@mgieseki mgieseki self-assigned this Jun 25, 2026
@mgieseki mgieseki added the bug label Jun 25, 2026
@mgieseki

Copy link
Copy Markdown
Owner

Your changes are fine. Please drop variable found and replace it with path as mentioned above.

- FontManager: capture actual resolved path from FileFinder::lookup
  instead of storing the format array element (nullptr for exact match)
- Subfont: avoid forming pointer before array when gcount() < 2
- PDFParser: validate object types before popping from vector
@mgieseki mgieseki merged commit 1724a2c into mgieseki:master Jun 25, 2026
2 checks passed
@mgieseki

Copy link
Copy Markdown
Owner

Thanks again for tracking down the issues and for providing the PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants