apparmor/parser/tst/simple_tests
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
..
capability add optional allow prefix to the language 2013-09-20 06:48:56 -07:00
change_hat as ACKed on IRC, drop the unused $Id$ tags everywhere 2010-12-20 12:29:10 -08:00
change_profile Fix change_profile so that it works with regular expressions (lpn390810) 2009-07-23 21:18:37 +00:00
conditional Rearrange tests into subdirectories, so that it is easier to see what tests 2009-07-23 07:42:57 +00:00
file parser: remove length restriction in convert_aaregex_to_pcre usage 2013-12-16 01:15:17 -08:00
include_tests include *.dpkg-bak in files to ignore 2010-02-16 12:56:04 -08:00
includes as ACKed on IRC, drop the unused $Id$ tags everywhere 2010-12-20 12:29:10 -08:00
includes-preamble Move preamble inclusions to a different directory since it was breaking 2008-11-25 19:05:40 +00:00
mount Update the parser to support the 'in' keyword for value lists 2012-03-26 06:17:40 -07:00
network Convert the parser to C++ 2013-09-27 16:13:22 -07:00
profile Add missing files from my last 11 patches as I forgot to do bzr add before 2010-12-20 13:18:36 -08:00
rewrite Allow for a location to alias to multiple locations. Ie. 2010-02-12 13:51:27 -08:00
vars parser: more dbus variable testcases (v2) 2013-12-10 14:00:32 -08:00
xtrans Add a parser testcase that triggered the match flags state issue that 2012-12-10 17:10:40 -08:00
readme Add missing files from my last 11 patches as I forgot to do bzr add before 2010-12-20 13:18:36 -08:00

Directory for auto generated x-transition tests