Update of /cvsroot/monetdb/pathfinder/compiler/core
In directory
23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv5771/pathfinder/compiler/core
Modified Files:
Tag: Nov2009
coreopt.brg fs.brg
Log Message:
some more defensive checks
for recusions running out of stack space
Index: coreopt.brg
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/compiler/core/coreopt.brg,v
retrieving revision 1.76
retrieving revision 1.76.6.1
diff -u -d -r1.76 -r1.76.6.1
--- coreopt.brg 7 May 2009 14:26:43 -0000 1.76
+++ coreopt.brg 22 Nov 2009 20:26:31 -0000 1.76.6.1
@@ -574,6 +574,9 @@
{
bool rewritten = false;
+ /* guard against too dep recursion */
+ PFrecursion_fence();
+
switch (rule) {
/* CoreExpr: flwr (for_ (forbind (forvars (var, nil),
CoreExpr),
Index: fs.brg
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/compiler/core/fs.brg,v
retrieving revision 1.74.6.4
retrieving revision 1.74.6.5
diff -u -d -r1.74.6.4 -r1.74.6.5
--- fs.brg 19 Oct 2009 08:59:00 -0000 1.74.6.4
+++ fs.brg 22 Nov 2009 20:26:34 -0000 1.74.6.5
@@ -727,6 +727,9 @@
the current rule */
PFpnode_t *kids[MAX_KIDS]; /* leaf nodes of this rule */
+ /* guard against too dep recursion */
+ PFrecursion_fence();
+
/* determine rule that matches for this non-terminal */
rule = PFfs_rule (STATE_LABEL (p), goalnt);
@@ -923,6 +926,9 @@
{
PFcnode_t *c; /* temporary helper variable */
+ /* guard against too dep recursion */
+ PFrecursion_fence();
+
/*
PFinfo (OOPS_NOTICE, "processing rule %i", rule);
*/
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Monetdb-pf-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-pf-checkins