Author: avg Date: Sun Mar 31 14:02:43 2013 New Revision: 248948 URL: http://svnweb.freebsd.org/changeset/base/248948
Log: MFC r248640: fbt_typoff_init: fix an off by one in determining required memory size Modified: stable/8/sys/cddl/dev/fbt/fbt.c Directory Properties: stable/8/sys/ (props changed) stable/8/sys/cddl/ (props changed) Modified: stable/8/sys/cddl/dev/fbt/fbt.c ============================================================================== --- stable/8/sys/cddl/dev/fbt/fbt.c Sun Mar 31 14:02:28 2013 (r248947) +++ stable/8/sys/cddl/dev/fbt/fbt.c Sun Mar 31 14:02:43 2013 (r248948) @@ -777,6 +777,8 @@ fbt_typoff_init(linker_ctf_t *lc) pop[kind]++; } + /* account for a sentinel value below */ + ctf_typemax++; *lc->typlenp = ctf_typemax; if ((xp = malloc(sizeof(uint32_t) * ctf_typemax, M_LINKER, M_ZERO | M_WAITOK)) == NULL) _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"