mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-04 16:35:02 +01:00
parser: add test case for empty character class regex
This patch adds a test that verifies the parser considers an emty character class regex as a parse arror. Signed-off-by: Steve Beattie <steve@nxnw.org> Acked-By: Christian Boltz <apparmor@cboltz.de>
This commit is contained in:
parent
73a5f13175
commit
8bda1488dc
1 changed files with 8 additions and 0 deletions
8
parser/tst/simple_tests/file/bad_re_brace_1.sd
Normal file
8
parser/tst/simple_tests/file/bad_re_brace_1.sd
Normal file
|
@ -0,0 +1,8 @@
|
|||
#
|
||||
#=DESCRIPTION regex with empty character class (brace)
|
||||
#=EXRESULT FAIL
|
||||
#
|
||||
/usr/bin/foo {
|
||||
/alpha/[]beta rw,
|
||||
}
|
||||
|
Loading…
Add table
Reference in a new issue