Explorar o código

Merge pull request #910 from quagla/maxdepth

Increase depth recursion limit
Lee Thomason %!s(int64=3) %!d(string=hai) anos
pai
achega
9a89766acc
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      tinyxml2.h

+ 1 - 1
tinyxml2.h

@@ -112,7 +112,7 @@ static const int TIXML2_PATCH_VERSION = 0;
 // system, and the capacity of the stack. On the other hand, it's a trivial
 // attack that can result from ill, malicious, or even correctly formed XML,
 // so there needs to be a limit in place.
-static const int TINYXML2_MAX_ELEMENT_DEPTH = 100;
+static const int TINYXML2_MAX_ELEMENT_DEPTH = 500;
 
 namespace tinyxml2
 {