mirror of
https://git.tukaani.org/xz.git
synced 2026-10-31 03:14:56 +00:00
Tests: fuzz_common.h: Reset next_out and avail_out
It matters if the same lzma_stream is reused.
This commit is contained in:
parent
16f3093144
commit
9c3661926e
@ -36,6 +36,9 @@ fuzz_code(lzma_stream *stream, const uint8_t *inbuf, size_t inbuf_size)
|
|||||||
stream->next_in = inbuf;
|
stream->next_in = inbuf;
|
||||||
stream->avail_in = inbuf_size / 2;
|
stream->avail_in = inbuf_size / 2;
|
||||||
|
|
||||||
|
stream->next_out = NULL;
|
||||||
|
stream->avail_out = 0;
|
||||||
|
|
||||||
lzma_action action = LZMA_RUN;
|
lzma_action action = LZMA_RUN;
|
||||||
|
|
||||||
lzma_ret ret;
|
lzma_ret ret;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user