bergzand / NanoCBOR

CBOR library aimed at heavily constrained devices
Creative Commons Zero v1.0 Universal
47 stars 23 forks source link

Decoder: Fix nanocbor_get_tag for tags >= NANOCBOR_SIZE_BYTE #55

Closed jue89 closed 3 years ago

jue89 commented 3 years ago

If the provided variable tag isn't initialized with 0, MSBs are not cleared by the internal function _get_uint64.

fjmolinas commented 3 years ago

@bergzand can you take a look at this one?

bergzand commented 3 years ago

Thanks!