Skip to content

Fix real number parsing - #63

Merged
joeferner merged 2 commits into
joeferner:masterfrom
dnicolson:fix-real-number-parsing
Nov 25, 2026
Merged

joeferner merged 2 commits into
joeferner:masterfrom
dnicolson:fix-real-number-parsing

Conversation

@dnicolson

@dnicolson dnicolson commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

parseReal returned undefined for real markers whose width isn't 4 or 8 bytes, leaking undefined into the parsed result. It now throws Invalid binary plist. Unsupported real length (matching CoreFoundation), and the return type tightens to number. Also adds a regression test that -0 round-trips.

Maintainer follow-up: merged master (#61, #62) into the branch; parseReal keeps the bounds-checked readObjectBytes read from #62.

🤖 Generated with Claude Code

dnicolson and others added 2 commits November 21, 2026 23:33
@joeferner
joeferner merged commit 7b6b6c3 into joeferner:master Nov 25, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants