Re: [PATCH v4 4/6] kfuzztest: add KFuzzTest sample fuzz targets
From: Alexander Potapenko
Date: Tue Jan 20 2026 - 09:04:48 EST
> +#include <linux/kfuzztest.h>
> +
> +static void underflow_on_buffer(char *buf, size_t buflen)
> +{
> + size_t i;
> +
If buflen is 0, buf is a ZERO_SIZE_PTR.
I think we should allow passing such pointers to test functions, but
each test should then correctly bail out on empty data.