changeset 6560:9036aa956d14 HEAD

Minor read access buffer overflow fix.
author Timo Sirainen <tss@iki.fi>
date Sat, 20 Oct 2007 19:15:59 +0300
parents 15a9ce2cc0ab
children 026f67ecd858
files src/lib-index/mail-cache-lookup.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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 @@
 	}
 
 	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;
 }