[gnutls-devel] libtasn1 | Add initial fuzzing implementation (!38)
Development of GNU's TLS library
gnutls-devel at lists.gnutls.org
Wed Jul 31 13:52:12 CEST 2019
Nikos Mavrogiannopoulos started a new discussion on fuzz/libtasn1_parser2tree_fuzzer.c: https://gitlab.com/gnutls/libtasn1/merge_requests/38#note_198237036
> +#include <config.h>
> +
> +#include <stdlib.h> // malloc, free
> +#include <string.h> // strcmp, memcpy
> +
> +#include "libtasn1.h"
> +#include "fuzzer.h"
> +
> +static const uint8_t *g_data;
> +static size_t g_size;
> +
> +//#if defined HAVE_DLFCN_H && defined HAVE_FMEMOPEN
> +#include <dlfcn.h>
> +#ifdef RTLD_NEXT /* Not defined e.g. on CygWin */
> +
> +FILE *fopen(const char *pathname, const char *mode) {
Is there some way we can ensure that fopen is being called? Should we use a global var which will be used to assert if not called?
--
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/libtasn1/merge_requests/38#note_198237036
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gnupg.org/pipermail/gnutls-devel/attachments/20190731/45b693b3/attachment-0001.html>
More information about the Gnutls-devel
mailing list