Skip to content

fix: error on decoding 32-bit floats - #64

Merged
vmx merged 1 commit into
masterfrom
strict-float-decoding
Jul 17, 2026
Merged

fix: error on decoding 32-bit floats#64
vmx merged 1 commit into
masterfrom
strict-float-decoding

Conversation

@vmx

@vmx vmx commented Jul 13, 2026

Copy link
Copy Markdown
Member

By default, don't allow 32-bit CBOR floats to be decoded. 64-bit is DAG-CBORs only supported float type.

This was brought up at
#61 (comment) Thanks!

@rvagg rvagg left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think I might allow these through on both Go and JS, but honestly I don't care about lax floats, the stricter the better with floats I think, there's far too much wriggle room otherwise.

Base automatically changed from remove-prints-from-tests to master July 17, 2026 09:44
By default, don't allow 32-bit CBOR floats to be decoded. 64-bit
is DAG-CBORs only supported float type.

This was brought up at
#61 (comment)
Thanks!
@vmx
vmx force-pushed the strict-float-decoding branch from e41593f to 2ee95de Compare July 17, 2026 09:46
@vmx
vmx merged commit f8e1cf0 into master Jul 17, 2026
6 checks passed
@vmx
vmx deleted the strict-float-decoding branch July 17, 2026 10:11
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