summaryrefslogtreecommitdiffstats
path: root/Include/allobjects.h
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1992-08-19 16:46:30 (GMT)
committerGuido van Rossum <guido@python.org>1992-08-19 16:46:30 (GMT)
commit1e28e5e59634f56cdeaff528afb122a5735adf09 (patch)
tree2afa725a3a344c2350902947c30f59d1a22e00ff /Include/allobjects.h
parentb001f7adb16e054baa31213e4609b3be2138cade (diff)
downloadcpython-1e28e5e59634f56cdeaff528afb122a5735adf09.zip
cpython-1e28e5e59634f56cdeaff528afb122a5735adf09.tar.gz
cpython-1e28e5e59634f56cdeaff528afb122a5735adf09.tar.bz2
* 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)
Diffstat (limited to 'Include/allobjects.h')
-rw-r--r--Include/allobjects.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Include/allobjects.h b/Include/allobjects.h
index 348f04e..dd78a83 100644
--- a/Include/allobjects.h
+++ b/Include/allobjects.h
@@ -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 *));