mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-04 08:24:42 +01:00
parser: add large number of alternations test case
This patch adds a test case with an extremely large set of alternations. It is marked TODO, because it fails with the current parser due to strings used in convert_aaregex_to_pcre() being limited to (roughly) PATH_MAX. While contrived, it is possible to have alternations that are longer than PATH_MAX that always match paths that are shorter than PATH_MAX. Signed-off-by: Steve Beattie <steve@nxnw.org> Acked-by: Seth Arnold <seth.arnold@canonical.com>
This commit is contained in:
parent
d60f1a19da
commit
62c13f66b0
1 changed files with 9 additions and 0 deletions
9
parser/tst/simple_tests/file/ok_alternations_3.sd
Normal file
9
parser/tst/simple_tests/file/ok_alternations_3.sd
Normal file
File diff suppressed because one or more lines are too long
Loading…
Add table
Reference in a new issue