]> granicus.if.org Git - python/commitdiff
Last try for tweaking the max stack depth. 5000 was the original value,
authorNeal Norwitz <nnorwitz@gmail.com>
Thu, 17 May 2007 07:04:46 +0000 (07:04 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Thu, 17 May 2007 07:04:46 +0000 (07:04 +0000)
4000 didn't work either.  1000 does work on Windows.  If 2000 works,
that will hopefully be a reasonable balance.

Python/marshal.c

index c3d47607ad1acfaedbd25fc8298fe1efd36558f9..eac4616cc569580f3de57dfa60fe394bc2005007 100644 (file)
@@ -15,7 +15,7 @@
  * and risks coring the interpreter.  When the object stack gets this deep,
  * raise an exception instead of continuing.
  */
-#define MAX_MARSHAL_STACK_DEPTH 1000
+#define MAX_MARSHAL_STACK_DEPTH 2000
 
 #define TYPE_NULL              '0'
 #define TYPE_NONE              'N'