Date: Mon, 26 Jun 2006 05:16:55 GMT From: John Birrell <jb@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 100020 for review Message-ID: <200606260516.k5Q5Gtrw018966@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=100020 Change 100020 by jb@jb_freebsd2 on 2006/06/26 05:16:11 Ensure that the string in the buffer really is zero terminated. Affected files ... .. //depot/projects/dtrace/src/sys/boot/common/boot.c#3 edit Differences ... ==== //depot/projects/dtrace/src/sys/boot/common/boot.c#3 (text+ko) ==== @@ -194,6 +194,9 @@ * input line to the environment. */ if (n_buf > 0 && (p = strchr(p_buf, '=')) != NULL) { + /* Zero terminate the value. */ + p_buf[n_buf] = '\0'; + /* Zero terminate the name. */ *p = '\0';
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200606260516.k5Q5Gtrw018966>