Bug report: hang when sending messages

Tom Hughes tom at compton.nu
Thu Jan 27 18:26:21 GMT 2000


In message <72bae48649.rav21 at wallace.mk-net.demon.co.uk>
          Richard van der Hoff <rav21 at cam.ac.uk> wrote:

> In message <yekya9bhn8a.fsf at elva.cyberscience.com>
>           Tom Hughes <tom at compton.nu> wrote:
>
> > In article <20d4de8649.rav21 at wallace.mk-net.demon.co.uk>, Richard van der Hoff <rav21 at cam.ac.uk> writes:
> >
> > > To: / CC: addresses with quotes in seem to make RemoteNB hang when sending
> > > mail.
> >
> > They're probably causing RemoteNB's address parser to get stuck in an
> > infinite loop. Can you give me an example of a To header that causes
> > problems and I'll have a look at it.
>
> To: "Richard van der Hoff" <rav21 at cam.ac.uk>

I can definately see why it happens - spot the bug in this:

      case '"':
        /* We've found a quoted string - loop until we see the close quote */
        while (*ptr && *ptr != '"')
        {
          /* Skip over any escaped character */
          if (*ptr == '\\')
          {
            ptr++;
          }
        }
        break;

Very silly, and it's been in there for ages :-( I shall get it fixed...

Tom

-- 
Tom Hughes (tom at compton.nu)
http://www.compton.nu/
...How sharper than a hound's tooth it is to have a thankless serpent.




More information about the remotenb mailing list