cbortojson.c uses open_memstream for part of its functionality, which
isn't available with the Microsoft CRT, so it's excluded.
Signed-off-by: Thiago Macieira <thiago.macieira@intel.com>
We then avoid recompiling every time. Exceptions:
- tst_parser requires a recursion limit set
- tst_cpp #includes so that the sources are compiled as C++
Signed-off-by: Thiago Macieira <thiago.macieira@intel.com>
It's very easy for a short packet to contain a very high number of
nested arrays (a packet with N bytes can be N-1 nested arrays), which
could cause stack overflow problems in devices using
cbor_value_map_find_value, so ensure that we won't crash.
The actual value needs to be chosen by the implementor depending on the
stack size of their devices and the expected usage.
Signed-off-by: Thiago Macieira <thiago.macieira@intel.com>
This commit also starts to add unit tests.
The API, as tested, works. The simplereader.c example is probably broken
and will be fixed later.
Signed-off-by: Thiago Macieira <thiago.macieira@intel.com>