]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Do not strip CTL* escapes from redirection filenames in argstr(); they
authortjr <tjr@FreeBSD.org>
Tue, 8 Oct 2002 11:22:49 +0000 (11:22 +0000)
committertjr <tjr@FreeBSD.org>
Tue, 8 Oct 2002 11:22:49 +0000 (11:22 +0000)
commit33d1a8b9c2dbe4bc22843213ff3044d86bb37710
treeca04efa366286bf2ecbc3dd250f40bef3ebcd13c
parentecc00e796caa335a30f92a49f25e5f2b67fda730
Do not strip CTL* escapes from redirection filenames in argstr(); they
are later stripped with rmescapes() in expandarg(). If the filename has
already been unescaped, doing it again in rmescapes() can walk off the
end of the string, leading to memory corruption and eventually SIGSEGV.

Noticed by: kris
bin/sh/expand.c