procmail
[Top] [All Lists]

Re: This tiny script causes a segmentation fault..

2004-07-23 23:57:07
* Justin Gombos <mindfuq(_at_)zianet(_dot_)com> [2004-07-23 23:26]:
MAILDIR=./
DEFAULT=$MAILDIR/default_box
LOGFILE=$MAILDIR/procmail.log
VERBOSE=1

LINEBUF=128

SOME_BYTES=(\
11111111111111111111|\
22222222222222222222)

:0 :
*$ !^TO_$SOME_BYTES
mailbox

BTW- the system variable TO_ consumes 96 bytes.  So the user defined
variable $SOME_BYTES probably only needs to be ~35 bytes to crash
(assuming a LINEBUF of 128).

I also noticed I get different kinds of crashes depending on how much
I exceed the LINEBUF.  The above example causes a segmentation fault,
but if I increase the size of $SOME_BYTES from 42 to something over
120, I get persistent lock files and timeouts instead.

____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail