[Xorp-hackers] [PATCH] xorp: rtrmgr: Memory exhausted error fix

igorm at etf.rs igorm at etf.rs
Wed Aug 8 01:10:25 PDT 2012


From: Igor Maravic <igorm at etf.rs>

Memory was exhausted because right recursion was used instead of left recursion!
Fixed that.

Reported-by: Leonid Shigris <leonshg at gmail.com>
Signed-off-by: Igor Maravic <igorm at etf.rs>
---
 xorp/rtrmgr/boot.yy |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/xorp/rtrmgr/boot.yy b/xorp/rtrmgr/boot.yy
index 8f47eff..dffb438 100644
--- a/xorp/rtrmgr/boot.yy
+++ b/xorp/rtrmgr/boot.yy
@@ -141,7 +141,7 @@ long_nodegroup:	UPLEVEL statements DOWNLEVEL { pop_path(); }
 		;
 
 statements:	/* empty string */
-		| statement statements
+		| statements statement
 		;
 
 statement:	terminal
-- 
1.7.9.5



More information about the Xorp-hackers mailing list