mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-12-23 10:35:35 +00:00
Honor MBEDTLS_CONFIG_FILE in fuzz tests
This commit is contained in:
parent
56c0161b68
commit
26f3e2800d
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue