Revision: 523
http://vcs.pcre.org/viewvc?view=rev&revision=523
Author: ph10
Date: 2010-05-23 19:48:54 +0100 (Sun, 23 May 2010)
Log Message:
-----------
Fix pcre_study() bug for \p{Nd}* type items at pattern start.
Modified Paths:
--------------
code/trunk/ChangeLog
code/trunk/pcre_study.c
Modified: code/trunk/ChangeLog
===================================================================
--- code/trunk/ChangeLog 2010-05-22 19:19:40 UTC (rev 522)
+++ code/trunk/ChangeLog 2010-05-23 18:48:54 UTC (rev 523)
@@ -48,6 +48,12 @@
conflict in the definition of PCRE_EXP_DECL. I have removed the include of
pcre.h as pcre_internal.h includes pcre.h itself. (This may be a bit of
historical tidying that never got done.)
+
+13. If a pattern that was studied started with a repeated Unicode property
+ test, for example, \p{Nd}+, there was the theoretical possibility of
+ setting up an incorrect bitmap of starting bytes, but fortunately it could
+ not have actually happened in practice until change 8 above was made (it
+ added property types that matched character-matching opcodes).
Modified: code/trunk/pcre_study.c
===================================================================
--- code/trunk/pcre_study.c 2010-05-22 19:19:40 UTC (rev 522)
+++ code/trunk/pcre_study.c 2010-05-23 18:48:54 UTC (rev 523)
@@ -750,6 +750,7 @@
case OP_TYPEPOSQUERY:
switch(tcode[1])
{
+ default:
case OP_ANY:
case OP_ALLANY:
return SSB_FAIL;