machinarium: set proper size_guard size in context_stack

This commit is contained in:
Dmitry Simonenko 2018-01-10 15:27:57 +03:00
parent 0157a02ad9
commit b08b0359cd
1 changed files with 1 additions and 0 deletions

View File

@ -23,6 +23,7 @@ int mm_contextstack_create(mm_contextstack_t *stack, size_t size, size_t size_gu
base += size_guard;
stack->pointer = base;
stack->size = size;
stack->size_guard = size_guard;
#ifdef HAVE_VALGRIND
stack->valgrind_stack =
VALGRIND_STACK_REGISTER(stack->pointer, stack->pointer + stack->size);