diff options
| author | Ha Thach <[email protected]> | 2025-12-12 14:46:48 +0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-12-12 14:46:48 +0700 |
| commit | 185839e5c5f80a71ad18470d0d8e84e0a703067b (patch) | |
| tree | cef09eeda20078c96f5a67b407103b3ba3bf6070 /test/fuzz/device/cdc/src | |
| parent | 64820791516b4001cb169f095588ccb52eb35ea8 (diff) | |
| parent | e65e79bb81fcc87e5bb6c1ef83b39d480c785764 (diff) | |
Merge pull request #3402 from hathach/more-size-reduce-edpt-stream
refactor, clean up to reduce size
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) { |
