Error: GCC_ANALYZER_WARNING (CWE-775): [#def1] gupnp-1.6.7-build/gupnp-1.6.7/libgupnp/gupnp-linux-context-manager.c: scope_hint: In function ‘create_netlink_socket’ gupnp-1.6.7-build/gupnp-1.6.7/libgupnp/gupnp-linux-context-manager.c:1026:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor # 1024| # 1025| fd = socket (PF_NETLINK, SOCK_DGRAM, NETLINK_ROUTE); # 1026|-> if (fd == -1) { # 1027| g_set_error_literal (error, # 1028| G_IO_ERROR, Error: GCC_ANALYZER_WARNING (CWE-476): [#def2] /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. gupnp-1.6.7-build/gupnp-1.6.7/libgupnp/gupnp-error.h:12: included_from: Included from here. gupnp-1.6.7-build/gupnp-1.6.7/libgupnp/gupnp-service-proxy-action.c:14: included_from: Included from here. gupnp-1.6.7-build/gupnp-1.6.7/libgupnp/gupnp-service-proxy-action.c: scope_hint: In function ‘gupnp_service_proxy_action_add_argument’ gupnp-1.6.7-build/gupnp-1.6.7/libgupnp/gupnp-service-proxy-action.c:552:31: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘action’ /usr/include/glib-2.0/glib/gmacros.h:1243:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1250: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’ gupnp-1.6.7-build/gupnp-1.6.7/libgupnp/gupnp-service-proxy-action.c:552:9: note: in expansion of macro ‘g_return_val_if_fail’ /usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1250: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’ gupnp-1.6.7-build/gupnp-1.6.7/libgupnp/gupnp-service-proxy-action.c:282:9: note: in expansion of macro ‘g_return_val_if_fail’ /usr/include/glib-2.0/glib.h:64: included_from: Included from here. gupnp-1.6.7-build/gupnp-1.6.7/libgupnp/gupnp-service-proxy-action.c:282:9: note: in expansion of macro ‘g_return_val_if_fail’ /usr/include/glib-2.0/glib/gmacros.h:1243:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1250: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’ gupnp-1.6.7-build/gupnp-1.6.7/libgupnp/gupnp-service-proxy-action.c:552:9: note: in expansion of macro ‘g_return_val_if_fail’ # 550| const GValue *value) # 551| { # 552|-> g_return_val_if_fail (g_hash_table_lookup_extended (action->arg_map, # 553| name, # 554| NULL, Error: GCC_ANALYZER_WARNING (CWE-476): [#def3] gupnp-1.6.7-build/gupnp-1.6.7/libgupnp/http-headers.c: scope_hint: In function ‘http_language_from_locale’ gupnp-1.6.7-build/gupnp-1.6.7/libgupnp/http-headers.c:33:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘lang’ /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. /usr/include/glib-2.0/gobject/gbinding.h:30: included_from: Included from here. /usr/include/glib-2.0/glib-object.h:24: included_from: Included from here. /usr/include/glib-2.0/gio/gioenums.h:30: included_from: Included from here. /usr/include/glib-2.0/gio/giotypes.h:30: included_from: Included from here. /usr/include/glib-2.0/gio/gio.h:28: included_from: Included from here. gupnp-1.6.7-build/gupnp-1.6.7/libgupnp/http-headers.c:16: included_from: Included from here. gupnp-1.6.7-build/gupnp-1.6.7/libgupnp/http-headers.c:235:16: note: in expansion of macro ‘g_strdup’ gupnp-1.6.7-build/gupnp-1.6.7/libgupnp/http-headers.c: scope_hint: In function ‘http_language_from_locale’ # 31| dash_index = -1; # 32| # 33|-> for (i = 0; lang[i] != '\0'; i++) { # 34| switch (lang[i]) { # 35| case '_':
analyzer-version-clippy | 1.82.0 |
analyzer-version-cppcheck | 2.16.0 |
analyzer-version-gcc | 14.2.1 |
analyzer-version-gcc-analyzer | 15.0.0 |
analyzer-version-shellcheck | 0.10.0 |
analyzer-version-unicontrol | 0.0.2 |
enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
exit-code | 0 |
host | ip-172-16-1-102.us-west-2.compute.internal |
mock-config | fedora-rawhide-gcc-latest-x86_64 |
project-name | gupnp-1.6.7-1.fc42 |
store-results-to | /tmp/tmp6htfohc4/gupnp-1.6.7-1.fc42.tar.xz |
time-created | 2024-11-13 00:10:06 |
time-finished | 2024-11-13 00:11:45 |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmp6htfohc4/gupnp-1.6.7-1.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmp6htfohc4/gupnp-1.6.7-1.fc42.src.rpm' |
tool-version | csmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9 |