fix missing Xcheck leading to overflow for strings > 127 array elements
This commit is contained in:
parent
f21d6a3ffd
commit
5c8f42c841
3
funcs.c
3
funcs.c
@ -38,7 +38,7 @@
|
|||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
__RCSID("$MirOS: src/bin/mksh/funcs.c,v 1.303 2016/07/28 21:39:18 tg Exp $");
|
__RCSID("$MirOS: src/bin/mksh/funcs.c,v 1.304 2016/08/01 14:23:24 tg Exp $");
|
||||||
|
|
||||||
#if HAVE_KILLPG
|
#if HAVE_KILLPG
|
||||||
/*
|
/*
|
||||||
@ -419,6 +419,7 @@ c_print(const char **wp)
|
|||||||
do {
|
do {
|
||||||
if (!evaluate(*wp, &wc, KSH_RETURN_ERROR, true))
|
if (!evaluate(*wp, &wc, KSH_RETURN_ERROR, true))
|
||||||
return (1);
|
return (1);
|
||||||
|
Xcheck(xs, xp);
|
||||||
if (UTFMODE) {
|
if (UTFMODE) {
|
||||||
ts[utf_wctomb(ts, wc)] = 0;
|
ts[utf_wctomb(ts, wc)] = 0;
|
||||||
c = 0;
|
c = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user