mirror of
https://github.com/python/cpython.git
synced 2025-07-31 15:14:22 +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
|
@ -50,7 +50,7 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|||
#include "fileobject.h"
|
||||
|
||||
#include "errors.h"
|
||||
#include "malloc.h"
|
||||
#include "mymalloc.h"
|
||||
|
||||
extern char *strdup PROTO((const char *));
|
||||
extern void fatal PROTO((char *));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue