Skip to content
Snippets Groups Projects
Commit 43cd22a6 authored by Howard Chu's avatar Howard Chu
Browse files

Fix ITS#3695 preserve stack alignment in slap_sl_realloc

parent 8045a088
No related branches found
No related tags found
No related merge requests found
......@@ -376,6 +376,10 @@ slap_sl_realloc(void *ptr, ber_len_t size, void *ctx)
}
if (sh->sh_stack) {
/* round up to doubleword boundary */
size += pad + sizeof( ber_len_t );
size &= ~pad;
/* Never shrink blocks */
if (size <= p[-1]) {
new = p;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment