mirror of
https://github.com/espressif/esp-idf.git
synced 2025-09-30 19:19:21 +00:00
global: fix some potential out-of-bounds issue
...that found by Coverity Scan
This commit is contained in:
@@ -107,7 +107,7 @@ static void esp_ipc_init(void) __attribute__((constructor));
|
||||
|
||||
static void esp_ipc_init(void)
|
||||
{
|
||||
char task_name[15];
|
||||
char task_name[configMAX_TASK_NAME_LEN];
|
||||
|
||||
for (int i = 0; i < portNUM_PROCESSORS; ++i) {
|
||||
snprintf(task_name, sizeof(task_name), "ipc%d", i);
|
||||
|
Reference in New Issue
Block a user