diff options
author | David Robillard <d@drobilla.net> | 2021-02-20 16:50:11 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2021-03-08 23:23:05 -0500 |
commit | 9cf28251f67e91a97bb75a74ad1ed23bac609b0d (patch) | |
tree | 947bf6128615d4bd0c801d4ebe2123b2ebd95eb2 /src/stack.h | |
parent | a0ff18dcc526779e482a4a8e7741fc407c6940ae (diff) | |
download | serd-9cf28251f67e91a97bb75a74ad1ed23bac609b0d.tar.gz serd-9cf28251f67e91a97bb75a74ad1ed23bac609b0d.tar.bz2 serd-9cf28251f67e91a97bb75a74ad1ed23bac609b0d.zip |
Zero node padding before passing to reader sinks
Diffstat (limited to 'src/stack.h')
-rw-r--r-- | src/stack.h | 1 |
1 files changed, 1 insertions, 0 deletions
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; } |