Skip to content

Commit

Permalink
arch/posix: move fuzz entry doc to the right place
Browse files Browse the repository at this point in the history
It should document the entry point function, not the DMA-like variable.

Signed-off-by: Michael Zimmermann <sigmaepsilon92@gmail.com>
  • Loading branch information
M1cha authored and kunoh committed Aug 7, 2023
1 parent 8ddf6df commit 7a1a78c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions boards/posix/native_posix/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -120,16 +120,16 @@ 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
* then letting the OS run for a fixed amount of time (intended to be
* "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;
Expand Down

0 comments on commit 7a1a78c

Please sign in to comment.