diff options
| author | Mengsk <[email protected]> | 2022-12-30 15:10:00 +0100 |
|---|---|---|
| committer | Mengsk <[email protected]> | 2022-12-30 15:10:00 +0100 |
| commit | fc32280f42e03ef78e8d43bb9e8382ad4c9b19c0 (patch) | |
| tree | 7493237807a78b36cd2c99f0cffa194b6e58d7b4 /src/portable | |
| parent | 7ff2f43bfd9a9dd36b3c3aadcd0362db509b367c (diff) | |
Fix buffer allocation overflow.
Diffstat (limited to 'src/portable')
| -rw-r--r-- | src/portable/st/stm32_fsdev/dcd_stm32_fsdev.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/portable/st/stm32_fsdev/dcd_stm32_fsdev.c b/src/portable/st/stm32_fsdev/dcd_stm32_fsdev.c index a428d546d..702b32f9c 100644 --- a/src/portable/st/stm32_fsdev/dcd_stm32_fsdev.c +++ b/src/portable/st/stm32_fsdev/dcd_stm32_fsdev.c @@ -167,8 +167,8 @@ typedef struct uint16_t total_len; uint16_t queued_len; uint16_t pma_ptr; - uint8_t max_packet_size; - uint8_t pma_alloc_size; + uint16_t max_packet_size; + uint16_t pma_alloc_size; uint8_t epnum; } xfer_ctl_t; |
