dovecot: Minor read access buffer overflow fix.

dovecot at dovecot.org dovecot at dovecot.org
Sat Oct 20 19:17:05 EEST 2007


details:   http://hg.dovecot.org/dovecot/rev/9036aa956d14
changeset: 6560:9036aa956d14
user:      Timo Sirainen <tss at iki.fi>
date:      Sat Oct 20 19:15:59 2007 +0300
description:
Minor read access buffer overflow fix.

diffstat:

1 file changed, 1 insertion(+), 1 deletion(-)
src/lib-index/mail-cache-lookup.c |    2 +-

diffs (12 lines):

diff -r 15a9ce2cc0ab -r 9036aa956d14 src/lib-index/mail-cache-lookup.c
--- a/src/lib-index/mail-cache-lookup.c	Sat Oct 20 19:15:10 2007 +0300
+++ b/src/lib-index/mail-cache-lookup.c	Sat Oct 20 19:15:59 2007 +0300
@@ -291,7 +291,7 @@ int mail_cache_field_exists(struct mail_
 	}
 
 	data = view->cached_exists_buf->data;
-	return (field <= view->cached_exists_buf->used &&
+	return (field < view->cached_exists_buf->used &&
 		data[field] == view->cached_exists_value) ? 1 : 0;
 }
 


More information about the dovecot-cvs mailing list