freebsd-skq/bin/sh
Jilles Tjoelker 4a4867d667 sh: Fix out of bounds read when there is no ] after a [:class:].
The initial check for a matching ] was incorrect if a ] may be consumed by a
[:class:]. The subsequent loop assumed that there must be a ].

Remove the initial check and make the loop cope with a missing ].

Found with afl-fuzz.

MFC after:	1 week
2015-08-25 21:55:15 +00:00
..
bltin
funcs
tests sh: Fix out of bounds read when there is no ] after a [:class:]. 2015-08-25 21:55:15 +00:00
alias.c
alias.h
arith_yacc.c
arith_yacc.h
arith_yylex.c
arith.h
builtins.def
cd.c
cd.h
error.c
error.h
eval.c
eval.h
exec.c
exec.h
expand.c sh: Fix out of bounds read when there is no ] after a [:class:]. 2015-08-25 21:55:15 +00:00
expand.h
histedit.c
input.c
input.h
jobs.c
jobs.h
mail.c
mail.h
main.c
main.h
Makefile
Makefile.depend
memalloc.c
memalloc.h
miscbltin.c
mkbuiltins
mknodes.c
mksyntax.c
mktokens
myhistedit.h
mystring.c
mystring.h
nodes.c.pat
nodetypes
options.c
options.h
output.c
output.h
parser.c sh: Don't create bad parse result when postponing a bad substitution error. 2015-08-23 20:44:53 +00:00
parser.h
redir.c
redir.h
sh.1
shell.h
show.c
show.h
TOUR
trap.c
trap.h
var.c
var.h