dovecot-2.0: liblib: Don't segfault if write is attempted beyond...

dovecot at dovecot.org dovecot at dovecot.org
Mon Aug 23 20:43:24 EEST 2010


details:   http://hg.dovecot.org/dovecot-2.0/rev/edb490f2ad6a
changeset: 12037:edb490f2ad6a
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Aug 23 18:43:17 2010 +0100
description:
liblib: Don't segfault if write is attempted beyond non-dynamic buffer's bounds.

diffstat:

 src/lib/buffer.c |  1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diffs (11 lines):

diff -r f5e8fffacc92 -r edb490f2ad6a src/lib/buffer.c
--- a/src/lib/buffer.c	Mon Aug 23 16:24:22 2010 +0100
+++ b/src/lib/buffer.c	Mon Aug 23 18:43:17 2010 +0100
@@ -57,6 +57,7 @@
 		if (unlikely(!buf->dynamic)) {
 			i_panic("Buffer full (%"PRIuSIZE_T" > %"PRIuSIZE_T", "
 				"pool %s)", pos + data_size, buf->alloc,
+				buf->pool == NULL ? "<none>" :
 				pool_get_name(buf->pool));
 		}
 


More information about the dovecot-cvs mailing list