diff options
author | David Robillard <d@drobilla.net> | 2021-02-20 16:50:11 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2023-12-02 16:27:02 -0500 |
commit | b16765b4830587c42db16587eda86f1eebb9a352 (patch) | |
tree | a1cc261786bbf0e06f59bad76a9fa11c5646d8d9 /src/stack.h | |
parent | 8771f4611a37efbe2841abe6db06c662490bdd88 (diff) | |
download | serd-b16765b4830587c42db16587eda86f1eebb9a352.tar.gz serd-b16765b4830587c42db16587eda86f1eebb9a352.tar.bz2 serd-b16765b4830587c42db16587eda86f1eebb9a352.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 4592705e..6ad3385d 100644 --- a/src/stack.h +++ b/src/stack.h @@ -72,6 +72,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; } |