Browse Source

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

Julius Pfrommer 5 years ago
parent
commit
93c4d6caf2
1 changed files with 2 additions and 1 deletions
  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 */