Skip to content

Commit cba0c9a

Browse files
committed
[LL][USART] Solve Coverity out-of-bound memory access warning in use of USART_PRESCALER_TAB array
1 parent d64d309 commit cba0c9a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Inc/stm32c0xx_ll_usart.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,10 @@ static const uint32_t USART_PRESCALER_TAB[] =
5656
32UL,
5757
64UL,
5858
128UL,
59+
256UL,
60+
256UL,
61+
256UL,
62+
256UL,
5963
256UL
6064
};
6165
/**

0 commit comments

Comments
 (0)