Commit 2c3d9f17 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Fix dangling pointer use when shrinking a non-standard block

I believe this path cannot be triggered at the moment however, as
there quite few block_Realloc users. Fixes CID#197.
parent b5c9f126
...@@ -124,6 +124,7 @@ block_t *block_Realloc( block_t *p_block, ssize_t i_prebody, size_t i_body ) ...@@ -124,6 +124,7 @@ block_t *block_Realloc( block_t *p_block, ssize_t i_prebody, size_t i_body )
return NULL; return NULL;
p_block = p_dup; p_block = p_dup;
p_sys = (block_sys_t *)p_block;
} }
/* Adjust reserved header if there is enough room */ /* Adjust reserved header if there is enough room */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment