Task #91102 - fixed.err
back to task #91102download
Error: GCC_ANALYZER_WARNING (CWE-688): kexec-tools-2.0.31/kexec/kexec.c:1305:9: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected kexec-tools-2.0.31/kexec/kexec.c:1289:6: enter_function: entry to ‘cmdline_add_liveupdate’ kexec-tools-2.0.31/kexec/kexec.c:1296:12: branch_false: following ‘false’ branch... kexec-tools-2.0.31/kexec/kexec.c:1299:9: branch_false: ...to here kexec-tools-2.0.31/kexec/kexec.c:1304:15: call_function: calling ‘xmalloc’ from ‘cmdline_add_liveupdate’ kexec-tools-2.0.31/kexec/kexec.c:1304:15: return_function: returning to ‘cmdline_add_liveupdate’ from ‘xmalloc’ kexec-tools-2.0.31/kexec/kexec.c:1305:9: danger: argument 1 (‘xmalloc(len)’) NULL where non-null expected # 1303| len = strlen(*base) + strlen(buf) + 1; # 1304| str = xmalloc(len); # 1305|-> sprintf(str, "%s%s", *base, buf); # 1306| *base = str; # 1307| }