[gnutls-devel] libtasn1 | Add initial fuzzing implementation (!38)
Development of GNU's TLS library
gnutls-devel at lists.gnutls.org
Thu Aug 1 08:26:39 CEST 2019
Nikos Mavrogiannopoulos commented on a discussion on fuzz/libtasn1_parser2tree_fuzzer.c: https://gitlab.com/gnutls/libtasn1/merge_requests/38#note_198539930
> +#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) {
A better fix makes sense to me. Yes lets open a bug
--
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/libtasn1/merge_requests/38#note_198539930
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/20190801/f62489e1/attachment.html>
More information about the Gnutls-devel
mailing list