From 64f78ef63be0e51e894ffd096de35c8a8f2ab034 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Tue, 6 Aug 2002 03:28:45 +0000 Subject: Unify calloc (its the same thing regardless of the underlying malloc implementation). Fix problem reported to bugtraq about problems with integer overflow that can occur during the computation of the memory region size by calloc (and similar functions) which could result in a subsequent buffer overflow. -Erik --- libc/stdlib/malloc/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libc/stdlib/malloc/Makefile') diff --git a/libc/stdlib/malloc/Makefile b/libc/stdlib/malloc/Makefile index 6d1e89186..30e5b9e2a 100644 --- a/libc/stdlib/malloc/Makefile +++ b/libc/stdlib/malloc/Makefile @@ -24,8 +24,8 @@ TOPDIR=../../../ include $(TOPDIR)Rules.mak -CSRC = malloc.o free.o realloc.o calloc.o heap_alloc.o \ - heap_alloc_at.o heap_free.o +CSRC = malloc.o free.o realloc.o heap_alloc.o \ + heap_alloc_at.o heap_free.o ../malloc-930716/calloc.o COBJS=$(patsubst %.c,%.o, $(CSRC)) OBJS=$(COBJS) -- cgit v1.2.3