Skip to content

Commit fc32280

Browse files
committed
Fix buffer allocation overflow.
1 parent 7ff2f43 commit fc32280

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/portable/st/stm32_fsdev/dcd_stm32_fsdev.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,8 @@ typedef struct
167167
uint16_t total_len;
168168
uint16_t queued_len;
169169
uint16_t pma_ptr;
170-
uint8_t max_packet_size;
171-
uint8_t pma_alloc_size;
170+
uint16_t max_packet_size;
171+
uint16_t pma_alloc_size;
172172
uint8_t epnum;
173173
} xfer_ctl_t;
174174

0 commit comments

Comments
 (0)