1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
Commit Graph

20 Commits

Author SHA1 Message Date
Lucas Jenss
6998ffbb14 cppcheck: Provide consistent reason formatting for all cppcheck-suppresses 2017-10-10 10:25:20 -07:00
Pieter Willemsen
b76bfec0a3 cbor: fix out of bound memory access 2017-08-28 14:42:43 +02:00
Pieter Willemsen
6706e763d4 sys: cbor: add test app for cbor_stream_decode 2017-06-27 17:47:47 +02:00
Pieter Willemsen
29e8bd1351 sys: cbor: makefiles can enable cbor functionality
new cbor pseudomodules:
- cbor_ctime
- cbor_float
- cbor_semantic_tagging
2017-06-27 17:45:42 +02:00
Lucio Torre
d783d784c9 cbor: add zero copy string deserialization 2017-01-18 19:33:00 +01:00
Martine Lenders
f341947612 cbor: fix off-by-one error 2016-10-24 15:52:05 +02:00
Joakim Nohlgård
686cad8170 tests/unittests/tests-cbor: Add static to compilation-unit local variables 2016-02-11 15:19:56 +01:00
René Kijewski
11ce199c41 cbor: compare asserted lengths in unit test
In `test_array`, `test_array` and `test_map` the variable `offset` was
written to but not read. The accumulated value should equal the total
length of the input. This diff adds this check and fixes the warning
in turn.

Found via scan-build.
2015-08-25 21:16:50 +02:00
Martine Lenders
904b363b77 unittests: remove unnecessary MODULE macro definition 2015-03-04 18:07:03 +01:00
René Kijewski
f684aa4b2d tests: make embUnit a normal sys module
There is nothing quite special about embUnit.

This PR makes it a normal sys module, so that you can use it in any
application / test.
2014-12-21 20:04:57 +01:00
Hinnerk van Bruinehsen
bef32717bf test:cbor: supress warnings about nan/infty 2014-09-19 23:59:49 +02:00
René Kijewski
0cc699c0ce lint: reduce scope
Fix some lint warnings of kind
```
style (variableScope): The scope of the variable '…' can be reduced
```
2014-09-12 11:50:12 +02:00
Ludwig Ortmann
457be31b6f Merge pull request #1616 from krf/fix-warnings
Fix comment
2014-08-27 19:38:27 +02:00
Kevin Funk
554e431746 Fix comments 2014-08-27 11:36:36 +02:00
Ludwig Ortmann
3d611679ee Merge pull request #1599 from LudwigOrtmann/issue-1597
sys/cbor,tests: fix cbor daylight saving time
2014-08-27 11:11:49 +02:00
Martine Lenders
5bad5a0fda unittests: Fix coding conventions 2014-08-27 10:48:10 +02:00
Martine Lenders
2709d95e1a unittests: Fix -Wunused-parameter warnings 2014-08-27 10:48:09 +02:00
Martine Lenders
4960c57153 unittests: Fix -Waddress warnings 2014-08-27 10:48:05 +02:00
Ludwig Ortmann
40a81e4f4c tests: fix cbor unittest
Some member of `struct tm val` were not set, resulting in undefined
behavior.
2014-08-27 10:25:23 +02:00
Kevin Funk
e8141ca5d8 cbor: CBOR implementation for RIOT-OS
This is a malloc-free implementation of the Concise Binary Object
Representation (CBOR) data format for the RIOT-OS.

This implementation mostly stand-alone, and it should be pretty easy to
port to other platforms. We're only using the C STL and some custom
network-related functionaliy which could be easily replaced by depending
on arpa/inet.h.

The CBOR API is straight-forward to use and provides encoding/decoding
functionality for all major C types, such as:
- int
- uint64_t
- int64_t
- float
- double
- char*
- struct tm
- time_t

It is possible to conditionally compile this module via CFLAGS:
- CBOR_NO_SEMANTIC_TAGGING: All semantic-tagging features removed
- CBOR_NO_CTIME: All ctime related features removed
- CBOR_NO_FLOAT: All floating-point related features removed
- CBOR_NO_PRINT: All features depending on printf removed
2014-08-05 19:49:51 +02:00