diff options
author | David Kilzer <ddkilzer@apple.com> | 2020-07-06 12:36:27 +0200 |
---|---|---|
committer | Nick Wellnhofer <wellnhofer@aevum.de> | 2020-07-06 12:37:53 +0200 |
commit | 6b4717d61ddd8499872ff7249b6712732c8b11cb (patch) | |
tree | 80069beab5fce8f4f242fffd714fb4151eeddb84 /result | |
parent | 477c7f6affcb665305b333f92ce0a782325b4156 (diff) | |
download | libxml2-6b4717d61ddd8499872ff7249b6712732c8b11cb.tar.gz |
Add regexp regression tests
- Bug 757711: heap-buffer-overflow in xmlFAParsePosCharGroup
<https://bugzilla.gnome.org/show_bug.cgi?id=757711>
- Bug 783015 - Integer-overflow in xmlFAParseQuantExact
<https://bugzilla.gnome.org/show_bug.cgi?id=783015>
(Regexptests): Add support for checking stderr output when
running regexp tests. This makes it possible to check in test
cases that fail and not see false-positive error output when
running the tests. Unlike other libxml2 test suites, if there
is no stderr output, no *.err file needs to be created.
Diffstat (limited to 'result')
-rw-r--r-- | result/regexp/bug757711 | 2 | ||||
-rw-r--r-- | result/regexp/bug757711.err | 2 | ||||
-rw-r--r-- | result/regexp/bug783015 | 4 | ||||
-rw-r--r-- | result/regexp/bug783015.err | 1 |
4 files changed, 9 insertions, 0 deletions
diff --git a/result/regexp/bug757711 b/result/regexp/bug757711 new file mode 100644 index 00000000..0991e4e2 --- /dev/null +++ b/result/regexp/bug757711 @@ -0,0 +1,2 @@ +Regexp: [;^((- + failed to compile diff --git a/result/regexp/bug757711.err b/result/regexp/bug757711.err new file mode 100644 index 00000000..f1cae806 --- /dev/null +++ b/result/regexp/bug757711.err @@ -0,0 +1,2 @@ +regexp error : failed to compile: Expecting the end of a char range +regexp error : failed to compile: xmlFAParseCharClass: ']' expected diff --git a/result/regexp/bug783015 b/result/regexp/bug783015 new file mode 100644 index 00000000..653f6f09 --- /dev/null +++ b/result/regexp/bug783015 @@ -0,0 +1,4 @@ +Regexp: .{2147483647} +input: Fail +Regexp: .{2147483648} + failed to compile diff --git a/result/regexp/bug783015.err b/result/regexp/bug783015.err new file mode 100644 index 00000000..a00edc98 --- /dev/null +++ b/result/regexp/bug783015.err @@ -0,0 +1 @@ +regexp error : failed to compile: Improper quantifier |