* 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:
Guido van Rossum 1992-08-19 16:46:30 +00:00
parent b001f7adb1
commit 1e28e5e596
4 changed files with 83 additions and 3 deletions

View file

@ -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 *));