Re: [pcre-dev] Overran compiling workspace

Page principale
Supprimer ce message
Auteur: ph10
Date:  
À: ND
CC: Pcre-dev
Sujet: Re: [pcre-dev] Overran compiling workspace
On Fri, 28 Aug 2015, ND wrote:

> Internal link size = 3


That was the difference. This turned out to be a bug in the test for the
error situation. I have committed the patch. Here it is:

--- pcre_compile.c      (revision 1595)
+++ pcre_compile.c      (working copy)
@@ -4639,8 +4639,7 @@
   /* In the real compile phase, just check the workspace used by the forward
   reference list. */


-  else if (cd->hwm > cd->start_workspace + cd->workspace_size -
-           WORK_SIZE_SAFETY_MARGIN)
+  else if (cd->hwm > cd->start_workspace + cd->workspace_size)
     {
     *errorcodeptr = ERR52;
     goto FAILED;



Philip

--
Philip Hazel