]> granicus.if.org Git - python/commitdiff
Set the depth to something very small to try to determine if the
authorNeal Norwitz <nnorwitz@gmail.com>
Thu, 17 May 2007 06:23:50 +0000 (06:23 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Thu, 17 May 2007 06:23:50 +0000 (06:23 +0000)
crashes on Windows are really due to the stack size or possibly
some other problem.

Python/marshal.c

index 60eeaaaa3c0d7b0d3e1c7fe32683ff3fbc3daaeb..c3d47607ad1acfaedbd25fc8298fe1efd36558f9 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 4000
+#define MAX_MARSHAL_STACK_DEPTH 1000
 
 #define TYPE_NULL              '0'
 #define TYPE_NONE              'N'