File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -333,6 +333,12 @@ int DispatcherDoMutate(const FuzzTestDispatcherCallbacks& callbacks) {
333
333
{
334
334
TestCallbackGuard guard;
335
335
fprintf (stderr, " calling custom mutator\n " );
336
+ // We ensure that:
337
+ // * `inputs` is a valid pointer to an array of
338
+ // `FuzzTestDispatcherInputForMutate` objects with length `num_inputs`.
339
+ // * Each object of the array contains a valid `input` pointer to
340
+ // `input_size` bytes, and a valid `metadata` pointer to `metadata_size`
341
+ // bytes.
336
342
callbacks.mutate (inputs.data (), inputs.size (), num_mutants,
337
343
/* shrink=*/ 0 );
338
344
}
@@ -367,6 +373,7 @@ int DispatcherDoExecute(const FuzzTestDispatcherCallbacks& callbacks) {
367
373
}
368
374
{
369
375
TestCallbackGuard guard;
376
+ // We ensure that `input` is a valid pointer to an array of `size` bytes.
370
377
callbacks.execute (data.data (), data.size ());
371
378
}
372
379
if (!BatchResult::WriteInputEnd (*outputs_blobseq)) {
You can’t perform that action at this time.
0 commit comments