Skip to content

Port #851 from release-2.9 to master - #853

Merged
fxamacker merged 1 commit into
masterfrom
fxamacker/port-pr-851-to-master
Oct 6, 2026
Merged

fxamacker merged 1 commit into
masterfrom
fxamacker/port-pr-851-to-master

Conversation

@fxamacker

Copy link
Copy Markdown
Owner

See PR #851 for details.

Not affected: user apps that don't decode CBOR null or undefined
enclosed in tag number 55799 (e.g. 55799(null)) to a pointer or
interface value.

Tag number 55799 has no semantics (RFC 8949 Section 3.4.6), so
55799(null) should decode the same as null.  Previously, decoding
55799(null) set a nil pointer to a new zero value, and let a non-nil
pointer or interface keep its value.

This commit decodes 55799(null) the same as null, setting a pointer
and interface to nil.  It also allows 55799 enclosing a registered tag
to be decoded to an interface implemented by the registered type.
@fxamacker fxamacker self-assigned this Oct 5, 2026
@fxamacker
fxamacker merged commit c19111c into master Oct 6, 2026
30 of 31 checks passed
@fxamacker
fxamacker deleted the fxamacker/port-pr-851-to-master branch October 27, 2026 16:42
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