[glib] Add a testcase for an old regex bug.
- From: Paolo Borelli <pborelli src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] Add a testcase for an old regex bug.
- Date: Tue, 3 Jan 2012 20:18:28 +0000 (UTC)
commit d64b4c4887da1d4ec308c08ded094dad130a5c6d
Author: Paolo Borelli <pborelli gnome org>
Date: Tue Jan 3 11:49:55 2012 +0100
Add a testcase for an old regex bug.
Add a testcase for bug #455640, which was fixed in PCRE versions newer
than 7.2.
glib/tests/regex.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/glib/tests/regex.c b/glib/tests/regex.c
index 7f7cc65..6afa194 100644
--- a/glib/tests/regex.c
+++ b/glib/tests/regex.c
@@ -2298,6 +2298,9 @@ main (int argc, char *argv[])
TEST_MATCH("a#\nb", G_REGEX_EXTENDED, G_REGEX_MATCH_NEWLINE_CR, "a", -1, 0, 0, FALSE);
TEST_MATCH("a#\nb", G_REGEX_EXTENDED | G_REGEX_NEWLINE_CR, 0, "a", -1, 0, 0, TRUE);
+ /* This failed with PCRE 7.2 (gnome bug #455640) */
+ TEST_MATCH(".*$", 0, 0, "\xe1\xbb\x85", -1, 0, 0, TRUE);
+
/* TEST_MATCH_NEXT#(pattern, string, string_len, start_position, ...) */
TEST_MATCH_NEXT0("a", "x", -1, 0);
TEST_MATCH_NEXT0("a", "ax", -1, 1);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]