mirror of
https://github.com/libjpeg-turbo/libjpeg-turbo.git
synced 2026-01-18 13:31:21 +01:00
Build: Use correct compress12_lossless fuzzer src
(oops)
This commit is contained in:
@@ -50,7 +50,7 @@ add_fuzz_target(compress_lossless compress_lossless.cc)
|
||||
|
||||
add_fuzz_target(compress12 compress12.cc)
|
||||
|
||||
add_fuzz_target(compress12_lossless compress12.cc)
|
||||
add_fuzz_target(compress12_lossless compress12_lossless.cc)
|
||||
|
||||
add_fuzz_target(compress16_lossless compress16_lossless.cc)
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C)2021-2024 D. R. Commander. All Rights Reserved.
|
||||
* Copyright (C)2021-2025 D. R. Commander. All Rights Reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions are met:
|
||||
@@ -48,7 +48,7 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
|
||||
tjhandle handle = NULL;
|
||||
short *srcBuf = NULL;
|
||||
unsigned char *dstBuf = NULL;
|
||||
int width = 0, height = 0, fd = -1, i, ti;
|
||||
int width = 0, height = 0, fd = -1, ti;
|
||||
char filename[FILENAME_MAX] = { 0 };
|
||||
struct test tests[NUMTESTS] = {
|
||||
{ TJPF_RGB, 12, 1, 0 },
|
||||
@@ -68,8 +68,8 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
|
||||
goto bailout;
|
||||
|
||||
for (ti = 0; ti < NUMTESTS; ti++) {
|
||||
int sum = 0, pf = tests[ti].pf;
|
||||
size_t dstSize = 0, maxBufSize;
|
||||
int pf = tests[ti].pf;
|
||||
size_t dstSize = 0, maxBufSize, i, sum = 0;
|
||||
|
||||
/* Test non-default compression options on specific iterations. */
|
||||
tj3Set(handle, TJPARAM_BOTTOMUP, ti == 0);
|
||||
|
||||
Reference in New Issue
Block a user