Date: Tue, 17 Jan 2006 10:19:38 +0000 (UTC) From: Pawel Jakub Dawidek <pjd@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/kern kern_malloc.c Message-ID: <200601171019.k0HAJcUp092499@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200601171019.k0HAJcUp092499>