Merge branch 'fix/argtable3-coverity-findings' into 'master'

fix(console): Add input validation in arg_utils.c functions

Closes IDF-13986 and IDF-13987

See merge request espressif/esp-idf!41736
This commit is contained in:
Guillaume Souchere
2025-09-22 09:45:44 +02:00

View File

@@ -50,6 +50,10 @@ static void panic(const char* fmt, ...);
static arg_panicfn* s_panic = panic; static arg_panicfn* s_panic = panic;
void dbg_printf(const char* fmt, ...) { void dbg_printf(const char* fmt, ...) {
if (fmt == NULL) {
return;
}
va_list args = {0}; va_list args = {0};
va_start(args, fmt); va_start(args, fmt);
vfprintf(stderr, fmt, args); vfprintf(stderr, fmt, args);
@@ -57,6 +61,10 @@ void dbg_printf(const char* fmt, ...) {
} }
static void panic(const char* fmt, ...) { static void panic(const char* fmt, ...) {
if (fmt == NULL) {
return;
}
va_list args = {0}; va_list args = {0};
char* s; char* s;