Task #99 - libmodulemd-2.15.0-9.fc41/scan-results.err
back to task #99download
Error: GCC_ANALYZER_WARNING (CWE-476): modulemd-2.15.0/modulemd/include/private/modulemd-subdocument-info-private.h:20: included_from: Included from here. modulemd-2.15.0/modulemd/modulemd-translation.c:22: included_from: Included from here. modulemd-2.15.0/modulemd/modulemd-translation.c: scope_hint: In function ‘modulemd_translation_parse_yaml’ modulemd-2.15.0/modulemd/include/private/modulemd-yaml.h:382:37: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘nested_error’ modulemd-2.15.0/modulemd/include/private/modulemd-yaml.h:407:3: note: in expansion of macro ‘MMD_YAML_ERROR_EVENT_EXIT_FULL’ modulemd-2.15.0/modulemd/modulemd-translation.c:617:7: note: in expansion of macro ‘MMD_YAML_ERROR_EVENT_EXIT’ /usr/lib64/glib-2.0/include/glibconfig.h:9: included_from: Included from here. /usr/include/glib-2.0/glib/gtypes.h:34: included_from: Included from here. /usr/include/glib-2.0/glib/galloca.h:34: included_from: Included from here. /usr/include/glib-2.0/glib.h:32: included_from: Included from here. modulemd-2.15.0/modulemd/modulemd-translation.c:14: included_from: Included from here. /usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’ modulemd-2.15.0/modulemd/modulemd-translation.c:496:3: note: in expansion of macro ‘g_return_val_if_fail’ modulemd-2.15.0/modulemd/include/private/modulemd-yaml.h:286:3: note: in expansion of macro ‘YAML_PARSER_PARSE_WITH_EXIT_FULL’ modulemd-2.15.0/modulemd/modulemd-translation.c:502:3: note: in expansion of macro ‘YAML_PARSER_PARSE_WITH_EXIT’ modulemd-2.15.0/modulemd/include/private/modulemd-yaml.h:286:3: note: in expansion of macro ‘YAML_PARSER_PARSE_WITH_EXIT_FULL’ modulemd-2.15.0/modulemd/modulemd-translation.c:502:3: note: in expansion of macro ‘YAML_PARSER_PARSE_WITH_EXIT’ modulemd-2.15.0/modulemd/include/private/modulemd-yaml.h:286:3: note: in expansion of macro ‘YAML_PARSER_PARSE_WITH_EXIT_FULL’ modulemd-2.15.0/modulemd/modulemd-translation.c:511:7: note: in expansion of macro ‘YAML_PARSER_PARSE_WITH_EXIT’ modulemd-2.15.0/modulemd/include/private/modulemd-yaml.h:286:3: note: in expansion of macro ‘YAML_PARSER_PARSE_WITH_EXIT_FULL’ modulemd-2.15.0/modulemd/modulemd-translation.c:511:7: note: in expansion of macro ‘YAML_PARSER_PARSE_WITH_EXIT’ modulemd-2.15.0/modulemd/include/private/modulemd-yaml.h:286:3: note: in expansion of macro ‘YAML_PARSER_PARSE_WITH_EXIT_FULL’ modulemd-2.15.0/modulemd/modulemd-translation.c:511:7: note: in expansion of macro ‘YAML_PARSER_PARSE_WITH_EXIT’ modulemd-2.15.0/modulemd/include/private/modulemd-yaml.h:382:54: note: in definition of macro ‘MMD_YAML_ERROR_EVENT_EXIT_FULL’ modulemd-2.15.0/modulemd/modulemd-translation.c:617:7: note: in expansion of macro ‘MMD_YAML_ERROR_EVENT_EXIT’ modulemd-2.15.0/modulemd/include/private/modulemd-yaml.h:382:54: note: in definition of macro ‘MMD_YAML_ERROR_EVENT_EXIT_FULL’ modulemd-2.15.0/modulemd/modulemd-translation.c:617:7: note: in expansion of macro ‘MMD_YAML_ERROR_EVENT_EXIT’ modulemd-2.15.0/modulemd/include/private/modulemd-yaml.h:407:3: note: in expansion of macro ‘MMD_YAML_ERROR_EVENT_EXIT_FULL’ modulemd-2.15.0/modulemd/modulemd-translation.c:617:7: note: in expansion of macro ‘MMD_YAML_ERROR_EVENT_EXIT’ # 380| do \ # 381| { \ # 382|-> g_autofree gchar *formatted = g_strdup_printf (__VA_ARGS__); \ # 383| g_autofree gchar *formatted2 = \ # 384| g_strdup_printf ("%s [line %zu col %zu]", \ Error: GCC_ANALYZER_WARNING (CWE-476): modulemd-2.15.0/modulemd/modulemd-module.c: scope_hint: In function ‘modulemd_module_upgrade_streams’ modulemd-2.15.0/modulemd/modulemd-module.c:1024:49: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’ /usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’ modulemd-2.15.0/modulemd/modulemd-module.c:983:3: note: in expansion of macro ‘g_return_val_if_fail’ /usr/include/glib-2.0/gobject/gbinding.h:31: included_from: Included from here. /usr/include/glib-2.0/glib-object.h:24: included_from: Included from here. modulemd-2.15.0/modulemd/include/modulemd-2.0/modulemd-deprecated.h:16: included_from: Included from here. modulemd-2.15.0/modulemd/include/modulemd-2.0/modulemd-errors.h:17: included_from: Included from here. modulemd-2.15.0/modulemd/modulemd-module.c:18: included_from: Included from here. /usr/include/glib-2.0/gobject/gobject.h:533:64: note: in definition of macro ‘g_object_ref’ modulemd-2.15.0/modulemd/modulemd-module.c:990:33: note: in expansion of macro ‘g_ptr_array_index’ /usr/include/glib-2.0/glib/gmacros.h:1237:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’ modulemd-2.15.0/modulemd/modulemd-module.c:482:3: note: in expansion of macro ‘g_return_val_if_fail’ /usr/include/glib-2.0/gobject/gobject.h:26: included_from: Included from here. /usr/include/glib-2.0/gobject/gtype.h:1613:40: note: in definition of macro ‘G_DECLARE_FINAL_TYPE’ /usr/include/glib-2.0/gobject/gtype.h:541:66: note: in expansion of macro ‘_G_TYPE_CIT’ /usr/include/glib-2.0/gobject/gtype.h:1614:12: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_TYPE’ modulemd-2.15.0/modulemd/include/modulemd-2.0/modulemd-module.h:34:1: note: in expansion of macro ‘G_DECLARE_FINAL_TYPE’ /usr/include/glib-2.0/gobject/gtype.h:541:66: note: in expansion of macro ‘_G_TYPE_CIT’ /usr/include/glib-2.0/gobject/gtype.h:1614:12: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_TYPE’ modulemd-2.15.0/modulemd/include/modulemd-2.0/modulemd-module.h:34:1: note: in expansion of macro ‘G_DECLARE_FINAL_TYPE’ /usr/include/glib-2.0/glib/gmacros.h:1237:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’ modulemd-2.15.0/modulemd/modulemd-module.c:482:3: note: in expansion of macro ‘g_return_val_if_fail’ /usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’ modulemd-2.15.0/modulemd/modulemd-module.c:482:3: note: in expansion of macro ‘g_return_val_if_fail’ # 1022| /* loop through all upgraded streams */ # 1023| upgraded_streams = modulemd_module_get_all_streams (upgraded_module); # 1024|-> for (guint i = 0; i < upgraded_streams->len; i++) # 1025| { # 1026| upgraded_stream = Error: GCC_ANALYZER_WARNING (CWE-688): modulemd-2.15.0/modulemd/modulemd-util.c: scope_hint: In function ‘modulemd_validate_nevra’ modulemd-2.15.0/modulemd/modulemd-util.c:379:15: warning[-Wanalyzer-null-argument]: use of NULL ‘nevra’ 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. modulemd-2.15.0/modulemd/include/modulemd-2.0/modulemd-errors.h:16: included_from: Included from here. modulemd-2.15.0/modulemd/modulemd-util.c:18: included_from: Included from here. modulemd-2.15.0/modulemd/modulemd-util.c:378:27: note: in expansion of macro ‘g_strdup’ modulemd-2.15.0/modulemd/modulemd-util.c: scope_hint: In function ‘modulemd_validate_nevra’ <built-in>: note: argument 1 of ‘__builtin_strlen’ must be non-null # 377| { # 378| g_autofree gchar *tmp = g_strdup (nevra); # 379|-> gsize len = strlen (nevra); # 380| gchar *i; # 381| gchar *endptr; Error: GCC_ANALYZER_WARNING (CWE-775): modulemd-2.15.0/modulemd/modulemd-validator.c: scope_hint: In function ‘parse_file_as_subdoc_and_validate’ modulemd-2.15.0/modulemd/modulemd-validator.c:235:10: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(filename, "r")’ # 233| # 234| /* Open the file and determine a document type */ # 235|-> file = fopen (filename, "r"); # 236| if (!file) # 237| { Error: GCC_ANALYZER_WARNING (CWE-401): modulemd-2.15.0/modulemd/modulemd-validator.c:235:10: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(filename, "r")’ # 233| # 234| /* Open the file and determine a document type */ # 235|-> file = fopen (filename, "r"); # 236| if (!file) # 237| { Error: GCC_ANALYZER_WARNING (CWE-688): modulemd-2.15.0/modulemd/tests/test-modulemd-compression.c:102:12: warning[-Wanalyzer-null-argument]: use of NULL ‘fopen(g_strdup_printf("%s/compression/%s", g_getenv("TEST_DATA_PATH"), expected[i].filename), "rbe")’ where non-null expected modulemd-2.15.0/modulemd/tests/test-modulemd-compression.c:100:20: note: in expansion of macro ‘g_fopen’ /usr/lib64/glib-2.0/include/glibconfig.h:9: included_from: Included from here. /usr/include/glib-2.0/glib/gtypes.h:34: included_from: Included from here. /usr/include/glib-2.0/glib/galloca.h:34: included_from: Included from here. /usr/include/glib-2.0/glib.h:32: included_from: Included from here. modulemd-2.15.0/modulemd/tests/test-modulemd-compression.c:14: included_from: Included from here. /usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gtestutils.h:255:49: note: in expansion of macro ‘G_LIKELY’ modulemd-2.15.0/modulemd/tests/test-modulemd-compression.c:101:7: note: in expansion of macro ‘g_assert_nonnull’ /usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gtestutils.h:255:49: note: in expansion of macro ‘G_LIKELY’ modulemd-2.15.0/modulemd/tests/test-modulemd-compression.c:101:7: note: in expansion of macro ‘g_assert_nonnull’ /usr/include/glib-2.0/glib.h:89: included_from: Included from here. modulemd-2.15.0/modulemd/tests/test-modulemd-compression.c:101:7: note: in expansion of macro ‘g_assert_nonnull’ /usr/include/glib-2.0/glib/gprintf.h:24: included_from: Included from here. /usr/include/glib-2.0/glib/gstdio.h:24: included_from: Included from here. /usr/include/stdio.h:883:12: note: argument 1 of ‘fileno’ must be non-null # 100| filestream = g_fopen (filename, "rbe"); # 101| g_assert_nonnull (filestream); # 102|-> fd = fileno (filestream); # 103| result = modulemd_detect_compression (filename, fd, &error); # 104| g_assert_no_error (error); Error: GCC_ANALYZER_WARNING (CWE-688): modulemd-2.15.0/modulemd/tests/test-modulemd-compression.c:136:12: warning[-Wanalyzer-null-argument]: use of NULL ‘fopen(g_strdup_printf("%s/compression/%s", g_getenv("TEST_DATA_PATH"), expected_magic[j].filename), "rbe")’ where non-null expected /usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gtestutils.h:255:49: note: in expansion of macro ‘G_LIKELY’ modulemd-2.15.0/modulemd/tests/test-modulemd-compression.c:101:7: note: in expansion of macro ‘g_assert_nonnull’ modulemd-2.15.0/modulemd/tests/test-modulemd-compression.c:108:7: note: in expansion of macro ‘g_clear_pointer’ modulemd-2.15.0/modulemd/tests/test-modulemd-compression.c:108:7: note: in expansion of macro ‘g_clear_pointer’ /usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gtestutils.h:255:49: note: in expansion of macro ‘G_LIKELY’ modulemd-2.15.0/modulemd/tests/test-modulemd-compression.c:101:7: note: in expansion of macro ‘g_assert_nonnull’ modulemd-2.15.0/modulemd/tests/test-modulemd-compression.c:108:7: note: in expansion of macro ‘g_clear_pointer’ modulemd-2.15.0/modulemd/tests/test-modulemd-compression.c:108:7: note: in expansion of macro ‘g_clear_pointer’ modulemd-2.15.0/modulemd/tests/test-modulemd-compression.c:134:20: note: in expansion of macro ‘g_fopen’ /usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gtestutils.h:255:49: note: in expansion of macro ‘G_LIKELY’ modulemd-2.15.0/modulemd/tests/test-modulemd-compression.c:135:7: note: in expansion of macro ‘g_assert_nonnull’ /usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gtestutils.h:255:49: note: in expansion of macro ‘G_LIKELY’ modulemd-2.15.0/modulemd/tests/test-modulemd-compression.c:135:7: note: in expansion of macro ‘g_assert_nonnull’ modulemd-2.15.0/modulemd/tests/test-modulemd-compression.c:135:7: note: in expansion of macro ‘g_assert_nonnull’ /usr/include/stdio.h:883:12: note: argument 1 of ‘fileno’ must be non-null # 134| filestream = g_fopen (filename, "rbe"); # 135| g_assert_nonnull (filestream); # 136|-> fd = fileno (filestream); # 137| result = modulemd_detect_compression (filename, fd, &error); # 138| g_assert_no_error (error); Error: CLANG_WARNING: modulemd-2.15.0/modulemd/tests/test-modulemd-validator.c:201:8: warning[core.NullDereference]: Array access (from variable 'validator_argv') results in a null pointer dereference # 199| validator_argv++; # 200| } # 201|-> if (!validator_argv[0]) # 202| { # 203| g_fprintf (stderr, "No positional arguments.\n"); Error: CLANG_WARNING: modulemd-2.15.0/redhat-linux-build/modulemd-2.0-scan.c:242:16: warning[deadcode.DeadStores]: Although the value stored to 'event_num' is used in the enclosing expression, the value is never actually read from 'event_num' Error: CLANG_WARNING: modulemd-2.15.0/redhat-linux-build/tmp-introspect791er2jg/Modulemd-2.0.c:799:27: warning[core.NullDereference]: Access to field 'message' results in a dereference of a null pointer (loaded from variable 'error')