atom feed5 messages in net.sourceforge.lists.courier-users[courier-users] A small bug that caus...
FromSent OnAttachments
ma...@intron.acDec 23, 2005 11:36 pm 
Sam VarshavchikDec 24, 2005 6:18 am 
dax2Dec 25, 2005 2:16 am 
ma...@intron.acDec 25, 2005 1:19 pm 
Sam VarshavchikDec 25, 2005 1:58 pm 
Subject:[courier-users] A small bug that causes SqWebmail crashed
From:ma...@intron.ac (ma@intron.ac)
Date:Dec 23, 2005 11:36:39 pm
List:net.sourceforge.lists.courier-users

When invalid "&..." is removed, the length of NULL-terminated string in "tagbuf" should not be changed.

diff -r -U 10 courier-0.52.1/webmail/html.c pcourier-0.52.1/webmail/html.c --- courier-0.52.1/webmail/html.c Tue Sep 6 01:08:23 2005 +++ pcourier-0.52.1/webmail/html.c Sat Dec 24 06:53:39 2005 @@ -242,21 +242,21 @@

while (*p) { if (strchr("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",
*p) == NULL) break; ++p; }

if (*p != ';') { - *q=0; + *q=' '; } --p; }

tagattrlen=parseattr(0); if ( tagattrlen > tagattrsize) { struct tagattrinfo *newta= tagattr ? (struct tagattrinfo *) realloc(tagattr, (tagattrlen+16)*sizeof(*tagattr)) :(struct tagattrinfo *)