This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author larry
Recipients larry, madness, xiang.zhang
Date 2016-06-07.10:13:25
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1465294405.52.0.717820941329.issue27235@psf.upfronthosting.co.za>
In-reply-to
Content
I agree with the previous comment author.  Can you post a sample program that crashes Python?  Please specify what platform you're running on.

On 32-bit platforms, you'd be unable to construct even the first "r" * ((2**32)-1) string.  That string would use 4GB of memory, and 32-bit platforms always reserve some virtual memory space for the OS.

Even if you could construct the first one, you couldn't create the second one.  mode would be NULL and the next line (which you didn't paste below) would notice the NULL and throw an exception.

On 64-bit platforms, strlen() returns a 64-bit signed integer, and a string of length (2**32)-1 is no problem as long as you have enough memory.
History
Date User Action Args
2016-06-07 10:13:25larrysetrecipients: + larry, xiang.zhang, madness
2016-06-07 10:13:25larrysetmessageid: <1465294405.52.0.717820941329.issue27235@psf.upfronthosting.co.za>
2016-06-07 10:13:25larrylinkissue27235 messages
2016-06-07 10:13:25larrycreate