Skip to content
代码片段 群组 项目
提交 4a99af92 编辑于 作者: Thiago Macieira's avatar Thiago Macieira
浏览文件

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: default avatarThiago Macieira <thiago.macieira@intel.com>
上级 3f76f639
No related branches found
No related tags found
加载中
加载中
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册