Skip to content

Commit

Permalink
Merge branch 'contrib/github_pr_11245' into 'master'
Browse files Browse the repository at this point in the history
app_trace: fix out of bounds array write (GitHub PR)

Closes IDFGH-9952

See merge request espressif/esp-idf!23345
  • Loading branch information
igrr committed May 2, 2023
2 parents 0eb2bdf + ffa79a4 commit a0f4664
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/app_trace/sys_view/ext/logging.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ int esp_sysview_vprintf(const char * format, va_list args)
portENTER_CRITICAL(&s_log_mutex);
size_t len = vsnprintf(log_buffer, sizeof(log_buffer), format, args);
if (len > sizeof(log_buffer) - 1) {
log_buffer[sizeof(log_buffer - 1)] = 0;
log_buffer[sizeof(log_buffer) - 1] = 0;
}
SEGGER_SYSVIEW_Print(log_buffer);
portEXIT_CRITICAL(&s_log_mutex);
Expand Down

0 comments on commit a0f4664

Please sign in to comment.