From 9cf28251f67e91a97bb75a74ad1ed23bac609b0d Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 20 Feb 2021 16:50:11 -0500 Subject: Zero node padding before passing to reader sinks --- src/stack.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/stack.h') diff --git a/src/stack.h b/src/stack.h index 4c53b4ae..62f3402b 100644 --- a/src/stack.h +++ b/src/stack.h @@ -85,6 +85,7 @@ static inline void serd_stack_pop_to(SerdStack* stack, size_t n_bytes) { assert(stack->size >= n_bytes); + memset(stack->buf + n_bytes, 0, stack->size - n_bytes); stack->size = n_bytes; } -- cgit v1.2.1