spamass-milt-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: "bob" coredump patch


From: Dan Nelson
Subject: Re: "bob" coredump patch
Date: Wed, 16 Jul 2003 21:29:49 -0500
User-agent: Mutt/1.5.4i

In the last episode (Jul 16), Valentin Chopov said:
> Hello,
> 
> Here is a patch to the latest CVS spamass-milter.cpp
> I found that in some cases when there is an empty body.
> "bob" becomes equal to "string::npos" (or -1) and
> string body=assassin->d().substr(bob, string::npos);
> coredumps the spamass-milter.

Makes sense to me.  I committed a version using if() rather than ?:,
though.

BTW, in case you were wondering, bob stands for "beginning of body" :)
 
-- 
        Dan Nelson
        address@hidden




reply via email to

[Prev in Thread] Current Thread [Next in Thread]