]> git.ipfire.org Git - thirdparty/dovecot/core.git/commit
lib: data-stack - fix incorrect pointer comparison in t_try_realloc in DEBUG builds
authorPhil Carmody <phil@dovecot.fi>
Mon, 28 Jul 2014 13:45:33 +0000 (16:45 +0300)
committerPhil Carmody <phil@dovecot.fi>
Mon, 28 Jul 2014 13:45:33 +0000 (16:45 +0300)
commit6f8cb38591a8a721c45cafffde3430f549ba176e
treed34bc91630549b14a1a686a769b364758b2ab835
parent50a0a88ee62632d52c78ec95460b0759ce0a40e9
lib: data-stack - fix incorrect pointer comparison in t_try_realloc in DEBUG builds
When trying to work out if it's a valid realloc, we need to remember
that in DEBUG builds, we have hidden a size value (in a MEM_ALIGNED
space) before the pointer we return.

Signed-off-by: Phil Carmody <phil@dovecot.fi>
src/lib/data-stack.c