diff options
| author | hathach <[email protected]> | 2025-12-15 15:31:55 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2025-12-15 15:31:55 +0700 |
| commit | fa36515e6f1fdeebb84056534b8f878e1f454770 (patch) | |
| tree | 9c266c7197bafe84a40413fc9c9fa6460f55e422 /test/fuzz/device/cdc/src | |
| parent | 991fa7736dd8ae3f10abf51f0ac89f5e976851af (diff) | |
| parent | ad5fe66f19e8fb633f175affcfa27b8376e40639 (diff) | |
Merge branch 'refs/heads/master' into enum_catch
Diffstat (limited to 'test/fuzz/device/cdc/src')
| -rw-r--r-- | test/fuzz/device/cdc/src/fuzz.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/fuzz/device/cdc/src/fuzz.cc b/test/fuzz/device/cdc/src/fuzz.cc index 0560e8621..ea13fce92 100644 --- a/test/fuzz/device/cdc/src/fuzz.cc +++ b/test/fuzz/device/cdc/src/fuzz.cc @@ -52,7 +52,11 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) { provider.ConsumeIntegralInRange<size_t>(0, Size)); fuzz_init(callback_data.data(), callback_data.size()); // init device stack on configured roothub port - tud_init(BOARD_TUD_RHPORT); + tusb_rhport_init_t dev_init = { + .role = TUSB_ROLE_DEVICE, + .speed = TUSB_SPEED_AUTO + }; + tusb_init(BOARD_TUD_RHPORT, &dev_init); for (int i = 0; i < FUZZ_ITERATIONS; i++) { if (provider.remaining_bytes() == 0) { |
