4a4867d667
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
10 lines
216 B
Plaintext
10 lines
216 B
Plaintext
# $FreeBSD$
|
|
|
|
# Shells do not agree about what this pattern should match, but it is
|
|
# certain that it must not crash and the missing close bracket must not
|
|
# be simply ignored.
|
|
|
|
case B in
|
|
[[:alpha:]) echo bad ;;
|
|
esac
|