]> granicus.if.org Git - python/commitdiff
Reduce the max stack depth to see if this fixes the segfaults on
authorNeal Norwitz <nnorwitz@gmail.com>
Thu, 17 May 2007 06:11:36 +0000 (06:11 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Thu, 17 May 2007 06:11:36 +0000 (06:11 +0000)
Windows and some other boxes.  If this is successful, this rev should
be backported.  I'm not sure how close to the limit we should push this.

Python/marshal.c

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