svn commit: r282094 - stable/10/sys/geom/uncompress
Pedro F. Giffuni
pfg at FreeBSD.org
Mon Apr 27 14:59:32 UTC 2015
Author: pfg
Date: Mon Apr 27 14:59:31 2015
New Revision: 282094
URL: https://svnweb.freebsd.org/changeset/base/282094
Log:
MFC r281769:
g_uncompress_taste: prevent a double free.
Found by: Clang Static Analyzer
Modified:
stable/10/sys/geom/uncompress/g_uncompress.c
Directory Properties:
stable/10/ (props changed)
Modified: stable/10/sys/geom/uncompress/g_uncompress.c
==============================================================================
--- stable/10/sys/geom/uncompress/g_uncompress.c Mon Apr 27 14:18:07 2015 (r282093)
+++ stable/10/sys/geom/uncompress/g_uncompress.c Mon Apr 27 14:59:31 2015 (r282094)
@@ -571,6 +571,7 @@ g_uncompress_taste(struct g_class *mp, s
(buf+sizeof(struct cloop_header)))[i]);
}
free(buf, M_GEOM);
+ buf = NULL;
DPRINTF(("%s: done reading offsets\n", gp->name));
mtx_init(&sc->last_mtx, "geom_uncompress cache", NULL, MTX_DEF);
sc->last_blk = -1;
More information about the svn-src-stable-10
mailing list