Skip to content
This repository has been archived by the owner on Apr 9, 2020. It is now read-only.

Bug fixed in cn-cbor library #59

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

batyrkhan14
Copy link

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.

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.
@sbertin-telular
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants