STM32CubeF4 icon indicating copy to clipboard operation
STM32CubeF4 copied to clipboard

BUG : Wrong check of file size in the ymodem.c file

Open sfeutrier opened this issue 1 year ago • 1 comments

https://github.com/STMicroelectronics/STM32CubeF4/blob/6d620b9ee55ff248d195ab6ea39ee82728ff30ad/Projects/STM324x9I_EVAL/Applications/IAP/IAP_Main/Src/ymodem.c#L358C26-L358C33

In the function "Ymodem_Receive", code checks the size of the file using if (*p_size > (USER_FLASH_SIZE + 1)) but p_size is the pointer to the output size and at this moment it is 0. The "if" should check the "filesize" and then do if (*filesize > (USER_FLASH_SIZE + 1))

sfeutrier avatar Apr 26 '24 08:04 sfeutrier

ST Internal Reference: 180274

TOUNSTM avatar Apr 29 '24 11:04 TOUNSTM

Hello,

I hope you are fine. The issue you reported has been fixed in the frame of version v1.28.1 of the STM32CubeF4 published recently on GitHub. Thank you again for having reported.

Regards,

RJMSTM avatar Jun 20 '24 10:06 RJMSTM