Honor MBEDTLS_CONFIG_FILE in fuzz tests

This commit is contained in:
Gilles Peskine 2019-08-13 18:00:02 +02:00
parent 56c0161b68
commit 26f3e2800d

View file

@ -1,8 +1,15 @@
#include <stdint.h>
#include <stdlib.h>
#include <stdio.h>
// Get platform-specific definition
/* This file doesn't use any Mbed TLS function, but grab config.h anyway
* in case it contains platform-specific #defines related to malloc or
* stdio functions. */
#if !defined(MBEDTLS_CONFIG_FILE)
#include "mbedtls/config.h"
#else
#include MBEDTLS_CONFIG_FILE
#endif
int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size);