Skip to content

[cbor] Overflow when decoding uint32 for Major type 0 #30

@cowtowncoder

Description

@cowtowncoder

(moved from jackson-dataformat-cbor, by @TianlinZhou)


When decoding unit32 that is larger than 2^31 - 1, overflow will happen.
For example, decoding "1a 8a e8 08 f1" will get -1964504847, but it should be 2330462449.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions