From 321c7677ca3c1ce5c12c6f190ab8c15f4b74f80c Mon Sep 17 00:00:00 2001 From: Alexey Lapshin Date: Wed, 3 Jun 2026 16:53:36 +0700 Subject: [PATCH] fix(esp_tee): fix buffer overflow --- .../subproject/components/tee_sec_storage/tee_sec_storage.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/esp_tee/subproject/components/tee_sec_storage/tee_sec_storage.c b/components/esp_tee/subproject/components/tee_sec_storage/tee_sec_storage.c index d9bf42a9d0e..8f01c8e3313 100644 --- a/components/esp_tee/subproject/components/tee_sec_storage/tee_sec_storage.c +++ b/components/esp_tee/subproject/components/tee_sec_storage/tee_sec_storage.c @@ -102,7 +102,7 @@ static int buffer_hexdump(const char *label, const void *buffer, size_t length) const uint8_t *bytes = (const uint8_t *)buffer; const size_t max_bytes_per_line = 16; - char hexbuf[max_bytes_per_line * 3]; + char hexbuf[max_bytes_per_line * 3 + 2]; ESP_LOGD(TAG, "%s -", label);