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:
parent
c3b290c3dc
commit
16f3093144
@ -25,7 +25,8 @@
|
|||||||
|
|
||||||
|
|
||||||
static void
|
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
|
// Output buffer for decompressed data. This is write only; nothing
|
||||||
// cares about the actual data written here.
|
// cares about the actual data written here.
|
||||||
uint8_t outbuf[4096];
|
uint8_t outbuf[4096];
|
||||||
|
|||||||
@ -21,6 +21,7 @@ extern int
|
|||||||
LLVMFuzzerTestOneInput(const uint8_t *inbuf, size_t inbuf_size)
|
LLVMFuzzerTestOneInput(const uint8_t *inbuf, size_t inbuf_size)
|
||||||
{
|
{
|
||||||
lzma_stream strm = LZMA_STREAM_INIT;
|
lzma_stream strm = LZMA_STREAM_INIT;
|
||||||
|
|
||||||
// Initialize a LZMA alone decoder using the memory usage limit
|
// Initialize a LZMA alone decoder using the memory usage limit
|
||||||
// defined in fuzz_common.h
|
// defined in fuzz_common.h
|
||||||
lzma_ret ret = lzma_alone_decoder(&strm, MEM_LIMIT);
|
lzma_ret ret = lzma_alone_decoder(&strm, MEM_LIMIT);
|
||||||
|
|||||||
@ -21,6 +21,7 @@ extern int
|
|||||||
LLVMFuzzerTestOneInput(const uint8_t *inbuf, size_t inbuf_size)
|
LLVMFuzzerTestOneInput(const uint8_t *inbuf, size_t inbuf_size)
|
||||||
{
|
{
|
||||||
lzma_stream strm = LZMA_STREAM_INIT;
|
lzma_stream strm = LZMA_STREAM_INIT;
|
||||||
|
|
||||||
// Initialize a .xz decoder using the memory usage limit
|
// Initialize a .xz decoder using the memory usage limit
|
||||||
// defined in fuzz_common.h
|
// defined in fuzz_common.h
|
||||||
//
|
//
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user