HAL_FDCAN_GetRxMessage doesn't check for buffer size #4
Labels
enhancement
New feature or request
hal
HAL-LL driver-related issue or pull-request.
internal bug tracker
Issue confirmed and reported into a ticket in the internal bug tracking system
Projects
stm32g4xx_hal_driver/Inc/stm32g4xx_hal_fdcan.h
Line 1228 in 19bed7c
HAL_FDCAN_GetRxMessage doesn't check for buffer size. Since there is no function in this header file to request the size of the message before reading you are forced to allocate an array of 64 bytes to be sure. A bounds check would prevent buffer overflow and reading the size of the message before copying it would be helpful too,
The text was updated successfully, but these errors were encountered: