Skip to content

Commit 58cee6d

Browse files
committed
Restore xform fuzzer behavior from before 19f9d8f
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 19f9d8f accidentally changed that.
1 parent f48f73d commit 58cee6d

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

fuzz/transform.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,9 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
139139

140140
free(dstBufs[0]);
141141
dstBufs[0] = NULL;
142+
143+
transforms[0].op = TJXOP_NONE;
144+
transforms[0].options = TJXOPT_PROGRESSIVE;
142145
dstSizes[0] = 0;
143146

144147
if (tjTransform(handle, data, size, 1, dstBufs, dstSizes, transforms,

0 commit comments

Comments
 (0)