Task #1272 - fixed.err
back to task #1272download
Error: GCC_ANALYZER_WARNING (CWE-688): swtpm-0.8.1-build/swtpm-d2849a9f5ced70438d67036693438344b47b4161/src/swtpm_localca/swtpm_localca.c: scope_hint: In function ‘create_cert’ swtpm-0.8.1-build/swtpm-d2849a9f5ced70438d67036693438344b47b4161/src/swtpm_localca/swtpm_localca.c:405:9: warning[-Wanalyzer-null-argument]: use of NULL ‘typ’ where non-null expected /usr/include/glib-2.0/glib/gstring.h:37: included_from: Included from here. /usr/include/glib-2.0/glib/giochannel.h:36: included_from: Included from here. /usr/include/glib-2.0/glib.h:56: included_from: Included from here. swtpm-0.8.1-build/swtpm-d2849a9f5ced70438d67036693438344b47b4161/src/swtpm_localca/swtpm_localca.c:25: included_from: Included from here. swtpm-0.8.1-build/swtpm-d2849a9f5ced70438d67036693438344b47b4161/src/swtpm_localca/swtpm_localca.c:624:19: note: in expansion of macro ‘g_strdup’ swtpm-0.8.1-build/swtpm-d2849a9f5ced70438d67036693438344b47b4161/src/swtpm_localca/swtpm_localca.c: scope_hint: In function ‘create_cert’ swtpm-0.8.1-build/swtpm-d2849a9f5ced70438d67036693438344b47b4161/src/swtpm_localca/swtpm_localca.c:750:10: note: in expansion of macro ‘g_str_has_prefix’ swtpm-0.8.1-build/swtpm-d2849a9f5ced70438d67036693438344b47b4161/src/swtpm_localca/swtpm_localca.c: scope_hint: In function ‘create_cert’ swtpm-0.8.1-build/swtpm-d2849a9f5ced70438d67036693438344b47b4161/src/swtpm_localca/swtpm_localca.c: scope_hint: In function ‘create_cert’ swtpm-0.8.1-build/swtpm-d2849a9f5ced70438d67036693438344b47b4161/src/swtpm_localca/swtpm_localca.c:398:19: note: in expansion of macro ‘g_strdup’ swtpm-0.8.1-build/swtpm-d2849a9f5ced70438d67036693438344b47b4161/src/swtpm_localca/swtpm_localca.c: scope_hint: In function ‘create_cert’ swtpm-0.8.1-build/swtpm-d2849a9f5ced70438d67036693438344b47b4161/src/swtpm_localca/swtpm_localca.c:19: included_from: Included from here. /usr/include/string.h:156:12: note: argument 1 of ‘strcmp’ must be non-null # 403| options = concat_arrays(options, (gchar *[]){"--add-header", NULL}, TRUE); # 404| # 405|-> if (strcmp(typ, "ek") == 0) { # 406| if (flags & ALLOW_SIGNING_F) # 407| options = concat_arrays(options, (gchar *[]){"--allow-signing", NULL}, TRUE); Error: CLANG_WARNING: swtpm-0.8.1-build/swtpm-d2849a9f5ced70438d67036693438344b47b4161/src/swtpm_setup/swtpm_setup.c:404:21: warning[core.CallAndMessage]: 5th function call argument is an uninitialized value # 402| } # 403| # 404|-> if (certfile_move_or_delete(flags, !!(flags_to_certfiles[idx].flag & SETUP_EK_CERT_F), # 405| certfile, user_certsdir, key_description) != 0) # 406| return 1;