I hope this is the right place to submit a patch for the CBOR package found on MELPA.
There is currently an issue in cbor.el where strings with a length of exactly 256 are encoded as if they had a length of 0. This causes the UTF-8 bytes of the string to be interpreted as CBOR bytes, leading to a garbled message.
The greatest number that can be encoded in a single byte is 255, for a string of length 256 we need a second byte to encode the length.
I hope this is the right place to submit a patch for the CBOR package found on MELPA.
There is currently an issue in cbor.el where strings with a length of exactly 256 are encoded as if they had a length of 0. This causes the UTF-8 bytes of the string to be interpreted as CBOR bytes, leading to a garbled message.
The greatest number that can be encoded in a single byte is 255, for a string of length 256 we need a second byte to encode the length.