From e25dc3d4babbd41e3ecef17e7d6259c97e0e96a5 Mon Sep 17 00:00:00 2001 From: Xinhao Yuan Date: Wed, 17 Jun 2026 15:09:19 -0700 Subject: [PATCH] No public description PiperOrigin-RevId: 933945629 --- centipede/engine_abi.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/centipede/engine_abi.h b/centipede/engine_abi.h index 63616655..cdb1f847 100644 --- a/centipede/engine_abi.h +++ b/centipede/engine_abi.h @@ -204,10 +204,10 @@ typedef struct FuzzTestAdapter { const FuzzTestBytesView* metadata, FuzzTestInputHandle input); - // Drops the ownership of `input` from the engine. + // Callback to run when the engine is done with `input`. void (*FreeInput)(FuzzTestAdapterCtx* ctx, FuzzTestInputHandle input); - // Drops the ownership of `ctx` from the engine. + // Callback to run when the engine is done with `ctx` (and the adapter). void (*FreeCtx)(FuzzTestAdapterCtx* ctx); } FuzzTestAdapter; @@ -225,7 +225,8 @@ typedef struct { // Constructs an adapter of the test into `adapter_out`. Any diagnostics // happening during the construction or running the adapter should be emitted - // to `diagnostic_sink`. + // to `diagnostic_sink`. `diagnostic_sink` is guaranteed to live until + // `FreeCtx` is called on the adapter. void (*ConstructAdapter)(FuzzTestAdapterManagerCtx* ctx, const FuzzTestDiagnosticSink* diagnostic_sink, FuzzTestAdapter* adapter_out);