[dovecot-cvs] dovecot/src/lib-index/mbox mbox-index.c,1.60,1.61
cras at procontrol.fi
cras at procontrol.fi
Tue Feb 4 04:42:34 EET 2003
Update of /home/cvs/dovecot/src/lib-index/mbox
In directory danu:/tmp/cvs-serv28579/lib-index/mbox
Modified Files:
mbox-index.c
Log Message:
Dovecot might have crashed sometimes when accessing mbox with invalid
From-lines (eg. in the middle of the message body).
Index: mbox-index.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-index/mbox/mbox-index.c,v
retrieving revision 1.60
retrieving revision 1.61
diff -u -d -r1.60 -r1.61
--- mbox-index.c 11 Jan 2003 19:55:56 -0000 1.60
+++ mbox-index.c 4 Feb 2003 02:42:32 -0000 1.61
@@ -567,6 +567,10 @@
i_stream_skip(input, i);
return;
}
+
+ /* we may have trashed msg on the way,
+ get it again */
+ msg = i_stream_get_data(input, &size);
}
break;
}
More information about the dovecot-cvs
mailing list