[Aide] Aide Stack Overflow with large configuration files

Virolainen Pablo pablo at cs.tut.fi
Wed Nov 3 13:55:26 EET 2004


On Tue, 2 Nov 2004, Thomas Toth wrote:

> Hi,
>
> after having sucessfully compiled AIDE I tried it on my system.
>
> Unfortunately I noticed that AIDE dumps when I insert about 10000 files
> for monitoring. Using GDB I found out the following:

Why you don't use regexps?

btw: this should fix the problem. (Yes, the fix is described in bison FAQ:)

diff -nru aide-CVS-20041102/src/conf_yacc.y
aide-CVS-20041102-patched/src/conf_yacc.y
--- aide-CVS-20041102/src/conf_yacc.y   Fri Oct 29 18:21:42 2004
+++ aide-CVS-20041102-patched/src/conf_yacc.y   Wed Nov  3 13:49:18 2004
@@ -133,7 +133,7 @@

 %%

-lines : | line lines;
+lines : lines line | ;

 line : rule | equrule | negrule | definestmt | undefstmt
        | ifdefstmt | ifndefstmt | ifhoststmt | ifnhoststmt

Duke NEMO / C.O.M.A
alias pablo the pallo virolainen
-------------- next part --------------
diff -nru aide-CVS-20041102/src/conf_yacc.y aide-CVS-20041102-patched/src/conf_yacc.y
--- aide-CVS-20041102/src/conf_yacc.y	Fri Oct 29 18:21:42 2004
+++ aide-CVS-20041102-patched/src/conf_yacc.y	Wed Nov  3 13:49:18 2004
@@ -133,7 +133,7 @@
 
 %%
 
-lines : | line lines;
+lines : lines line | ;
 
 line : rule | equrule | negrule | definestmt | undefstmt
        | ifdefstmt | ifndefstmt | ifhoststmt | ifnhoststmt


More information about the Aide mailing list