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

This commit is contained in:
Guillaume Souchere
2025-09-04 08:33:44 +02:00
parent 6b57250f8f
commit dea3fd2ceb

View File

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