Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#2733 Poorly formed subject causes infinite loop

closed-fixed
nobody
5
2010-09-03
2010-08-26
Paul Lesniewski
No

When an account has a message with a badly-formed subject line in it, loading the message list can get caught in an infinite loop. The same behavior was reported (and fixed) on this tracker (#2987016):

https://sourceforge.net/tracker/?func=detail&atid=100311&aid=2987016&group_id=311

The offending messages were identified and sent to the squirrelmail-users mailing list on this thread (starting in August, 2010 (ignore first three messages on this thread)):

http://thread.gmane.org/gmane.mail.squirrelmail.user/37803

The offending messages have been uploaded to this tracker as well.

Discussion

  • Offending emails

     
    Attachments
  • One more offending email

     
    Attachments
  • I have uploaded a patch that adds some debugging to the problem code. Please report its output on the offending messages.

     
  • I have also added a possible patch that could solve this issue, although it is just a guess, since I cannot yet reproduce the problem myself.

     
  • Debug patch

     
  • More followups to the issue and feedback on the patches I posted has been sent to the mailing list thread mentioned above. Based on that feedback, I am uploading a new proposed fix for testing. Feedback appreciated.

     
  • New proposed fix

     
    Attachments
  • The original reporter of this issue (this time around at least) has responded on the mailing list thread linked previously that the newest patch herein solves this issue, even though it does seem to be caused by erroneous mbstring implementations. The patch is going into SVN and this tracker is being closed.

     
    • status: open --> closed-fixed