Re: [Python-Dev] recursion limit in marshal

2007-05-17 Thread Martin v. Löwis
> The point of this message is to see if anyone thinks 2000 is > unreasonable. It could probably be raised, but I'm not going to try > it since I don't have access to a Windows box. Testing this remotely > sucks. If this turns out ever to be a limitation, I would challenge the reporter to rewrit

[Python-Dev] recursion limit in marshal

2007-05-17 Thread Neal Norwitz
I had a little argument with the marshal module on Windows last night, I eventually won. :-) A patch was checked in which would prevent blowing out the stack and segfaulting with this code: marshal.loads( 'c' + ('X' * 4*4) + '{' * 2**20) Originally, I didn't change the recursion limit which