hardened logging and buffer safety (#708)

This commit is contained in:
Jacob Prezant authored and GitHub committed 2026-01-17 15:39:45 +08:00
1 parent 84897c3563
commit 80c0536dfa
5 files changed
+16 -7

No files matched your search

+1
View File
@@ -34,6 +34,7 @@ int p1_log(log_level_t loglevel, const char *fname, int lineno, const char *fxna
&& !tui_started
#endif
) fprintf(stderr, "p1_log: hid log with high log level (%d < %d)\n", verbose, loglevel - 3);
va_end(args);
return 0;
}
switch (loglevel) {