[dovecot-cvs] dovecot/src/lib istream-limit.c,1.10,1.11

cras at dovecot.org cras at dovecot.org
Thu Dec 16 03:37:23 EET 2004


Update of /var/lib/cvs/dovecot/src/lib
In directory talvi:/tmp/cvs-serv30854

Modified Files:
	istream-limit.c 
Log Message:
Added assert.



Index: istream-limit.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib/istream-limit.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- istream-limit.c	22 Aug 2004 09:13:50 -0000	1.10
+++ istream-limit.c	16 Dec 2004 01:37:20 -0000	1.11
@@ -80,6 +80,10 @@
 
 static void _seek(struct _istream *stream, uoff_t v_offset)
 {
+	struct limit_istream *lstream = (struct limit_istream *) stream;
+
+	i_assert(v_offset <= lstream->v_size);
+
 	stream->istream.stream_errno = 0;
 	stream->istream.v_offset = v_offset;
 	stream->skip = stream->pos = 0;



More information about the dovecot-cvs mailing list