cn-cbor icon indicating copy to clipboard operation
cn-cbor copied to clipboard

Bug fixed in cn-cbor library

Open batyrkhan14 opened this issue 5 years ago • 1 comments

When encoding cn_cbor structure before writing any chunk of bytes into buffer, library ensures that there is enough space to write current chunk. It is done by the following inequality: offset+length >= size. If inequality is true, then library decides that there is no enough space. However, if offset+length == size then there is still enough space to write a chunk of size length.

batyrkhan14 avatar Jul 08 '19 22:07 batyrkhan14

This same change is also in #25 and the same problem also fixed by #49.

sbertin-telular avatar Jul 09 '19 11:07 sbertin-telular