mirror of
https://github.com/opnsense/src.git
synced 2026-04-15 14:29:58 -04:00
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
9 lines
216 B
Text
9 lines
216 B
Text
# $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
|