This is an automated email from the ASF dual-hosted git repository.

kasjer pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git

commit ec43edd338ed54a80b21ceb0debc32dea0b6a873
Author: Jerzy Kasenberg <[email protected]>
AuthorDate: Fri Jul 3 16:13:25 2026 +0200

    driver/mmc: Fix stack corruption on error formating
    
    When all bits were set in R1 response formated text
    was longer then 30 characters.
    
    Now buffer is extended to aviod stack corruption
    during error print.
    
    Signed-off-by: Jerzy Kasenberg <[email protected]>
---
 hw/drivers/mmc/src/mmc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hw/drivers/mmc/src/mmc.c b/hw/drivers/mmc/src/mmc.c
index 457702042..75da12bff 100644
--- a/hw/drivers/mmc/src/mmc.c
+++ b/hw/drivers/mmc/src/mmc.c
@@ -250,7 +250,7 @@ send_mmc_cmd(mmc_disk_t *mmc, sd_cmd_t cmd, uint32_t 
payload)
     uint16_t status;
     uint8_t crc;
     uint8_t buf[6];
-    char strbuf[30];
+    char strbuf[90];
 
     mmc_led_on();
 

Reply via email to