apparmor/parser/tst/simple_tests/file
Steve Beattie cc1a6f0e55 parser: remove length restriction in convert_aaregex_to_pcre usage
This patch removes the string length limit in convert_aaregex_to_pcre()
usage. One of the benefits to moving to C++ is the ability to use
std::strings, which dynamically resize themselves. While it's a large
patch, a non-trivial amount is due to needing to get a char * string
back out via the c_str() method.

The unit tests are modified to include checks to ensure that
convert_aaregex_to_pcre only appends to the passed pcre string,
it never resets it.

As the test case with overlong alternations added in the previous
patch now passes, the TODO status is removed from it.

(Note: there's a couple of FIXME comments related to converting typebuf
to std::string that are added by this patch that are addressed in the
next patch. I kept that conversion separate to try to reduce the size
of this patch a little.)

Signed-off-by: Steve Beattie <steve@nxnw.org>
Acked-by: Seth Arnold <seth.arnold@canonical.com>
2013-12-16 01:15:17 -08:00
..
allow add optional allow prefix to the language 2013-09-20 06:48:56 -07:00
file parser: add basic alternation tests, along with their file and owner 2013-12-03 16:34:17 -08:00
owner parser: add basic alternation tests, along with their file and owner 2013-12-03 16:34:17 -08:00
bad_append_1.sd Rearrange tests into subdirectories, so that it is easier to see what tests 2009-07-23 07:42:57 +00:00
bad_comma_1.sd Rearrange tests into subdirectories, so that it is easier to see what tests 2009-07-23 07:42:57 +00:00
bad_embedded_spaces_1.sd Rearrange tests into subdirectories, so that it is easier to see what tests 2009-07-23 07:42:57 +00:00
bad_lock_1.sd Rearrange tests into subdirectories, so that it is easier to see what tests 2009-07-23 07:42:57 +00:00
bad_re_brace_1.sd parser: add test case for empty character class regex 2013-12-03 15:55:54 -08:00
dos_line_endings.sd Rearrange tests into subdirectories, so that it is easier to see what tests 2009-07-23 07:42:57 +00:00
front_perms_ok_1.sd Rearrange tests into subdirectories, so that it is easier to see what tests 2009-07-23 07:42:57 +00:00
ok_1.sd Rearrange tests into subdirectories, so that it is easier to see what tests 2009-07-23 07:42:57 +00:00
ok_3.sd Rearrange tests into subdirectories, so that it is easier to see what tests 2009-07-23 07:42:57 +00:00
ok_alternations_1.sd parser: add basic alternation tests, along with their file and owner 2013-12-03 16:34:17 -08:00
ok_alternations_2.sd parser: add basic alternation tests, along with their file and owner 2013-12-03 16:34:17 -08:00
ok_alternations_3.sd parser: remove length restriction in convert_aaregex_to_pcre usage 2013-12-16 01:15:17 -08:00
ok_append_1.sd Rearrange tests into subdirectories, so that it is easier to see what tests 2009-07-23 07:42:57 +00:00
ok_carat_1.sd Rearrange tests into subdirectories, so that it is easier to see what tests 2009-07-23 07:42:57 +00:00
ok_carat_2.sd Rearrange tests into subdirectories, so that it is easier to see what tests 2009-07-23 07:42:57 +00:00
ok_comma_1.sd Rearrange tests into subdirectories, so that it is easier to see what tests 2009-07-23 07:42:57 +00:00
ok_comma_2.sd Rearrange tests into subdirectories, so that it is easier to see what tests 2009-07-23 07:42:57 +00:00
ok_deny_1.sd parser - add simple file deny rule tests 2013-10-11 22:33:05 -07:00
ok_deny_2.sd parser - add simple file deny rule tests 2013-10-11 22:33:05 -07:00
ok_deny_3.sd parser - add simple file deny rule tests 2013-10-11 22:33:05 -07:00
ok_deny_4.sd parser - add simple file deny rule tests 2013-10-11 22:33:05 -07:00
ok_embedded_spaces_1.sd Rearrange tests into subdirectories, so that it is easier to see what tests 2009-07-23 07:42:57 +00:00
ok_embedded_spaces_2.sd Rearrange tests into subdirectories, so that it is easier to see what tests 2009-07-23 07:42:57 +00:00
ok_embedded_spaces_3.sd Rearrange tests into subdirectories, so that it is easier to see what tests 2009-07-23 07:42:57 +00:00
ok_inv_char_class.sd Rearrange tests into subdirectories, so that it is easier to see what tests 2009-07-23 07:42:57 +00:00
ok_lock_1.sd Rearrange tests into subdirectories, so that it is easier to see what tests 2009-07-23 07:42:57 +00:00
ok_mmap_1.sd Rearrange tests into subdirectories, so that it is easier to see what tests 2009-07-23 07:42:57 +00:00
ok_mmap_2.sd Rearrange tests into subdirectories, so that it is easier to see what tests 2009-07-23 07:42:57 +00:00