]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Closes: #556025 seg fault when doing list(xrange(1e9))
authorNeal Norwitz <nnorwitz@gmail.com>
Thu, 23 May 2002 13:02:37 +0000 (13:02 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Thu, 23 May 2002 13:02:37 +0000 (13:02 +0000)
commit81a09965d7131f25cc15fa4dca92e842e87e55d1
tree298325fc1a1d43d8898d7a4f9dd3afb0e80d6dab
parente8e787fe446e4c6e28b9cf7e696ea02c97371499
Closes: #556025 seg fault when doing list(xrange(1e9))
A MemoryError is now raised when the list cannot be created.
There is a test, but as the comment says, it really only
works for 32 bit systems.  I don't know how to improve
the test for other systems (ie, 64 bit or systems
where the data size != addressable size,
e.g. 64 bit data, but 48 bit addressable memory)
Lib/test/test_b1.py
Objects/listobject.c