svn commit: r309335 - stable/11/usr.bin/ncal
Eric van Gyzen
vangyzen at FreeBSD.org
Wed Nov 30 20:51:15 UTC 2016
Author: vangyzen
Date: Wed Nov 30 20:51:14 2016
New Revision: 309335
URL: https://svnweb.freebsd.org/changeset/base/309335
Log:
MFC r308340
ncal: fix a reference to an out-of-scope stack buffer
PR: 214237
Submitted by: Jonathan de Boyne Pollard
Sponsored by: Dell EMC
Modified:
stable/11/usr.bin/ncal/ncal.c
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/usr.bin/ncal/ncal.c
==============================================================================
--- stable/11/usr.bin/ncal/ncal.c Wed Nov 30 20:48:44 2016 (r309334)
+++ stable/11/usr.bin/ncal/ncal.c Wed Nov 30 20:51:14 2016 (r309335)
@@ -1110,7 +1110,8 @@ highlight(char *dst, char *src, int len,
static const char *term_so, *term_se;
if (first) {
- char tbuf[1024], cbuf[512], *b;
+ static char cbuf[512];
+ char tbuf[1024], *b;
term_se = term_so = NULL;
More information about the svn-src-stable
mailing list