[Kaffe] could this buffer overflow?

Godmar Back gback at cs.utah.edu
Fri Feb 5 15:32:04 PST 1999


> 
> Ok how about this on top of my last patch. Would that work correctly?
> Does KMALLOC() work just like malloc() except for the signals thing?

Yes.

> I noticed some code in other places where KMALLOC() is used but the
> memory is never KFREE()ed. I assume those were errors.

Can you point out where you think KMALLOC is used and the memory
is never freed?  Note that in many places, KFREE is invoked when
the referring objects get gc'd, for instance in gcFuncs.c:destroyClass

	- Godmar



More information about the kaffe mailing list