1 #include <hb.h> 2 #include <stddef.h> 3 4 extern "C" int LLVMFuzzerTestOneInput (const uint8_t *data, size_t size); 5 6 #if defined(__GNUC__) && (__GNUC__ >= 4) || (__clang__) 7 #define HB_UNUSED __attribute__((unused)) 8 #else 9 #define HB_UNUSED 10 #endif 11 12 #ifdef HB_IS_IN_FUZZER 13 /* See src/failing-alloc.c */ 14 extern "C" int alloc_state; 15 #else 16 /* Just a dummy global variable */ 17 static int HB_UNUSED alloc_state = 0; 18 #endif 19