dovecot-1.1: t_buffer_get() overflow check worked only with 64bi...

dovecot at dovecot.org dovecot at dovecot.org
Tue Apr 1 11:42:34 EEST 2008


details:   http://hg.dovecot.org/dovecot-1.1/rev/3e7592582f93
changeset: 7445:3e7592582f93
user:      Timo Sirainen <tss at iki.fi>
date:      Tue Apr 01 11:42:24 2008 +0300
description:
t_buffer_get() overflow check worked only with 64bit systems.

diffstat:

1 file changed, 1 insertion(+), 1 deletion(-)
src/lib/data-stack.c |    2 +-

diffs (12 lines):

diff -r 9d694f41a699 -r 3e7592582f93 src/lib/data-stack.c
--- a/src/lib/data-stack.c	Tue Apr 01 11:30:56 2008 +0300
+++ b/src/lib/data-stack.c	Tue Apr 01 11:42:24 2008 +0300
@@ -81,7 +81,7 @@ static void data_stack_last_buffer_reset
 
 		p = STACK_BLOCK_DATA(current_block) +
 			(current_block->size - current_block->left) +
-			MEM_ALIGN(sizeof(size_t) + last_buffer_size);
+			MEM_ALIGN(sizeof(size_t)) + MEM_ALIGN(last_buffer_size);
 #endif
 		/* reset t_buffer_get() mark - not really needed but makes it
 		   easier to notice if t_malloc()/t_push()/t_pop() is called


More information about the dovecot-cvs mailing list