瀏覽代碼

Encoding: Allow type-nesting up to a depth of 100

Julius Pfrommer 6 年之前
父節點
當前提交
93c4d6caf2
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      src/ua_types_encoding_binary.c

+ 2 - 1
src/ua_types_encoding_binary.c

@@ -34,7 +34,8 @@
  * is "looped through" every method call. The ``_``-macro accesses either the
  * thread-local or the "looped through" context . */
 
-#define UA_ENCODING_MAX_RECURSION 20
+/* Part 6 §5.1.5: Decoders shall support at least 100 nesting levels */
+#define UA_ENCODING_MAX_RECURSION 100
 
 typedef struct {
     /* Pointers to the current position and the last position in the buffer */