From: Nigel Metheringham Date: Mon, 26 Oct 2009 13:18:54 +0000 (+0000) Subject: Dovecot buffer overrun fix. Fixes: #889 X-Git-Tag: exim-4_70_RC3~13 X-Git-Url: https://git.exim.org/exim.git/commitdiff_plain/51473862ca62bf14157e0d7aa957b5a0d41748be Dovecot buffer overrun fix. Fixes: #889 --- diff --git a/doc/doc-txt/ChangeLog b/doc/doc-txt/ChangeLog index 38260c0a6..d1805a688 100644 --- a/doc/doc-txt/ChangeLog +++ b/doc/doc-txt/ChangeLog @@ -1,4 +1,4 @@ -$Cambridge: exim/doc/doc-txt/ChangeLog,v 1.581 2009/10/26 13:14:23 nm4 Exp $ +$Cambridge: exim/doc/doc-txt/ChangeLog,v 1.582 2009/10/26 13:18:54 nm4 Exp $ Change log file for Exim from version 4.21 ------------------------------------------- @@ -136,6 +136,8 @@ NM/29 Bugzilla 862, 866, 875: Documentation bugfixes NM/30 Bugzilla 888: TLS documentation bugfixes +NM/31 Bugzilla 889: Dovecot buffer overrun fix + Exim version 4.69 ----------------- diff --git a/src/src/auths/dovecot.c b/src/src/auths/dovecot.c index ff0f8469c..9893dac22 100644 --- a/src/src/auths/dovecot.c +++ b/src/src/auths/dovecot.c @@ -1,4 +1,4 @@ -/* $Cambridge: exim/src/src/auths/dovecot.c,v 1.10 2008/05/16 12:22:08 nm4 Exp $ */ +/* $Cambridge: exim/src/src/auths/dovecot.c,v 1.11 2009/10/26 13:18:54 nm4 Exp $ */ /* * Copyright (c) 2004 Andrey Panin @@ -131,6 +131,7 @@ for (;;) { sbp = read(fd, sbuffer, sizeof(sbuffer)); if (sbp == 0) { if (count == 0) return NULL; else break; } + p = 0; } while (p < sbp)