[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]
Re: [ID 20000127.002] 5.005_63 `Out of memory' on trivial program with
On Fri, Jan 28, 2000 at 09:01:53AM -0800, Gurusamy Sarathy wrote:
>
> It appears that rx->lastparen is uninitialized, and that's what magic_regdata_cnt()
> returns.
Yes, the do-not-invoke-REx-engine optimization was not storing enough data.
--- ./pp_hot.c~ Fri Dec 24 17:59:24 1999
+++ ./pp_hot.c Sat Jan 29 01:39:40 2000
@@ -1045,6 +1045,7 @@ yup: /* Confirmed by INTUIT */
rx->startp[0] = s - truebase;
rx->endp[0] = s - truebase + rx->minlen;
}
+ rx->nparens = rx->lastparen = 0; /* used by @- and @+ */
LEAVE_SCOPE(oldsave);
RETPUSHYES;
- References to:
-
Ilya Zakharevich <ilya@math.ohio-state.edu>
[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]