Skip to content

fix: don't allow f32/f64 NaN or infinity#56

Merged
vmx merged 1 commit into
masterfrom
nan-inf-long
Jun 1, 2026
Merged

fix: don't allow f32/f64 NaN or infinity#56
vmx merged 1 commit into
masterfrom
nan-inf-long

Conversation

@vmx
Copy link
Copy Markdown
Member

@vmx vmx commented May 13, 2026

The short f16 NaN was already erroring, but the longer f32 and f64 versions should also error. DAG-CBOR does neither support NaN, nor Infinity.

@vmx vmx force-pushed the minimally-encoded-cid-tag branch from 90e3ff1 to 97a7943 Compare May 28, 2026 10:24
@vmx vmx force-pushed the nan-inf-long branch 2 times, most recently from 7c46765 to 37929b4 Compare May 28, 2026 20:35
Base automatically changed from minimally-encoded-cid-tag to master June 1, 2026 10:39
The short f16 NaN was already erroring, but the longer f32 and f64
versions should also error. DAG-CBOR does neither support NaN, nor
Infinity.
@vmx vmx requested a review from rvagg June 1, 2026 11:07
@vmx vmx merged commit 5a63a04 into master Jun 1, 2026
6 checks passed
@vmx vmx deleted the nan-inf-long branch June 1, 2026 11:53
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