Restore xform fuzzer behavior from before 19f9d8f0
The intent was for the final transform operation to be the same as the
first transform operation but without TJXOPT_COPYNONE or
TJFLAG_NOREALLOC. Unrolling the transform operations in
19f9d8f0fd accidentally changed that.
This commit is contained in:
@@ -139,6 +139,9 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
|
|||||||
|
|
||||||
free(dstBufs[0]);
|
free(dstBufs[0]);
|
||||||
dstBufs[0] = NULL;
|
dstBufs[0] = NULL;
|
||||||
|
|
||||||
|
transforms[0].op = TJXOP_NONE;
|
||||||
|
transforms[0].options = TJXOPT_PROGRESSIVE;
|
||||||
dstSizes[0] = 0;
|
dstSizes[0] = 0;
|
||||||
|
|
||||||
if (tjTransform(handle, data, size, 1, dstBufs, dstSizes, transforms,
|
if (tjTransform(handle, data, size, 1, dstBufs, dstSizes, transforms,
|
||||||
|
|||||||
Reference in New Issue
Block a user