mirror of
https://github.com/python/cpython.git
synced 2026-05-14 00:18:52 -04:00
1e28e5e596
argument to malloc() (size_t or unsigned int) * listobject.c: check for overflow of the size of the object, so things like range(0x7fffffff) will raise MemoryError instead of calling malloc() with -4 (and then crashing -- malloc's fault)