[courier-users] A small bug that causes SqWebmail crashed

This is a discussion on [courier-users] A small bug that causes SqWebmail crashed within the Courier-Imap forums, part of the Mail Servers and Related category; When invalid "&..." is removed, the length of NULL-terminated string in "tagbuf" should not be ...


Go Back   Usenet Forums > Mail Servers and Related > Courier-Imap

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 12-24-2005
mag@intron.ac
 
Posts: n/a
Default [courier-users] A small bug that causes SqWebmail crashed

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("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNO PQRSTUVWXYZ0123456789", *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 *)





-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
courier-users mailing list
courier-users@lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/.../courier-users
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 08:21 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0