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
..
2015-02-15 21:47:43 +00:00
2015-03-01 22:32:23 +00:00
2015-03-01 22:32:23 +00:00
2014-12-21 22:18:30 +00:00
2015-03-01 22:32:23 +00:00
2014-05-09 13:27:30 +00:00
2012-01-01 22:17:12 +00:00
2015-06-13 19:20:56 +00:00
2013-04-07 16:28:36 +00:00
2014-10-05 21:51:36 +00:00
2013-07-25 19:48:15 +00:00
2013-07-25 15:08:41 +00:00