This repository has been archived on 2026-09-06. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
golem-v1-tinycbor/tests/parser/parser.pro
T
Thiago Macieira 4a99af92dc Implement the recursion limit in the CBOR decoder API
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>
2015-05-12 17:45:37 +09:00

8 lines
153 B
Prolog

SOURCES += tst_parser.cpp
CONFIG += testcase parallel_test c++11
QT = core testlib
DEFINES += CBOR_PARSER_MAX_RECURSIONS=16
include(../../src/src.pri)