[riot-notifications] [RIOT-OS/RIOT] pkg/nanocbor: fix decoding of indefinite arrays and maps (#15411)

benpicco notifications at github.com
Mon Nov 9 14:52:04 CET 2020

The RIOT community cares a lot about code quality.
Therefore, before describing what your contribution is about, we would like
you to make sure that your modifications are compliant with the RIOT
coding conventions, see https://github.com/RIOT-OS/RIOT/wiki/Coding-conventions.

### 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 https://github.com/bergzand/NanoCBOR/pull/21
You can view, comment on, or merge this pull request online at:


-- Commit Summary --

  * pkg/nanocbor: bump version
  * pkg/nanocbor: fix decoding of indefinite arrays and maps
  * tests/pkg_nanocbor: add encode - decode test

-- File Changes --

    M pkg/nanocbor/Makefile (2)
    A pkg/nanocbor/patches/0001-decoder-fix-decoding-of-indefinite-arrays-and-maps.patch (37)
    M tests/pkg_nanocbor/main.c (133)

-- Patch Links --


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20201109/0f0f3ae0/attachment.htm>

More information about the notifications mailing list