1
0
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:
Lasse Collin 2026-09-09 14:14:40 +03:00
parent 16f3093144
commit 9c3661926e
No known key found for this signature in database
GPG Key ID: 38EE757D69184620

View File

@ -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;