Build: Use correct compress12_lossless fuzzer src

(oops)
This commit is contained in:
DRC
2025-09-25 11:11:01 -04:00
parent c53932d12d
commit bf2c1efbb2
2 changed files with 5 additions and 5 deletions

View File

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

View File

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