38f18137f8
sys/cbor: DEBUG fixes
2018-01-15 14:37:05 +01:00
kYc0o
4839a1cbbf
sys/cbor/cbor.c: add <time.h> if ctime module is used
2017-10-24 16:03:31 +02:00
kYc0o
084aa48e21
sys/cbor/Makefile: align to two spaces
2017-10-24 16:02:58 +02:00
Sören Tempel
8255810bab
cbor: fix integer overflow in decode_bytes
2017-10-10 13:24:52 +02:00
Pieter Willemsen
b76bfec0a3
cbor: fix out of bound memory access
2017-08-28 14:42:43 +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
cfd10c394a
adapt to changed byteorder.h
2017-04-13 11:35:35 +02:00
Matias Devenuta
63bcccf43d
cbor: Packed struct to bypass unaligned stack
...
This can happen due to cast using buggy GCC on ARMv7
Credit to our shy french pal
2017-01-18 20:40:30 +01:00
Lucio Torre
04fc0b35a7
cbor: introduce cbor_serialize_byte_stringl
2017-01-18 19:33:00 +01:00
Lucio Torre
f6db56929f
cbor: check return value for zero
2017-01-18 19:33:00 +01:00
Lucio Torre
d783d784c9
cbor: add zero copy string deserialization
2017-01-18 19:33:00 +01:00
Lucio Torre
1c64d45b31
cbor: introduce bounds checking on read
2017-01-18 19:32:59 +01:00
smlng
e867d83eff
cbor: fix redefined macro error on macOS
2016-11-10 16:16:06 +01:00
Martine Lenders
f341947612
cbor: fix off-by-one error
2016-10-24 15:52:05 +02:00
Oleg Hahm
b428979a1d
debug: add missing line breaks
2016-09-27 23:38:41 +02:00
Thomas Eichinger
e93fd66dbb
sys/cbor: change array initializer from const variable to #define
...
OS X clang complains "folded to constant array as an extension"
[-Wgnu-folding-constant]
2015-09-30 15:29:32 +02:00
Tobias Markmann
f5418fa666
cbor: add API to encode non null-terminated byte strings
2015-08-06 22:30:44 +02:00
kushalsingh007
390e030f84
Removing the warnings after running static code analyser.
...
-Changes to fix all the clarifyCalulation warnings.
-Fixes a part of issue number 480
2015-03-10 04:08:43 +05:30
Lotte Steenbrink
1bd60400f0
add parentheses to ENABLE_DEBUG in CBOR_NO_PRINT
2014-12-17 03:03:33 -08:00
René Kijewski
c85610437b
sys: use byteorder.h in cbor.c
2014-11-19 00:46:45 +01:00
Hinnerk van Bruinehsen
aca4724447
lint: fix warnings of possible nullPointer dereferences
2014-10-31 01:24:30 +01: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
58a41d2ff2
sys/cbor: set isdst to undefined after strptime
...
CBOR does not specify the daylight saving time adjustment.
2014-08-27 10:25:22 +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