Merge pull request #1867 from silvergasp/thread_local_globals

fix: Change all static variables to thread when fuzzing
This commit is contained in:
Ha Thach
2023-02-22 12:54:32 +07:00
committed by GitHub
19 changed files with 67 additions and 57 deletions

View File

@@ -58,7 +58,7 @@ typedef struct
tusb_hid_descriptor_hid_t const * hid_descriptor;
} hidd_interface_t;
CFG_TUSB_MEM_SECTION static hidd_interface_t _hidd_itf[CFG_TUD_HID];
CFG_TUSB_MEM_SECTION static _fuzz_thread hidd_interface_t _hidd_itf[CFG_TUD_HID];
/*------------- Helpers -------------*/
static inline uint8_t get_index_by_itfnum(uint8_t itf_num)