Task #1362 - gvfs-1.54.0-2.fc40/scan-results.err
back to task #1362download
Error: CPPCHECK_WARNING: gvfs-1.54.0-build/gvfs-1.54.0/client/afpuri.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gvfs-1.54.0-build/gvfs-1.54.0/client/gdaemonfile.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: GCC_ANALYZER_WARNING (CWE-476): gvfs-1.54.0-build/gvfs-1.54.0/client/gdaemonfile.c: scope_hint: In function ‘create_proxy_for_file2’ gvfs-1.54.0-build/gvfs-1.54.0/client/gdaemonfile.c:415:64: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘file1’ gvfs-1.54.0-build/gvfs-1.54.0/client/gdaemonfile.c: scope_hint: In function ‘create_proxy_for_file2’ gvfs-1.54.0-build/gvfs-1.54.0/client/gdaemonfile.c: scope_hint: In function ‘create_proxy_for_file2’ # 413| # 414| mount_info1 = _g_daemon_vfs_get_mount_info_sync (daemon_file1->mount_spec, # 415|-> daemon_file1->path, # 416| cancellable, # 417| &local_error); Error: CPPCHECK_WARNING: gvfs-1.54.0-build/gvfs-1.54.0/client/gdaemonfileinputstream.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CLANG_WARNING: gvfs-1.54.0-build/gvfs-1.54.0/client/gdaemonfileinputstream.c:529:4: warning[deadcode.DeadStores]: Value stored to 'res' is never read # 527| else # 528| { # 529|-> res = 0; # 530| g_assert_not_reached (); # 531| } Error: CPPCHECK_WARNING: gvfs-1.54.0-build/gvfs-1.54.0/client/gdaemonfileoutputstream.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CLANG_WARNING: gvfs-1.54.0-build/gvfs-1.54.0/client/gdaemonfileoutputstream.c:480:4: warning[deadcode.DeadStores]: Value stored to 'res' is never read # 478| else # 479| { # 480|-> res = 0; # 481| g_assert_not_reached (); # 482| } Error: CPPCHECK_WARNING: gvfs-1.54.0-build/gvfs-1.54.0/client/gdaemonvfs.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gvfs-1.54.0-build/gvfs-1.54.0/client/gvfsdaemondbus.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gvfs-1.54.0-build/gvfs-1.54.0/client/gvfsfusedaemon.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CLANG_WARNING: gvfs-1.54.0-build/gvfs-1.54.0/client/gvfsfusedaemon.c:567:9: warning[deadcode.DeadStores]: Value stored to 'uint_result' is never read # 565| # 566| default: # 567|-> uint_result = 0; # 568| g_debug ("attribute: %s type: %d\n", attribute, attribute_type); # 569| g_assert_not_reached (); Error: CPPCHECK_WARNING: gvfs-1.54.0-build/gvfs-1.54.0/client/gvfsuriutils.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gvfs-1.54.0-build/gvfs-1.54.0/client/smburi.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gvfs-1.54.0-build/gvfs-1.54.0/common/gmountsource.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gvfs-1.54.0-build/gvfs-1.54.0/common/gmountspec.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gvfs-1.54.0-build/gvfs-1.54.0/common/gmounttracker.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gvfs-1.54.0-build/gvfs-1.54.0/common/gvfsdaemonprotocol.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gvfs-1.54.0-build/gvfs-1.54.0/common/gvfsdnssdresolver.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gvfs-1.54.0-build/gvfs-1.54.0/common/gvfsdnssdutils.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gvfs-1.54.0-build/gvfs-1.54.0/common/gvfsgphoto2utils.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gvfs-1.54.0-build/gvfs-1.54.0/common/gvfsmountinfo.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gvfs-1.54.0-build/gvfs-1.54.0/daemon/ParseFTPList.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CLANG_WARNING: gvfs-1.54.0-build/gvfs-1.54.0/daemon/ParseFTPList.c:44:3: warning[deadcode.DeadStores]: Value stored to 'linelen' is never read # 42| state->carry_buf_len = 0; # 43| # 44|-> linelen = 0; # 45| # 46| /* strip leading whitespace */ Error: CLANG_WARNING: gvfs-1.54.0-build/gvfs-1.54.0/daemon/ParseFTPList.c:170:29: warning[deadcode.DeadStores]: Although the value stored to 'lstyle' is used in the enclosing expression, the value is never actually read from 'lstyle' # 168| { # 169| state->parsed_one = 1; # 170|-> state->lstyle = lstyle = 'E'; # 171| # 172| p = &(line[linelen_sans_wsp]); Error: CPPCHECK_WARNING: gvfs-1.54.0-build/gvfs-1.54.0/daemon/daemon-main.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CLANG_WARNING: gvfs-1.54.0-build/gvfs-1.54.0/daemon/daemon-main.c:383:3: warning[deadcode.DeadStores]: Value stored to 'name_owner_id' is never read # 381| loop = g_main_loop_new (NULL, FALSE); # 382| # 383|-> name_owner_id = 0; # 384| /* We want to own *some* name on the org.gtk.vfs.* namespace so that # 385| filtering for us works from a sandbox */ Error: CPPCHECK_WARNING: gvfs-1.54.0-build/gvfs-1.54.0/daemon/gvfsafpconnection.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CLANG_WARNING: gvfs-1.54.0-build/gvfs-1.54.0/daemon/gvfsafpconnection.c:1671:5: warning[deadcode.DeadStores]: Value stored to 'res' is never read # 1669| g_io_stream_close (priv->stream, NULL, NULL); # 1670| else # 1671|-> res = g_io_stream_close (priv->stream, NULL, &err); # 1672| # 1673| g_clear_object (&priv->stream); Error: GCC_ANALYZER_WARNING (CWE-476): gvfs-1.54.0-build/gvfs-1.54.0/daemon/gvfsafpconnection.c: scope_hint: In function ‘open_thread_func’ gvfs-1.54.0-build/gvfs-1.54.0/daemon/gvfsafpconnection.c:1788:23: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘reply’ /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. /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:276:49: note: in expansion of macro ‘G_LIKELY’ gvfs-1.54.0-build/gvfs-1.54.0/daemon/gvfsafpconnection.c:1510:3: note: in expansion of macro ‘g_assert’ /usr/include/glib-2.0/glib/gtypes.h:219:27: note: in definition of macro ‘GUINT16_SWAP_LE_BE_CONSTANT’ /usr/lib64/glib-2.0/include/glibconfig.h:160:34: note: in expansion of macro ‘GUINT16_SWAP_LE_BE’ /usr/include/glib-2.0/glib/gtypes.h:415:34: note: in expansion of macro ‘GUINT16_TO_BE’ gvfs-1.54.0-build/gvfs-1.54.0/daemon/gvfsafpconnection.c:1525:27: note: in expansion of macro ‘GUINT16_FROM_BE’ # 1786| guint8 optionLength; # 1787| # 1788|-> optionType = reply[pos++]; # 1789| optionLength = reply[pos++]; # 1790| Error: CPPCHECK_WARNING: gvfs-1.54.0-build/gvfs-1.54.0/daemon/gvfsafpserver.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gvfs-1.54.0-build/gvfs-1.54.0/daemon/gvfsafpvolume.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gvfs-1.54.0-build/gvfs-1.54.0/daemon/gvfsbackend.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gvfs-1.54.0-build/gvfs-1.54.0/daemon/gvfsbackendadmin.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gvfs-1.54.0-build/gvfs-1.54.0/daemon/gvfsbackendafc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING (CWE-457): gvfs-1.54.0-build/gvfs-1.54.0/daemon/gvfsbackendafc.c:591: error[legacyUninitvar]: Uninitialized variable: message # 589| # 590| ret = g_mount_source_ask_question (src, # 591|-> message, # 592| choices, # 593| &aborted, Error: GCC_ANALYZER_WARNING (CWE-688): gvfs-1.54.0-build/gvfs-1.54.0/daemon/gvfsbackendarchive.c: scope_hint: In function ‘fixup_path’ gvfs-1.54.0-build/gvfs-1.54.0/daemon/gvfsbackendarchive.c:266:17: warning[-Wanalyzer-null-argument]: use of NULL ‘ptr’ 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. /usr/include/glib-2.0/glib/gi18n.h:23: included_from: Included from here. gvfs-1.54.0-build/gvfs-1.54.0/daemon/gvfsbackendarchive.c:26: included_from: Included from here. gvfs-1.54.0-build/gvfs-1.54.0/daemon/gvfsbackendarchive.c:262:11: note: in expansion of macro ‘g_strdup’ gvfs-1.54.0-build/gvfs-1.54.0/daemon/gvfsbackendarchive.c: scope_hint: In function ‘fixup_path’ <built-in>: note: argument 1 of ‘__builtin_strstr’ must be non-null # 264| /* strip '/./' from the path */ # 265| ptr = str; # 266|-> while ((ptr = strstr (ptr, "/./"))) # 267| { # 268| char *dst = ptr + 2; Error: GCC_ANALYZER_WARNING (CWE-476): gvfs-1.54.0-build/gvfs-1.54.0/daemon/gvfsbackendarchive.c: scope_hint: In function ‘archive_file_set_info_from_entry’ gvfs-1.54.0-build/gvfs-1.54.0/daemon/gvfsbackendarchive.c:426:14: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘file’ /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. /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:276:49: note: in expansion of macro ‘G_LIKELY’ gvfs-1.54.0-build/gvfs-1.54.0/daemon/gvfsbackendarchive.c:559:3: note: in expansion of macro ‘g_assert’ /usr/include/glib-2.0/glib.h:64: included_from: Included from here. gvfs-1.54.0-build/gvfs-1.54.0/daemon/gvfsbackendarchive.c:302:3: note: in expansion of macro ‘g_debug’ gvfs-1.54.0-build/gvfs-1.54.0/daemon/gvfsbackendarchive.c:302:3: note: in expansion of macro ‘g_debug’ # 424| mode_t mode; # 425| int64_t size; # 426|-> file->info = info; # 427| # 428| g_debug ("setting up %s (%s)\n", archive_entry_pathname (entry), file->name); Error: CPPCHECK_WARNING: gvfs-1.54.0-build/gvfs-1.54.0/daemon/gvfsbackendburn.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: GCC_ANALYZER_WARNING (CWE-476): /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. gvfs-1.54.0-build/gvfs-1.54.0/daemon/gvfsbackendburn.c:35: included_from: Included from here. gvfs-1.54.0-build/gvfs-1.54.0/daemon/gvfsbackendburn.c: scope_hint: In function ‘virtual_dir_lookup’ gvfs-1.54.0-build/gvfs-1.54.0/daemon/gvfsbackendburn.c:183:16: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘dir’ /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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’ gvfs-1.54.0-build/gvfs-1.54.0/daemon/gvfsbackendburn.c:183:3: note: in expansion of macro ‘g_assert’ /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. gvfs-1.54.0-build/gvfs-1.54.0/daemon/gvfsbackendburn.c:204:15: note: in expansion of macro ‘g_strdup’ gvfs-1.54.0-build/gvfs-1.54.0/daemon/gvfsbackendburn.c: scope_hint: In function ‘virtual_dir_lookup’ /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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’ gvfs-1.54.0-build/gvfs-1.54.0/daemon/gvfsbackendburn.c:183:3: note: in expansion of macro ‘g_assert’ # 181| VirtualNode *node; # 182| # 183|-> g_assert (dir->type == VIRTUAL_NODE_DIRECTORY); # 184| # 185| for (l = dir->children; l != NULL; l = l->next) Error: CLANG_WARNING: gvfs-1.54.0-build/gvfs-1.54.0/daemon/gvfsbackendburn.c:273:13: warning[core.NullDereference]: Access to field 'type' results in a dereference of a null pointer (loaded from variable 'dir') # 271| VirtualNode *node) # 272| { # 273|-> g_assert (dir->type == VIRTUAL_NODE_DIRECTORY); # 274| # 275| dir->children = g_list_remove (dir->children, node); Error: GCC_ANALYZER_WARNING (CWE-476): gvfs-1.54.0-build/gvfs-1.54.0/daemon/gvfsbackendburn.c: scope_hint: In function ‘virtual_unlink’ gvfs-1.54.0-build/gvfs-1.54.0/daemon/gvfsbackendburn.c:273:16: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘dir’ /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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’ gvfs-1.54.0-build/gvfs-1.54.0/daemon/gvfsbackendburn.c:273:3: note: in expansion of macro ‘g_assert’ gvfs-1.54.0-build/gvfs-1.54.0/daemon/gvfsbackendburn.c:204:15: note: in expansion of macro ‘g_strdup’ gvfs-1.54.0-build/gvfs-1.54.0/daemon/gvfsbackendburn.c: scope_hint: In function ‘virtual_unlink’ /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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’ gvfs-1.54.0-build/gvfs-1.54.0/daemon/gvfsbackendburn.c:273:3: note: in expansion of macro ‘g_assert’ # 271| VirtualNode *node) # 272| { # 273|-> g_assert (dir->type == VIRTUAL_NODE_DIRECTORY); # 274| # 275| dir->children = g_list_remove (dir->children, node); Error: CLANG_WARNING: gvfs-1.54.0-build/gvfs-1.54.0/daemon/gvfsbackendburn.c:759:3: warning[deadcode.DeadStores]: Value stored to 'file' is never read # 757| } # 758| # 759|-> file = virtual_mkdir (dir, basename); # 760| g_free (basename); # 761| Error: CLANG_WARNING: gvfs-1.54.0-build/gvfs-1.54.0/daemon/gvfsbackendburn.c:932:7: warning[deadcode.DeadStores]: Value stored to 'file' is never read # 930| { # 931| basename = g_path_get_basename (destination); # 932|-> file = virtual_create (G_VFS_BACKEND_BURN (backend), # 933| dir, # 934| basename, Error: CLANG_WARNING: gvfs-1.54.0-build/gvfs-1.54.0/daemon/gvfsbackendburn.c:1018:45: warning[core.NullDereference]: Access to field 'children' results in a dereference of a null pointer (loaded from variable 'source_dir') # 1016| if (source_dir != dest_dir) # 1017| { # 1018|-> source_dir->children = g_list_remove (source_dir->children, source_node); # 1019| dest_dir->children = g_list_append (dest_dir->children, source_node); # 1020| } Error: CLANG_WARNING: gvfs-1.54.0-build/gvfs-1.54.0/daemon/gvfsbackendcdda.c:581:35: warning[deadcode.DeadStores]: Value stored to 'ptr' is never read # 579| # 580| memcpy (ptr, "data", 4); ptr += 4; # 581|-> memcpy (ptr, &content_size, 4); ptr += 4; # 582| # 583| g_free (artist); Error: CLANG_WARNING: gvfs-1.54.0-build/gvfs-1.54.0/daemon/gvfsbackendcdda.c:672:7: warning[deadcode.DeadStores]: Value stored to 'skip_bytes' is never read # 670| if (read_handle->cursor >= read_handle->size) # 671| { # 672|-> skip_bytes = 0; # 673| bytes_read = 0; # 674| readbuf = NULL; Error: CLANG_WARNING: gvfs-1.54.0-build/gvfs-1.54.0/daemon/gvfsbackendcdda.c:738:3: warning[deadcode.DeadStores]: Value stored to 'cursor_in_stream' is never read # 736| # 737| read_handle->cursor += bytes_to_copy; # 738|-> cursor_in_stream = read_handle->cursor - read_handle->header_size; # 739| # 740| Error: CPPCHECK_WARNING: gvfs-1.54.0-build/gvfs-1.54.0/daemon/gvfsbackendcomputer.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gvfs-1.54.0-build/gvfs-1.54.0/daemon/gvfsbackenddav.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: GCC_ANALYZER_WARNING (CWE-688): gvfs-1.54.0-build/gvfs-1.54.0/daemon/gvfsbackenddnssd.c: scope_hint: In function ‘get_icon_for_type’ gvfs-1.54.0-build/gvfs-1.54.0/daemon/gvfsbackenddnssd.c:221:11: warning[-Wanalyzer-null-argument]: use of NULL ‘type’ 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. gvfs-1.54.0-build/gvfs-1.54.0/daemon/gvfsbackenddnssd.c:27: included_from: Included from here. gvfs-1.54.0-build/gvfs-1.54.0/daemon/gvfsbackenddnssd.c:277:16: note: in expansion of macro ‘g_strdup’ gvfs-1.54.0-build/gvfs-1.54.0/daemon/gvfsbackenddnssd.c: scope_hint: In function ‘get_icon_for_type’ gvfs-1.54.0-build/gvfs-1.54.0/daemon/gvfsbackenddnssd.c:26: included_from: Included from here. /usr/include/string.h:156:12: note: argument 1 of ‘strcmp’ must be non-null # 219| for (i = 0; i < G_N_ELEMENTS (dns_sd_types); i++) # 220| { # 221|-> if (strcmp (type, dns_sd_types[i].type) == 0) # 222| { # 223| const char *icon_name; Error: GCC_ANALYZER_WARNING (CWE-688): gvfs-1.54.0-build/gvfs-1.54.0/daemon/gvfsbackenddnssd.c: scope_hint: In function ‘try_query_info.part.0’ gvfs-1.54.0-build/gvfs-1.54.0/daemon/gvfsbackenddnssd.c:515:13: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected gvfs-1.54.0-build/gvfs-1.54.0/daemon/gvfsbackenddnssd.c:514:11: note: in expansion of macro ‘g_strdup’ gvfs-1.54.0-build/gvfs-1.54.0/daemon/gvfsbackenddnssd.c: scope_hint: In function ‘try_query_info.part.0’ <built-in>: note: argument 1 of ‘__builtin_strlen’ must be non-null # 513| # 514| s = g_strdup (job->uri); # 515|-> if (s[strlen(s) - 1] == '/') /* job->uri is guranteed to be longer than 1 byte */ # 516| s[strlen(s) - 1] = '\0'; # 517| display_name = g_path_get_basename (s); Error: CPPCHECK_WARNING: gvfs-1.54.0-build/gvfs-1.54.0/daemon/gvfsbackendftp.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gvfs-1.54.0-build/gvfs-1.54.0/daemon/gvfsbackendgoogle.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gvfs-1.54.0-build/gvfs-1.54.0/daemon/gvfsbackendgphoto2.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: GCC_ANALYZER_WARNING (CWE-688): gvfs-1.54.0-build/gvfs-1.54.0/daemon/gvfsbackendgphoto2.c: scope_hint: In function ‘dup_for_gphoto2’ gvfs-1.54.0-build/gvfs-1.54.0/daemon/gvfsbackendgphoto2.c:325:3: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘mem’ where non-null expected <built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null # 323| char *mem; # 324| mem = malloc (size); # 325|-> memcpy (mem, gmem, size); # 326| return mem; # 327| } Error: CLANG_WARNING: gvfs-1.54.0-build/gvfs-1.54.0/daemon/gvfsbackendgphoto2.c:3007:8: warning[unix.Malloc]: Potential memory leak # 3005| # 3006| #ifdef HAVE_GPHOTO25 # 3007|-> rc = gp_camera_folder_put_file (gphoto2_backend->camera, write_handle->dir, write_handle->name, GP_FILE_TYPE_NORMAL, file, gphoto2_backend->context); # 3008| #else # 3009| gp_file_set_type (file, GP_FILE_TYPE_NORMAL); Error: CLANG_WARNING: gvfs-1.54.0-build/gvfs-1.54.0/daemon/gvfsbackendgphoto2.c:3062:41: warning[unix.Malloc]: Use of memory after it is freed # 3060| out: # 3061| write_handle_free (write_handle); # 3062|-> gphoto2_backend->open_write_handles = g_list_remove (gphoto2_backend->open_write_handles, write_handle); # 3063| } # 3064| Error: CLANG_WARNING: gvfs-1.54.0-build/gvfs-1.54.0/daemon/gvfsbackendlocaltest.c:299:3: warning[deadcode.DeadStores]: Value stored to 'res' is never read # 297| file = get_g_file_from_local (filename, G_VFS_JOB (job)); # 298| g_assert (file != NULL); # 299|-> res = TRUE; # 300| # 301| error = NULL; Error: CPPCHECK_WARNING: gvfs-1.54.0-build/gvfs-1.54.0/daemon/gvfsbackendmtp.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gvfs-1.54.0-build/gvfs-1.54.0/daemon/gvfsbackendnetwork.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gvfs-1.54.0-build/gvfs-1.54.0/daemon/gvfsbackendnfs.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: GCC_ANALYZER_WARNING (CWE-457): gvfs-1.54.0-build/gvfs-1.54.0/daemon/gvfsbackendnfs.c: scope_hint: In function ‘enumerate_continue’ gvfs-1.54.0-build/gvfs-1.54.0/daemon/gvfsbackendnfs.c:1786:7: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘path’ # 1784| } # 1785| # 1786|-> g_free (path); # 1787| } # 1788| else Error: CPPCHECK_WARNING: gvfs-1.54.0-build/gvfs-1.54.0/daemon/gvfsbackendonedrive.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gvfs-1.54.0-build/gvfs-1.54.0/daemon/gvfsbackendsftp.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gvfs-1.54.0-build/gvfs-1.54.0/daemon/gvfsbackendsmb.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CLANG_WARNING: gvfs-1.54.0-build/gvfs-1.54.0/daemon/gvfsbackendsmb.c:485:3: warning[deadcode.DeadStores]: Value stored to 'errsv' is never read # 483| op_backend->password_save = G_PASSWORD_SAVE_NEVER; # 484| # 485|-> errsv = 0; # 486| # 487| /* If user is not specified, first and second iteration is kerberos resp. Error: CPPCHECK_WARNING: gvfs-1.54.0-build/gvfs-1.54.0/daemon/gvfsbackendsmbbrowse.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CLANG_WARNING: gvfs-1.54.0-build/gvfs-1.54.0/daemon/gvfsbackendsmbbrowse.c:786:3: warning[deadcode.DeadStores]: Value stored to 'errsv' is never read # 784| g_debug ("do_mount - URI = %s\n", uri); # 785| # 786|-> errsv = 0; # 787| # 788| do Error: CPPCHECK_WARNING: gvfs-1.54.0-build/gvfs-1.54.0/daemon/gvfsbackendtrash.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gvfs-1.54.0-build/gvfs-1.54.0/daemon/gvfschannel.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gvfs-1.54.0-build/gvfs-1.54.0/daemon/gvfsdaemonutils.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gvfs-1.54.0-build/gvfs-1.54.0/daemon/gvfsftpconnection.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gvfs-1.54.0-build/gvfs-1.54.0/daemon/gvfsftpdircache.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: GCC_ANALYZER_WARNING (CWE-476): gvfs-1.54.0-build/gvfs-1.54.0/daemon/gvfsftpdircache.c: scope_hint: In function ‘g_vfs_ftp_dir_cache_funcs_resolve_default’ gvfs-1.54.0-build/gvfs-1.54.0/daemon/gvfsftpdircache.c:771:35: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘new_path’ /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. /usr/include/glib-2.0/glib/gi18n.h:23: included_from: Included from here. gvfs-1.54.0-build/gvfs-1.54.0/daemon/gvfsftpdircache.c:28: 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’ gvfs-1.54.0-build/gvfs-1.54.0/daemon/gvfsftpdircache.c:753: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’ gvfs-1.54.0-build/gvfs-1.54.0/daemon/gvfsftpdircache.c:754: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’ gvfs-1.54.0-build/gvfs-1.54.0/daemon/gvfsftpdircache.c:754:3: note: in expansion of macro ‘g_return_val_if_fail’ /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. gvfs-1.54.0-build/gvfs-1.54.0/daemon/gvfsftpdircache.c:769:3: note: in expansion of macro ‘g_string_append_c’ /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/gstring.h:198:7: note: in expansion of macro ‘G_LIKELY’ gvfs-1.54.0-build/gvfs-1.54.0/daemon/gvfsftpdircache.c: scope_hint: In function ‘g_vfs_ftp_dir_cache_funcs_resolve_default’ # 769| g_string_append_c (new_path, '/'); /* slash at end makes code easier */ # 770| /* cleanup: remove all double slashes */ # 771|-> while ((match = strstr (new_path->str, "//")) != NULL) # 772| { # 773| g_string_erase (new_path, match - new_path->str, 1); Error: CPPCHECK_WARNING: gvfs-1.54.0-build/gvfs-1.54.0/daemon/gvfsftptask.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gvfs-1.54.0-build/gvfs-1.54.0/daemon/gvfshttpinputstream.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gvfs-1.54.0-build/gvfs-1.54.0/daemon/gvfskeyring.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CLANG_WARNING: gvfs-1.54.0-build/gvfs-1.54.0/daemon/gvfsmonitor.c:87:7: warning[unix.Malloc]: Use of memory after it is freed # 85| { # 86| subscriber = monitor->priv->subscribers->data; # 87|-> unsubscribe (subscriber); # 88| } # 89| Error: CPPCHECK_WARNING: gvfs-1.54.0-build/gvfs-1.54.0/daemon/gvfswsddservice.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gvfs-1.54.0-build/gvfs-1.54.0/daemon/main.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gvfs-1.54.0-build/gvfs-1.54.0/daemon/mount.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: GCC_ANALYZER_WARNING (CWE-775): gvfs-1.54.0-build/gvfs-1.54.0/daemon/pty_open.c:472:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pid_pipe[0]’ gvfs-1.54.0-build/gvfs-1.54.0/daemon/pty_open.c: scope_hint: In function ‘_pty_fork_on_pty_name’ gvfs-1.54.0-build/gvfs-1.54.0/daemon/pty_open.c: scope_hint: In function ‘_pty_fork_on_pty_name’ # 470| /* Error fork()ing. Bail. */ # 471| *child = -1; # 472|-> return -1; # 473| break; # 474| case 0: Error: GCC_ANALYZER_WARNING (CWE-775): gvfs-1.54.0-build/gvfs-1.54.0/daemon/pty_open.c:472:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pid_pipe[1]’ gvfs-1.54.0-build/gvfs-1.54.0/daemon/pty_open.c: scope_hint: In function ‘_pty_fork_on_pty_name’ gvfs-1.54.0-build/gvfs-1.54.0/daemon/pty_open.c: scope_hint: In function ‘_pty_fork_on_pty_name’ # 470| /* Error fork()ing. Bail. */ # 471| *child = -1; # 472|-> return -1; # 473| break; # 474| case 0: Error: GCC_ANALYZER_WARNING (CWE-775): gvfs-1.54.0-build/gvfs-1.54.0/daemon/pty_open.c:472:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘stderr_pipe[0]’ gvfs-1.54.0-build/gvfs-1.54.0/daemon/pty_open.c: scope_hint: In function ‘_pty_fork_on_pty_name’ gvfs-1.54.0-build/gvfs-1.54.0/daemon/pty_open.c: scope_hint: In function ‘_pty_fork_on_pty_name’ # 470| /* Error fork()ing. Bail. */ # 471| *child = -1; # 472|-> return -1; # 473| break; # 474| case 0: Error: GCC_ANALYZER_WARNING (CWE-775): gvfs-1.54.0-build/gvfs-1.54.0/daemon/pty_open.c:472:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘stderr_pipe[1]’ gvfs-1.54.0-build/gvfs-1.54.0/daemon/pty_open.c: scope_hint: In function ‘_pty_fork_on_pty_name’ gvfs-1.54.0-build/gvfs-1.54.0/daemon/pty_open.c: scope_hint: In function ‘_pty_fork_on_pty_name’ # 470| /* Error fork()ing. Bail. */ # 471| *child = -1; # 472|-> return -1; # 473| break; # 474| case 0: Error: GCC_ANALYZER_WARNING (CWE-775): gvfs-1.54.0-build/gvfs-1.54.0/daemon/pty_open.c: scope_hint: In function ‘_pty_fork_on_pty_name’ gvfs-1.54.0-build/gvfs-1.54.0/daemon/pty_open.c:472:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘stdin_pipe[0]’ gvfs-1.54.0-build/gvfs-1.54.0/daemon/pty_open.c: scope_hint: In function ‘_pty_fork_on_pty_name’ gvfs-1.54.0-build/gvfs-1.54.0/daemon/pty_open.c: scope_hint: In function ‘_pty_fork_on_pty_name’ # 470| /* Error fork()ing. Bail. */ # 471| *child = -1; # 472|-> return -1; # 473| break; # 474| case 0: Error: GCC_ANALYZER_WARNING (CWE-775): gvfs-1.54.0-build/gvfs-1.54.0/daemon/pty_open.c:472:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘stdin_pipe[1]’ gvfs-1.54.0-build/gvfs-1.54.0/daemon/pty_open.c: scope_hint: In function ‘_pty_fork_on_pty_name’ gvfs-1.54.0-build/gvfs-1.54.0/daemon/pty_open.c: scope_hint: In function ‘_pty_fork_on_pty_name’ # 470| /* Error fork()ing. Bail. */ # 471| *child = -1; # 472|-> return -1; # 473| break; # 474| case 0: Error: GCC_ANALYZER_WARNING (CWE-775): gvfs-1.54.0-build/gvfs-1.54.0/daemon/pty_open.c:472:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘stdout_pipe[0]’ gvfs-1.54.0-build/gvfs-1.54.0/daemon/pty_open.c: scope_hint: In function ‘_pty_fork_on_pty_name’ gvfs-1.54.0-build/gvfs-1.54.0/daemon/pty_open.c: scope_hint: In function ‘_pty_fork_on_pty_name’ # 470| /* Error fork()ing. Bail. */ # 471| *child = -1; # 472|-> return -1; # 473| break; # 474| case 0: Error: GCC_ANALYZER_WARNING (CWE-775): gvfs-1.54.0-build/gvfs-1.54.0/daemon/pty_open.c:472:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘stdout_pipe[1]’ gvfs-1.54.0-build/gvfs-1.54.0/daemon/pty_open.c: scope_hint: In function ‘_pty_fork_on_pty_name’ gvfs-1.54.0-build/gvfs-1.54.0/daemon/pty_open.c: scope_hint: In function ‘_pty_fork_on_pty_name’ # 470| /* Error fork()ing. Bail. */ # 471| *child = -1; # 472|-> return -1; # 473| break; # 474| case 0: Error: GCC_ANALYZER_WARNING: gvfs-1.54.0-build/gvfs-1.54.0/daemon/pty_open.c:526:17: warning[-Wanalyzer-fd-use-without-check]: ‘dup2’ on possibly invalid file descriptor ‘0’ gvfs-1.54.0-build/gvfs-1.54.0/daemon/pty_open.c: scope_hint: In function ‘_pty_fork_on_pty_name’ gvfs-1.54.0-build/gvfs-1.54.0/daemon/pty_open.c: scope_hint: In function ‘_pty_fork_on_pty_name’ # 524| # 525| /* Set up stdin/out/err */ # 526|-> dup2(stdin_pipe[0], STDIN_FILENO); # 527| close (stdin_pipe[0]); # 528| dup2(stdout_pipe[1], STDOUT_FILENO); Error: GCC_ANALYZER_WARNING (CWE-1341): gvfs-1.54.0-build/gvfs-1.54.0/daemon/pty_open.c:616:9: warning[-Wanalyzer-fd-double-close]: double ‘close’ of file descriptor ‘stderr_pipe[1]’ gvfs-1.54.0-build/gvfs-1.54.0/daemon/pty_open.c: scope_hint: In function ‘_pty_fork_on_pty_name’ gvfs-1.54.0-build/gvfs-1.54.0/daemon/pty_open.c: scope_hint: In function ‘_pty_fork_on_pty_name’ # 614| bail_slavefd: # 615| close(stderr_pipe[0]); # 616|-> close(stderr_pipe[1]); # 617| bail_stderr: # 618| close(stdout_pipe[0]); Error: GCC_ANALYZER_WARNING (CWE-1341): gvfs-1.54.0-build/gvfs-1.54.0/daemon/pty_open.c:619:9: warning[-Wanalyzer-fd-double-close]: double ‘close’ of file descriptor ‘stdout_pipe[1]’ gvfs-1.54.0-build/gvfs-1.54.0/daemon/pty_open.c: scope_hint: In function ‘_pty_fork_on_pty_name’ gvfs-1.54.0-build/gvfs-1.54.0/daemon/pty_open.c: scope_hint: In function ‘_pty_fork_on_pty_name’ # 617| bail_stderr: # 618| close(stdout_pipe[0]); # 619|-> close(stdout_pipe[1]); # 620| bail_stdout: # 621| close(stdin_pipe[0]); Error: GCC_ANALYZER_WARNING (CWE-1341): gvfs-1.54.0-build/gvfs-1.54.0/daemon/pty_open.c:621:9: warning[-Wanalyzer-fd-double-close]: double ‘close’ of file descriptor ‘stdin_pipe[0]’ gvfs-1.54.0-build/gvfs-1.54.0/daemon/pty_open.c: scope_hint: In function ‘_pty_fork_on_pty_name’ gvfs-1.54.0-build/gvfs-1.54.0/daemon/pty_open.c: scope_hint: In function ‘_pty_fork_on_pty_name’ # 619| close(stdout_pipe[1]); # 620| bail_stdout: # 621|-> close(stdin_pipe[0]); # 622| close(stdin_pipe[1]); # 623| bail_stdin: Error: CLANG_WARNING: gvfs-1.54.0-build/gvfs-1.54.0/daemon/pty_open.c:760:4: warning[unix.Malloc]: Potential leak of memory pointed to by 'buf' # 758| (_pty_grantpt(fd) != 0) || # 759| (_pty_unlockpt(fd) != 0)) { # 760|-> close(fd); # 761| fd = -1; # 762| } else { Error: CPPCHECK_WARNING: gvfs-1.54.0-build/gvfs-1.54.0/daemon/trashlib/dirwatch.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gvfs-1.54.0-build/gvfs-1.54.0/daemon/trashlib/trashitem.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gvfs-1.54.0-build/gvfs-1.54.0/daemon/trashlib/trashwatcher.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gvfs-1.54.0-build/gvfs-1.54.0/metadata/meta-daemon.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CLANG_WARNING: gvfs-1.54.0-build/gvfs-1.54.0/metadata/meta-daemon.c:479:3: warning[deadcode.DeadStores]: Value stored to 'name_owner_id' is never read # 477| replace = FALSE; # 478| show_version = FALSE; # 479|-> name_owner_id = 0; # 480| # 481| error = NULL; Error: CPPCHECK_WARNING: gvfs-1.54.0-build/gvfs-1.54.0/metadata/metabuilder.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING (CWE-758): gvfs-1.54.0-build/gvfs-1.54.0/metadata/metabuilder.c:821: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour # 819| key = GPOINTER_TO_UINT (g_hash_table_lookup (key_hash, data->key)); # 820| if (data->is_list) # 821|-> key |= KEY_IS_LIST_MASK; # 822| append_uint32 (out, key, NULL); # 823| if (data->is_list) Error: CPPCHECK_WARNING: gvfs-1.54.0-build/gvfs-1.54.0/metadata/metatree.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING (CWE-758): gvfs-1.54.0-build/gvfs-1.54.0/metadata/metatree.c:832: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour # 830| guint32 key_id; # 831| # 832|-> key_id = GUINT32_FROM_BE (dataent->key) & ~KEY_IS_LIST_MASK; # 833| # 834| return key->id - key_id; Error: CPPCHECK_WARNING (CWE-758): gvfs-1.54.0-build/gvfs-1.54.0/metadata/metatree.c:1500: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour # 1498| if (ent == NULL) # 1499| type = META_KEY_TYPE_NONE; # 1500|-> else if (GUINT32_FROM_BE (ent->key) & KEY_IS_LIST_MASK) # 1501| type = META_KEY_TYPE_STRINGV; # 1502| else Error: CPPCHECK_WARNING (CWE-758): gvfs-1.54.0-build/gvfs-1.54.0/metadata/metatree.c:1580: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour # 1578| if (ent == NULL) # 1579| res = NULL; # 1580|-> else if (GUINT32_FROM_BE (ent->key) & KEY_IS_LIST_MASK) # 1581| res = NULL; # 1582| else Error: CPPCHECK_WARNING (CWE-758): gvfs-1.54.0-build/gvfs-1.54.0/metadata/metatree.c:1658: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour # 1656| if (ent == NULL) # 1657| res = NULL; # 1658|-> else if ((GUINT32_FROM_BE (ent->key) & KEY_IS_LIST_MASK) == 0) # 1659| res = NULL; # 1660| else Error: CPPCHECK_WARNING (CWE-758): gvfs-1.54.0-build/gvfs-1.54.0/metadata/metatree.c:2065: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour # 2063| ent = &data->keys[i]; # 2064| # 2065|-> key_id = GUINT32_FROM_BE (ent->key) & ~KEY_IS_LIST_MASK; # 2066| if (GUINT32_FROM_BE (ent->key) & KEY_IS_LIST_MASK) # 2067| type = META_KEY_TYPE_STRINGV; Error: CPPCHECK_WARNING (CWE-758): gvfs-1.54.0-build/gvfs-1.54.0/metadata/metatree.c:2066: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour # 2064| # 2065| key_id = GUINT32_FROM_BE (ent->key) & ~KEY_IS_LIST_MASK; # 2066|-> if (GUINT32_FROM_BE (ent->key) & KEY_IS_LIST_MASK) # 2067| type = META_KEY_TYPE_STRINGV; # 2068| else Error: CPPCHECK_WARNING (CWE-758): gvfs-1.54.0-build/gvfs-1.54.0/metadata/metatree.c:2212: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour # 2210| ent = &data->keys[i]; # 2211| # 2212|-> key_id = GUINT32_FROM_BE (ent->key) & ~KEY_IS_LIST_MASK; # 2213| if (GUINT32_FROM_BE (ent->key) & KEY_IS_LIST_MASK) # 2214| type = META_KEY_TYPE_STRINGV; Error: CPPCHECK_WARNING (CWE-758): gvfs-1.54.0-build/gvfs-1.54.0/metadata/metatree.c:2213: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour # 2211| # 2212| key_id = GUINT32_FROM_BE (ent->key) & ~KEY_IS_LIST_MASK; # 2213|-> if (GUINT32_FROM_BE (ent->key) & KEY_IS_LIST_MASK) # 2214| type = META_KEY_TYPE_STRINGV; # 2215| else Error: GCC_ANALYZER_WARNING (CWE-688): gvfs-1.54.0-build/gvfs-1.54.0/metadata/metatree.c: scope_hint: In function ‘get_dirname’ gvfs-1.54.0-build/gvfs-1.54.0/metadata/metatree.c:2794:7: warning[-Wanalyzer-null-argument]: use of NULL ‘path’ 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. gvfs-1.54.0-build/gvfs-1.54.0/metadata/metatree.h:26: included_from: Included from here. gvfs-1.54.0-build/gvfs-1.54.0/metadata/metatree.c:12: included_from: Included from here. gvfs-1.54.0-build/gvfs-1.54.0/metadata/metatree.c:2676:13: note: in expansion of macro ‘g_strdup’ gvfs-1.54.0-build/gvfs-1.54.0/metadata/metatree.c: scope_hint: In function ‘get_dirname’ gvfs-1.54.0-build/gvfs-1.54.0/metadata/metatree.c:6: included_from: Included from here. /usr/include/string.h:156:12: note: argument 2 of ‘strcmp’ must be non-null # 2792| parent = g_path_get_dirname (path); # 2793| if (strcmp (parent, ".") == 0 || # 2794|-> strcmp (parent, path) == 0) # 2795| { # 2796| g_free (parent); Error: GCC_ANALYZER_WARNING (CWE-476): gvfs-1.54.0-build/gvfs-1.54.0/metadata/metatree.c: scope_hint: In function ‘mountinfo_unescape’ gvfs-1.54.0-build/gvfs-1.54.0/metadata/metatree.c:2972:12: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘s’ /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. /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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’ gvfs-1.54.0-build/gvfs-1.54.0/metadata/metatree.c:3159:3: note: in expansion of macro ‘g_assert’ /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:276:49: note: in expansion of macro ‘G_LIKELY’ gvfs-1.54.0-build/gvfs-1.54.0/metadata/metatree.c:3159:3: note: in expansion of macro ‘g_assert’ /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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’ gvfs-1.54.0-build/gvfs-1.54.0/metadata/metatree.c:3160:3: note: in expansion of macro ‘g_assert’ /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:276:49: note: in expansion of macro ‘G_LIKELY’ gvfs-1.54.0-build/gvfs-1.54.0/metadata/metatree.c:3160:3: note: in expansion of macro ‘g_assert’ gvfs-1.54.0-build/gvfs-1.54.0/metadata/metatree.c:3165:9: note: in expansion of macro ‘g_strdup’ gvfs-1.54.0-build/gvfs-1.54.0/metadata/metatree.c: scope_hint: In function ‘mountinfo_unescape’ gvfs-1.54.0-build/gvfs-1.54.0/metadata/metatree.c:3166:10: note: in expansion of macro ‘g_strdup’ gvfs-1.54.0-build/gvfs-1.54.0/metadata/metatree.c: scope_hint: In function ‘mountinfo_unescape’ # 2970| else # 2971| c = *escaped++; # 2972|-> *s++ = c; # 2973| } # 2974| *s = 0; Error: GCC_ANALYZER_WARNING (CWE-476): gvfs-1.54.0-build/gvfs-1.54.0/metadata/metatree.c:2974:6: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘s’ /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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’ gvfs-1.54.0-build/gvfs-1.54.0/metadata/metatree.c:3159:3: note: in expansion of macro ‘g_assert’ /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:276:49: note: in expansion of macro ‘G_LIKELY’ gvfs-1.54.0-build/gvfs-1.54.0/metadata/metatree.c:3159:3: note: in expansion of macro ‘g_assert’ /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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’ gvfs-1.54.0-build/gvfs-1.54.0/metadata/metatree.c:3160:3: note: in expansion of macro ‘g_assert’ /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:276:49: note: in expansion of macro ‘G_LIKELY’ gvfs-1.54.0-build/gvfs-1.54.0/metadata/metatree.c:3160:3: note: in expansion of macro ‘g_assert’ gvfs-1.54.0-build/gvfs-1.54.0/metadata/metatree.c:3165:9: note: in expansion of macro ‘g_strdup’ gvfs-1.54.0-build/gvfs-1.54.0/metadata/metatree.c: scope_hint: In function ‘mountinfo_unescape’ gvfs-1.54.0-build/gvfs-1.54.0/metadata/metatree.c:3166:10: note: in expansion of macro ‘g_strdup’ gvfs-1.54.0-build/gvfs-1.54.0/metadata/metatree.c: scope_hint: In function ‘mountinfo_unescape’ # 2972| *s++ = c; # 2973| } # 2974|-> *s = 0; # 2975| return res; # 2976| } Error: GCC_ANALYZER_WARNING (CWE-688): gvfs-1.54.0-build/gvfs-1.54.0/metadata/metatree.c: scope_hint: In function ‘find_mountinfo_root_for_mountpoint’ gvfs-1.54.0-build/gvfs-1.54.0/metadata/metatree.c:3103:15: warning[-Wanalyzer-null-argument]: use of NULL ‘mountpoint’ where non-null expected /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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’ gvfs-1.54.0-build/gvfs-1.54.0/metadata/metatree.c:3159:3: note: in expansion of macro ‘g_assert’ /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:276:49: note: in expansion of macro ‘G_LIKELY’ gvfs-1.54.0-build/gvfs-1.54.0/metadata/metatree.c:3159:3: note: in expansion of macro ‘g_assert’ /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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’ gvfs-1.54.0-build/gvfs-1.54.0/metadata/metatree.c:3160:3: note: in expansion of macro ‘g_assert’ /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:276:49: note: in expansion of macro ‘G_LIKELY’ gvfs-1.54.0-build/gvfs-1.54.0/metadata/metatree.c:3160:3: note: in expansion of macro ‘g_assert’ gvfs-1.54.0-build/gvfs-1.54.0/metadata/metatree.c:3165:9: note: in expansion of macro ‘g_strdup’ gvfs-1.54.0-build/gvfs-1.54.0/metadata/metatree.c: scope_hint: In function ‘find_mountinfo_root_for_mountpoint’ gvfs-1.54.0-build/gvfs-1.54.0/metadata/metatree.c:3166:10: note: in expansion of macro ‘g_strdup’ gvfs-1.54.0-build/gvfs-1.54.0/metadata/metatree.c: scope_hint: In function ‘find_mountinfo_root_for_mountpoint’ /usr/include/string.h:156:12: note: argument 2 of ‘strcmp’ must be non-null # 3101| for (i = 0; mountinfo_roots[i].mountpoint != NULL; i++) # 3102| { # 3103|-> if (strcmp (mountinfo_roots[i].mountpoint, mountpoint) == 0) # 3104| { # 3105| res = g_strdup (mountinfo_roots[i].root); Error: GCC_ANALYZER_WARNING (CWE-688): gvfs-1.54.0-build/gvfs-1.54.0/metadata/metatree.c: scope_hint: In function ‘path_has_prefix’ gvfs-1.54.0-build/gvfs-1.54.0/metadata/metatree.c:3265:7: warning[-Wanalyzer-null-argument]: use of NULL ‘path’ where non-null expected gvfs-1.54.0-build/gvfs-1.54.0/metadata/metatree.c:2676:13: note: in expansion of macro ‘g_strdup’ gvfs-1.54.0-build/gvfs-1.54.0/metadata/metatree.c: scope_hint: In function ‘path_has_prefix’ /usr/include/string.h:159:12: note: argument 1 of ‘strncmp’ must be non-null # 3263| prefix_len = strlen (prefix); # 3264| # 3265|-> if (strncmp (path, prefix, prefix_len) == 0 && # 3266| (prefix_len == 0 || /* empty prefix always matches */ # 3267| prefix[prefix_len - 1] == '/' || /* last char in prefix was a /, so it must be in path too */ Error: CPPCHECK_WARNING: gvfs-1.54.0-build/gvfs-1.54.0/monitor/afc/afcvolume.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gvfs-1.54.0-build/gvfs-1.54.0/monitor/goa/goavolumemonitor.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CLANG_WARNING: gvfs-1.54.0-build/gvfs-1.54.0/monitor/goa/goavolumemonitor.c:457:50: warning[core.NullDereference]: Access to field 'message' results in a dereference of a null pointer (loaded from variable 'error') # 455| if (self->client == NULL) # 456| { # 457|-> g_warning ("Failed to connect to GOA: %s", error->message); # 458| g_error_free (error); # 459| return; Error: CPPCHECK_WARNING: gvfs-1.54.0-build/gvfs-1.54.0/monitor/gphoto2/ggphoto2volumemonitor.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gvfs-1.54.0-build/gvfs-1.54.0/monitor/mtp/gmtpvolumemonitor.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gvfs-1.54.0-build/gvfs-1.54.0/monitor/proxy/gproxydrive.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gvfs-1.54.0-build/gvfs-1.54.0/monitor/proxy/gproxymount.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gvfs-1.54.0-build/gvfs-1.54.0/monitor/proxy/gproxyvolume.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gvfs-1.54.0-build/gvfs-1.54.0/monitor/proxy/gvfsproxyvolumemonitordaemon.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CLANG_WARNING: gvfs-1.54.0-build/gvfs-1.54.0/monitor/proxy/gvfsproxyvolumemonitordaemon.c:2047:3: warning[deadcode.DeadStores]: Value stored to 'name_owner_id' is never read # 2045| guint name_owner_id; # 2046| # 2047|-> name_owner_id = 0; # 2048| # 2049| loop = g_main_loop_new (NULL, FALSE); Error: CPPCHECK_WARNING: gvfs-1.54.0-build/gvfs-1.54.0/monitor/udisks2/gvfsudisks2drive.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gvfs-1.54.0-build/gvfs-1.54.0/monitor/udisks2/gvfsudisks2mount.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gvfs-1.54.0-build/gvfs-1.54.0/monitor/udisks2/gvfsudisks2utils.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gvfs-1.54.0-build/gvfs-1.54.0/monitor/udisks2/gvfsudisks2volume.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gvfs-1.54.0-build/gvfs-1.54.0/monitor/udisks2/gvfsudisks2volumemonitor.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: GCC_ANALYZER_WARNING (CWE-688): gvfs-1.54.0-build/gvfs-1.54.0/monitor/udisks2/gvfsudisks2volumemonitor.c: scope_hint: In function ‘mount_point_matches_mount_entry’ gvfs-1.54.0-build/gvfs-1.54.0/monitor/udisks2/gvfsudisks2volumemonitor.c:1104:13: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected /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. gvfs-1.54.0-build/gvfs-1.54.0/monitor/udisks2/gvfsudisks2volumemonitor.c:34: 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:1245:45: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gstrfuncs.h:190:11: note: in expansion of macro ‘G_UNLIKELY’ gvfs-1.54.0-build/gvfs-1.54.0/monitor/udisks2/gvfsudisks2volumemonitor.c:1103:7: note: in expansion of macro ‘g_str_has_suffix’ /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. gvfs-1.54.0-build/gvfs-1.54.0/monitor/udisks2/gvfsudisks2volumemonitor.c:1103:7: note: in expansion of macro ‘g_str_has_suffix’ <built-in>: note: argument 1 of ‘__builtin_strlen’ must be non-null # 1102| # 1103| if (g_str_has_suffix (mp_path, "/")) # 1104|-> mp_path[strlen(mp_path) - 1] = '\0'; # 1105| if (g_str_has_suffix (mp_entry, "/")) # 1106| mp_entry[strlen(mp_entry) - 1] = '\0'; Error: GCC_ANALYZER_WARNING (CWE-688): gvfs-1.54.0-build/gvfs-1.54.0/monitor/udisks2/gvfsudisks2volumemonitor.c:1106:14: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected gvfs-1.54.0-build/gvfs-1.54.0/monitor/udisks2/gvfsudisks2volumemonitor.c:1103:7: note: in expansion of macro ‘g_str_has_suffix’ /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:1245:45: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gstrfuncs.h:190:11: note: in expansion of macro ‘G_UNLIKELY’ gvfs-1.54.0-build/gvfs-1.54.0/monitor/udisks2/gvfsudisks2volumemonitor.c:1105:7: note: in expansion of macro ‘g_str_has_suffix’ /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:1245:45: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gstrfuncs.h:190:11: note: in expansion of macro ‘G_UNLIKELY’ gvfs-1.54.0-build/gvfs-1.54.0/monitor/udisks2/gvfsudisks2volumemonitor.c:1105:7: note: in expansion of macro ‘g_str_has_suffix’ gvfs-1.54.0-build/gvfs-1.54.0/monitor/udisks2/gvfsudisks2volumemonitor.c:1105:7: note: in expansion of macro ‘g_str_has_suffix’ <built-in>: note: argument 1 of ‘__builtin_strlen’ must be non-null # 1104| mp_path[strlen(mp_path) - 1] = '\0'; # 1105| if (g_str_has_suffix (mp_entry, "/")) # 1106|-> mp_entry[strlen(mp_entry) - 1] = '\0'; # 1107| # 1108| if (g_strcmp0 (mp_path, mp_entry) != 0) Error: CPPCHECK_WARNING: gvfs-1.54.0-build/gvfs-1.54.0/redhat-linux-build/common/gvfsdbus.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gvfs-1.54.0-build/gvfs-1.54.0/redhat-linux-build/metadata/metadata-dbus.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gvfs-1.54.0-build/gvfs-1.54.0/redhat-linux-build/monitor/proxy/gvfsvolumemonitordbus.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.