mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +00:00
* renamed malloc.h mymalloc.h, and added MALLARG as the type of the
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)
This commit is contained in:
parent
b001f7adb1
commit
1e28e5e596
4 changed files with 83 additions and 3 deletions
|
@ -49,6 +49,6 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|||
#endif
|
||||
|
||||
#include "PROTO.h"
|
||||
#include "malloc.h"
|
||||
#include "mymalloc.h"
|
||||
|
||||
extern void fatal PROTO((char *));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue