1
0
mirror of https://git.tukaani.org/xz.git synced 2026-10-31 03:14:56 +00:00

Tests: Adjust coding style in fuzzers

This commit is contained in:
Lasse Collin 2026-09-09 14:14:40 +03:00
parent c3b290c3dc
commit 16f3093144
No known key found for this signature in database
GPG Key ID: 38EE757D69184620
3 changed files with 4 additions and 1 deletions

View File

@ -25,7 +25,8 @@
static void
fuzz_code(lzma_stream *stream, const uint8_t *inbuf, size_t inbuf_size) {
fuzz_code(lzma_stream *stream, const uint8_t *inbuf, size_t inbuf_size)
{
// Output buffer for decompressed data. This is write only; nothing
// cares about the actual data written here.
uint8_t outbuf[4096];

View File

@ -21,6 +21,7 @@ extern int
LLVMFuzzerTestOneInput(const uint8_t *inbuf, size_t inbuf_size)
{
lzma_stream strm = LZMA_STREAM_INIT;
// Initialize a LZMA alone decoder using the memory usage limit
// defined in fuzz_common.h
lzma_ret ret = lzma_alone_decoder(&strm, MEM_LIMIT);

View File

@ -21,6 +21,7 @@ extern int
LLVMFuzzerTestOneInput(const uint8_t *inbuf, size_t inbuf_size)
{
lzma_stream strm = LZMA_STREAM_INIT;
// Initialize a .xz decoder using the memory usage limit
// defined in fuzz_common.h
//