Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Backport v2.0 fix to v1.5 (sanitize decoded NaN and Infinity time values) #141

@x448

Description

@x448

This was resolved in v2.0 #120 by the decoder treating CBOR NaN and Infinity time values as if they were CBOR Null.

Also update godoc overview to point to v2.x releases and encourage projects to upgrade.

CBOR RFC 7049 specified the same tag number to allow integer and float content representing time. By comparison, MessagePack avoided float while still supporting nanosecond time resolution with their unsigned integer timestamp "tag" (extension).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions