pjd 2006-01-17 10:19:38 UTC FreeBSD src repository
Modified files: (Branch: RELENG_6) sys/kern kern_malloc.c Log: MFC: sys/kern/kern_malloc.c 1.150 In realloc(9), determine size of the original block based on UMA_SLAB_MALLOC flag. In some circumstances (I observed it when I was doing a lot of reallocs) UMA_SLAB_MALLOC can be set even if us_keg != NULL. If this is the case we have wonderful, silent data corruption, because less data is copied to the newly allocated region than should be. Revision Changes Path 1.142.2.7 +1 -1 src/sys/kern/kern_malloc.c _______________________________________________ cvs-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/cvs-all To unsubscribe, send any mail to "[EMAIL PROTECTED]"