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

Bug fixed in cn-cbor library#59

Open
batyrkhan14 wants to merge 1 commit intocabo:masterfrom
batyrkhan14:master
Open

Bug fixed in cn-cbor library#59
batyrkhan14 wants to merge 1 commit intocabo:masterfrom
batyrkhan14:master

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