1 #ifndef __FUZZ_H__ 2 #define __FUZZ_H__ 3 4 #include "fuzz_cmn.h" 5 #include "rw_int.h" 6 7 enum FuzzType_t { 8 Fuzz_Type1, 9 Fuzz_Type2, 10 Fuzz_Type3, 11 Fuzz_Type4, 12 Fuzz_Type5, 13 Fuzz_Mfc, 14 15 Fuzz_TypeMax 16 }; 17 18 extern "C" size_t LLVMFuzzerMutate(uint8_t* Data, size_t Size, size_t MaxSize); 19 20 extern tNFC_CONN_CBACK* rf_cback; 21 22 extern void rw_init(); 23 24 #if 0 25 class Fuzz_Context 26 { 27 public: 28 uint8_t SubType; 29 const std::vector<bytes_t> Data; 30 std::unique_ptr<uint8_t[]> ScratchPtr; 31 32 public: 33 Fuzz_Context(uint8_t FuzzSubType, const std::vector<bytes_t>& Packets) 34 : SubType(FuzzSubType) 35 , Data(Packets) 36 { 37 } 38 39 ~Fuzz_Context(){} 40 }; 41 #endif 42 43 #endif 44