cabo / cbor-ruby

CBOR (RFC 7049) extension for Ruby
45 stars 12 forks source link

Tags with 8 byte IDs aren't decoded properly #12

Closed btoews closed 5 years ago

btoews commented 5 years ago

Shorter IDs seem to work, but 8 byte IDs are are totally garbled. This is a simple example

CBOR.decode(CBOR::Tagged.new(0xDEADBEEFDEADBEEF, 1).to_cbor).tag == 0xDEADBEEFDEADBEEF
# => false
cabo commented 5 years ago

Confirmed. Code is missing for handling bignum tag numbers (more than 62 bits), or any type check on the tag number at all, actually. I should be able to fix this today.

btoews commented 5 years ago

Thanks!