Skip to content

Commit

Permalink
Fix buffer allocation overflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
HiFiPhile committed Dec 30, 2022
1 parent 7ff2f43 commit fc32280
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/portable/st/stm32_fsdev/dcd_stm32_fsdev.c
Expand Up @@ -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;

Expand Down

0 comments on commit fc32280

Please sign in to comment.