From 653375685428df9478b396c02e50e62f50f9067d Mon Sep 17 00:00:00 2001 From: Kilani Akrich Date: Thu, 28 Sep 2023 17:43:32 +0100 Subject: [PATCH] [PRJ][APPS][USBH] Fix stack corruption due to inconsistent type of local variable in MSC_File_Operations() --- .../Applications/USB_Host/MSC_RTOS/Src/file_operations.c | 2 +- .../Applications/USB_Host/MSC_Standalone/Src/file_operations.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Projects/STM3210C_EVAL/Applications/USB_Host/MSC_RTOS/Src/file_operations.c b/Projects/STM3210C_EVAL/Applications/USB_Host/MSC_RTOS/Src/file_operations.c index b375390..abb4694 100644 --- a/Projects/STM3210C_EVAL/Applications/USB_Host/MSC_RTOS/Src/file_operations.c +++ b/Projects/STM3210C_EVAL/Applications/USB_Host/MSC_RTOS/Src/file_operations.c @@ -40,7 +40,7 @@ uint8_t wtext[] = "USB Host Library : Mass Storage Example"; */ void MSC_File_Operations(void) { - uint16_t bytesread; + uint32_t bytesread; LCD_UsrLog("INFO : FatFs Initialized \n"); diff --git a/Projects/STM3210C_EVAL/Applications/USB_Host/MSC_Standalone/Src/file_operations.c b/Projects/STM3210C_EVAL/Applications/USB_Host/MSC_Standalone/Src/file_operations.c index 9b63c35..141e15d 100644 --- a/Projects/STM3210C_EVAL/Applications/USB_Host/MSC_Standalone/Src/file_operations.c +++ b/Projects/STM3210C_EVAL/Applications/USB_Host/MSC_Standalone/Src/file_operations.c @@ -40,7 +40,7 @@ uint8_t wtext[] = "USB Host Library : Mass Storage Example"; */ void MSC_File_Operations(void) { - uint16_t bytesread; + uint32_t bytesread; LCD_UsrLog("INFO : FatFs Initialized \n");