test: Fix shared random buffer overrun
commit7d04638a608a150b80442198df401b8be5ea8a3a
authorDavid Goulet <dgoulet@torproject.org>
Mon, 4 Jul 2016 15:40:06 +0000 (4 11:40 -0400)
committerDavid Goulet <dgoulet@torproject.org>
Mon, 4 Jul 2016 15:40:06 +0000 (4 11:40 -0400)
tree874e760c818a649812653d3d3b8b1afa4bbf537e
parentc6de05d529dddebbdd7f9bcd36ca69d9a5e17d66
test: Fix shared random buffer overrun

Encoded commit has an extra byte at the end for the NUL terminated byte and
the test was overrunning the payload buffer by one byte.

Found by Coverity issue 1362984.

Fixes #19567

Signed-off-by: David Goulet <dgoulet@torproject.org>
src/test/test_shared_random.c