mirror of
https://github.com/espressif/esp-idf.git
synced 2026-08-18 06:35:35 +03:00
Merge branch 'bugfix/fix_bt_coverity' into 'master'
fix(esp_coex): fix explicit null dereferenced reported by coverity Closes IDF-14126 See merge request espressif/esp-idf!42062
This commit is contained in:
@@ -38,13 +38,15 @@ static int lib_printf(const char* tag, const char* format, va_list arg)
|
||||
if (i > 0) {
|
||||
ESP_LOGI(tag, "%s", temp);
|
||||
}
|
||||
va_end(arg);
|
||||
return len;
|
||||
}
|
||||
|
||||
int coexist_printf(const char* format, ...)
|
||||
{
|
||||
va_list arg = {};
|
||||
va_list arg;
|
||||
/* coverity[uninit_use_in_call]
|
||||
Event uninit_use_in_call: Using uninitialized value arg when calling __builtin_c23_va_start.
|
||||
False-positive: arg will be initialized in the function va_start() */
|
||||
va_start(arg, format);
|
||||
int res = lib_printf("coexist", format, arg);
|
||||
va_end(arg);
|
||||
|
||||
Reference in New Issue
Block a user