# HG changeset patch # User Timo Sirainen # Date 1204521638 -7200 # Node ID a1b8a12521a0f4681cf41602c6e3a852ff9df29d # Parent 5017c74367e372aaeb3830d1ce828dc6ebd4c73e DEBUG: Use t_buffer_alloc_last_full() before calling i_warning() to make sure we don't trash unallocated data from data stack. diff -r 5017c74367e3 -r a1b8a12521a0 src/lib/mempool-alloconly.c --- a/src/lib/mempool-alloconly.c Mon Mar 03 07:19:30 2008 +0200 +++ b/src/lib/mempool-alloconly.c Mon Mar 03 07:20:38 2008 +0200 @@ -210,6 +210,10 @@ size = nearest_power(size); #ifdef DEBUG if (!apool->disable_warning) { + /* i_warning() overwrites unallocated data in data + stack, so make sure everything is allocated before + calling it. */ + t_buffer_alloc_last_full(); i_warning("Growing pool '%s' with: %"PRIuSIZE_T, apool->name, size); }