arch/posix: move fuzz entry doc to the right place

It should document the entry point function, not the DMA-like variable.

Signed-off-by: Michael Zimmermann <sigmaepsilon92@gmail.com>
This commit is contained in:
Michael Zimmermann 2023-07-11 14:50:15 +02:00 committed by Fabio Baltieri
parent 0da94225b0
commit f937c031d8

View file

@ -120,6 +120,9 @@ int main(int argc, char *argv[])
#else /* CONFIG_ARCH_POSIX_LIBFUZZER */
const uint8_t *posix_fuzz_buf;
size_t posix_fuzz_sz;
/**
* Entry point for fuzzing (when enabled). Works by placing the data
* into two known symbols, triggering an app-visible interrupt, and
@ -127,9 +130,6 @@ int main(int argc, char *argv[])
* "long enough" to handle the event and reach a quiescent state
* again)
*/
const uint8_t *posix_fuzz_buf;
size_t posix_fuzz_sz;
int LLVMFuzzerTestOneInput(const uint8_t *data, size_t sz)
{
static bool posix_initialized;