mirror of
https://github.com/espressif/esp-idf.git
synced 2026-01-21 00:59:04 +00:00
Merge branch 'bugfix/fix_bt_coverity_v5.5' into 'release/v5.5'
fix(esp_coex): fix explicit null dereferenced reported by coverity(v5.5) See merge request espressif/esp-idf!42700
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