diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 17:40:56 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 17:40:56 +0000 |
commit | c248d29056abbc1fc4c5dc178bab48fb8d2c1fcb (patch) | |
tree | 4a13fc30604509224504e1911bc976e5df7bdf05 /test/fuzz/fuzz_htp.h | |
parent | Initial commit. (diff) | |
download | libhtp-upstream/1%0.5.47.tar.xz libhtp-upstream/1%0.5.47.zip |
Adding upstream version 1:0.5.47.upstream/1%0.5.47
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'test/fuzz/fuzz_htp.h')
-rw-r--r-- | test/fuzz/fuzz_htp.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/test/fuzz/fuzz_htp.h b/test/fuzz/fuzz_htp.h new file mode 100644 index 0000000..57ce613 --- /dev/null +++ b/test/fuzz/fuzz_htp.h @@ -0,0 +1,26 @@ +/** + * @file + * @author Philippe Antoine <contact@catenacyber.fr> + * fuzz harness for libhtp + */ + +#ifndef __FUZZ_HTP_H__ +#define __FUZZ_HTP_H__ + +#include <errno.h> +#include <stdlib.h> +#include <sys/types.h> +#include <string.h> +#include <stdio.h> + +#include <sys/stat.h> +#include <fcntl.h> + +#include "htp/htp.h" +#include "test/test.h" + +void fuzz_openFile(const char * name); +int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size); + +#endif /* __FUZZ_HTP_H__ */ + |