[Cyrus-CVS] src/cyrus/imap by murch

murch at andrew.cmu.edu murch at andrew.cmu.edu
Tue Sep 23 12:28:15 EDT 2008


Update of /afs/andrew/system/cvs/src/cyrus/imap
In directory unix37.andrew.cmu.edu:/var/tmp/cvs-serv6023

Modified Files:
	mailbox.c sync_server.c 
Log Message:
Check Cache Record Size

>From Bron Gondwana <brong at fastmail.fm>:

We had a problem on 64bit kernel machines where cache corruption
caused multi-gigabyte core files to be generated because the huge
bogus offsets caused massive mmaped areas.

This patch checks that every cache record points to a location
between cache_base and (cache_base + cache_size), and returns
an IOERROR rather than crashing if it doesn't.


--- links to diffs follow ---
http://bugzilla.andrew.cmu.edu/cgi-bin/cvsweb.cgi/src/cyrus/imap/mailbox.c.diff?r1=1.179&r2=1.180
http://bugzilla.andrew.cmu.edu/cgi-bin/cvsweb.cgi/src/cyrus/imap/sync_server.c.diff?r1=1.25&r2=1.26


More information about the Cyrus-cvs mailing list