[dovecot-cvs] dovecot/src/lib-index mail-index.c,1.227,1.228
tss-movial at dovecot.org
tss-movial at dovecot.org
Mon Apr 24 12:17:22 EEST 2006
Update of /var/lib/cvs/dovecot/src/lib-index
In directory talvi:/tmp/cvs-serv14438
Modified Files:
mail-index.c
Log Message:
Added assert
Index: mail-index.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-index/mail-index.c,v
retrieving revision 1.227
retrieving revision 1.228
diff -u -d -r1.227 -r1.228
--- mail-index.c 26 Feb 2006 10:32:19 -0000 1.227
+++ mail-index.c 24 Apr 2006 09:17:20 -0000 1.228
@@ -402,6 +402,7 @@
- struct mail_index_keyword_header_rec * keywords_count
- const char names[] * keywords_count
*/
+ i_assert(ext->hdr_offset < map->hdr.header_size);
kw_hdr = CONST_PTR_OFFSET(map->hdr_base, ext->hdr_offset);
kw_rec = (const void *)(kw_hdr + 1);
name = (const char *)(kw_rec + kw_hdr->keywords_count);
More information about the dovecot-cvs
mailing list