https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6143





--- Comment #33 from Sidney Markowitz <[email protected]>  2009-07-08 05:37:40 
PST ---
> I think the main problem here is that RET() is being used on a 
> single-character
string

Yes, it boils down to that.

> iirc the min length for base strings is supposed to be 3 chars or so

Yes, $min_chars or whatever its called is set to 3. But the "one character
string" that it is checking the length of is '\x{0}' which is 5 characters long
:-)

I think it would be good to bulletproof the code against the infinite loop by
changing the patch I committed to initialize q to 1+*p instead of to *p, but
the real fix would be to somehow test for a minimum of three characters after
converting the \x{nn} and any other encodings that might be necessary.

-- 
Configure bugmail: 
https://issues.apache.org/SpamAssassin/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

Reply via email to