From: Timo Sirainen Date: Tue, 1 Apr 2008 08:42:24 +0000 (+0300) Subject: t_buffer_get() overflow check worked only with 64bit systems. X-Git-Tag: 1.1.rc4~4 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c438c40313ec4ccd348e5c3d199c2927cdce8906;p=thirdparty%2Fdovecot%2Fcore.git t_buffer_get() overflow check worked only with 64bit systems. --HG-- branch : HEAD --- diff --git a/src/lib/data-stack.c b/src/lib/data-stack.c index 35a17bd421..0798e9f3ce 100644 --- a/src/lib/data-stack.c +++ b/src/lib/data-stack.c @@ -81,7 +81,7 @@ static void data_stack_last_buffer_reset(void) 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