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-930716/Makefile | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'libc/stdlib/malloc-930716/Makefile') diff --git a/libc/stdlib/malloc-930716/Makefile b/libc/stdlib/malloc-930716/Makefile index b9dfea9f2..07dc94898 100644 --- a/libc/stdlib/malloc-930716/Makefile +++ b/libc/stdlib/malloc-930716/Makefile @@ -26,10 +26,7 @@ include $(TOPDIR)Rules.mak CSRC=calloc.c malloc.c COBJS=$(patsubst %.c,%.o, $(CSRC)) - -MSRC=../malloc/alloc.c -MOBJ=#malloc_dbg.o free_dbg.o calloc_dbg.o -OBJS=$(COBJS) $(MOBJ) +OBJS=$(COBJS) all: $(OBJS) $(LIBC) @@ -38,10 +35,6 @@ $(LIBC): ar-target ar-target: $(OBJS) $(AR) $(ARFLAGS) $(LIBC) $(OBJS) -$(MOBJ): $(MSRC) - $(CC) $(CFLAGS) -DL_$* $< -c -o $*.o - $(STRIPTOOL) -x -R .note -R .comment $*.o - $(COBJS): %.o : %.c $(CC) $(CFLAGS) -c $< -o $@ $(STRIPTOOL) -x -R .note -R .comment $*.o -- cgit v1.2.3