summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog3
-rw-r--r--configure.ac6
-rw-r--r--pcretest.c3
3 files changed, 8 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index dc0a359..72bb80a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -13,6 +13,9 @@ Version 8.37 xx-xxx-201x
2. If an assertion condition was quantified with a minimum of zero (an odd
thing to do, but it happened), SIGSEGV or other misbehaviour could occur.
+
+3. If a pattern in pcretest input had the P (POSIX) modifier followed by an
+ unrecognized modifier, a crash could occur.
diff --git a/configure.ac b/configure.ac
index e7dffbe..ec8496e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -9,9 +9,9 @@ dnl The PCRE_PRERELEASE feature is for identifying release candidates. It might
dnl be defined as -RC2, for example. For real releases, it should be empty.
m4_define(pcre_major, [8])
-m4_define(pcre_minor, [36])
-m4_define(pcre_prerelease, [])
-m4_define(pcre_date, [2014-09-26])
+m4_define(pcre_minor, [37])
+m4_define(pcre_prerelease, [-RC1])
+m4_define(pcre_date, [2015-02-03])
# NOTE: The CMakeLists.txt file searches for the above variables in the first
# 50 lines of this file. Please update that if the variables above are moved.
diff --git a/pcretest.c b/pcretest.c
index b8dc3c6..2dc2061 100644
--- a/pcretest.c
+++ b/pcretest.c
@@ -3906,6 +3906,7 @@ while (!done)
default:
fprintf(outfile, "** Unknown modifier '%c'\n", pp[-1]);
+ do_posix = 0;
goto SKIP_DATA;
}
}
@@ -5635,7 +5636,7 @@ while (!done)
} /* End of loop for data lines */
CONTINUE:
-
+
#if !defined NOPOSIX
if (posix || do_posix) regfree(&preg);
#endif