Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pkg/nanocbor: fix decoding of indefinite arrays and maps #15411

Closed
wants to merge 3 commits into from

Conversation

benpicco
Copy link
Contributor

@benpicco benpicco commented Nov 9, 2020

Contribution description

There is a bug in NanoCBOR that prevents decoding of indefinite elements.
An out-of-tree patch exists to fix that, include this in our pkg.

Testing procedure

A test was added to tests/pkg_nanocbor to test encoding / decoding of an indefinite map.
The test will fail on master.

Issues/PRs references

upstream PR bergzand/NanoCBOR#21

benpicco and others added 3 commits November 9, 2020 14:44
Add a test that serializes a config and then decodes it to see if the
result matches the original.
@benpicco benpicco requested a review from bergzand November 9, 2020 13:52
@benpicco benpicco added Area: pkg Area: External package ports Type: bug The issue reports a bug / The PR fixes a bug (including spelling errors) CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR labels Nov 9, 2020
@fjmolinas
Copy link
Contributor

ping @bergzand !

@benpicco benpicco added CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR and removed CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR labels Nov 13, 2020
@miri64 miri64 self-requested a review December 15, 2020 09:16
@miri64 miri64 assigned miri64 and unassigned miri64 Dec 15, 2020
@benpicco
Copy link
Contributor Author

bergzand/NanoCBOR#31 provides an alternative fix for the issue

@benpicco benpicco closed this Feb 16, 2021
@benpicco benpicco deleted the pkg/nanocbor-fix_indefinite branch February 16, 2021 09:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: pkg Area: External package ports CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Type: bug The issue reports a bug / The PR fixes a bug (including spelling errors)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants