gvfs-1.55.1-1.fc41
List of Defects
Error: CPPCHECK_WARNING: [#def1]
gvfs-1.55.1-build/gvfs-1.55.1/client/afpuri.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def2]
gvfs-1.55.1-build/gvfs-1.55.1/client/gdaemonfile.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-476): [#def3]
gvfs-1.55.1-build/gvfs-1.55.1/client/gdaemonfile.c: scope_hint: In function ‘create_proxy_for_file2’
gvfs-1.55.1-build/gvfs-1.55.1/client/gdaemonfile.c:415:64: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘file1’
gvfs-1.55.1-build/gvfs-1.55.1/client/gdaemonfile.c: scope_hint: In function ‘create_proxy_for_file2’
gvfs-1.55.1-build/gvfs-1.55.1/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: [#def4]
gvfs-1.55.1-build/gvfs-1.55.1/client/gdaemonfileinputstream.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def5]
gvfs-1.55.1-build/gvfs-1.55.1/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: [#def6]
gvfs-1.55.1-build/gvfs-1.55.1/client/gdaemonfileoutputstream.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def7]
gvfs-1.55.1-build/gvfs-1.55.1/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: [#def8]
gvfs-1.55.1-build/gvfs-1.55.1/client/gdaemonvfs.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def9]
gvfs-1.55.1-build/gvfs-1.55.1/client/gvfsdaemondbus.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def10]
gvfs-1.55.1-build/gvfs-1.55.1/client/gvfsfusedaemon.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def11]
gvfs-1.55.1-build/gvfs-1.55.1/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: [#def12]
gvfs-1.55.1-build/gvfs-1.55.1/client/gvfsuriutils.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def13]
gvfs-1.55.1-build/gvfs-1.55.1/client/smburi.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def14]
gvfs-1.55.1-build/gvfs-1.55.1/common/gmountsource.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def15]
gvfs-1.55.1-build/gvfs-1.55.1/common/gmountspec.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def16]
gvfs-1.55.1-build/gvfs-1.55.1/common/gmounttracker.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def17]
gvfs-1.55.1-build/gvfs-1.55.1/common/gvfsdaemonprotocol.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def18]
gvfs-1.55.1-build/gvfs-1.55.1/common/gvfsdnssdresolver.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def19]
gvfs-1.55.1-build/gvfs-1.55.1/common/gvfsdnssdutils.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def20]
gvfs-1.55.1-build/gvfs-1.55.1/common/gvfsgphoto2utils.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def21]
gvfs-1.55.1-build/gvfs-1.55.1/common/gvfsmountinfo.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def22]
gvfs-1.55.1-build/gvfs-1.55.1/daemon/ParseFTPList.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def23]
gvfs-1.55.1-build/gvfs-1.55.1/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: [#def24]
gvfs-1.55.1-build/gvfs-1.55.1/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: [#def25]
gvfs-1.55.1-build/gvfs-1.55.1/daemon/daemon-main.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def26]
gvfs-1.55.1-build/gvfs-1.55.1/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: [#def27]
gvfs-1.55.1-build/gvfs-1.55.1/daemon/gvfsafpconnection.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def28]
gvfs-1.55.1-build/gvfs-1.55.1/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): [#def29]
gvfs-1.55.1-build/gvfs-1.55.1/daemon/gvfsafpconnection.c: scope_hint: In function ‘open_thread_func’
gvfs-1.55.1-build/gvfs-1.55.1/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.55.1-build/gvfs-1.55.1/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.55.1-build/gvfs-1.55.1/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: [#def30]
gvfs-1.55.1-build/gvfs-1.55.1/daemon/gvfsafpserver.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def31]
gvfs-1.55.1-build/gvfs-1.55.1/daemon/gvfsafpvolume.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def32]
gvfs-1.55.1-build/gvfs-1.55.1/daemon/gvfsbackend.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def33]
gvfs-1.55.1-build/gvfs-1.55.1/daemon/gvfsbackendadmin.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def34]
gvfs-1.55.1-build/gvfs-1.55.1/daemon/gvfsbackendafc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-457): [#def35]
gvfs-1.55.1-build/gvfs-1.55.1/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): [#def36]
gvfs-1.55.1-build/gvfs-1.55.1/daemon/gvfsbackendarchive.c: scope_hint: In function ‘fixup_path’
gvfs-1.55.1-build/gvfs-1.55.1/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.55.1-build/gvfs-1.55.1/daemon/gvfsbackendarchive.c:26: included_from: Included from here.
gvfs-1.55.1-build/gvfs-1.55.1/daemon/gvfsbackendarchive.c:262:11: note: in expansion of macro ‘g_strdup’
gvfs-1.55.1-build/gvfs-1.55.1/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): [#def37]
gvfs-1.55.1-build/gvfs-1.55.1/daemon/gvfsbackendarchive.c: scope_hint: In function ‘archive_file_set_info_from_entry’
gvfs-1.55.1-build/gvfs-1.55.1/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.55.1-build/gvfs-1.55.1/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.55.1-build/gvfs-1.55.1/daemon/gvfsbackendarchive.c:302:3: note: in expansion of macro ‘g_debug’
gvfs-1.55.1-build/gvfs-1.55.1/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: CLANG_WARNING: [#def38]
gvfs-1.55.1-build/gvfs-1.55.1/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: [#def39]
gvfs-1.55.1-build/gvfs-1.55.1/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: [#def40]
gvfs-1.55.1-build/gvfs-1.55.1/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: [#def41]
gvfs-1.55.1-build/gvfs-1.55.1/daemon/gvfsbackendcomputer.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def42]
gvfs-1.55.1-build/gvfs-1.55.1/daemon/gvfsbackenddav.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-688): [#def43]
gvfs-1.55.1-build/gvfs-1.55.1/daemon/gvfsbackenddnssd.c: scope_hint: In function ‘get_icon_for_type’
gvfs-1.55.1-build/gvfs-1.55.1/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.55.1-build/gvfs-1.55.1/daemon/gvfsbackenddnssd.c:27: included_from: Included from here.
gvfs-1.55.1-build/gvfs-1.55.1/daemon/gvfsbackenddnssd.c:277:16: note: in expansion of macro ‘g_strdup’
gvfs-1.55.1-build/gvfs-1.55.1/daemon/gvfsbackenddnssd.c: scope_hint: In function ‘get_icon_for_type’
gvfs-1.55.1-build/gvfs-1.55.1/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): [#def44]
gvfs-1.55.1-build/gvfs-1.55.1/daemon/gvfsbackenddnssd.c: scope_hint: In function ‘try_query_info.part.0’
gvfs-1.55.1-build/gvfs-1.55.1/daemon/gvfsbackenddnssd.c:516:13: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
gvfs-1.55.1-build/gvfs-1.55.1/daemon/gvfsbackenddnssd.c:515:11: note: in expansion of macro ‘g_strdup’
gvfs-1.55.1-build/gvfs-1.55.1/daemon/gvfsbackenddnssd.c: scope_hint: In function ‘try_query_info.part.0’
<built-in>: note: argument 1 of ‘__builtin_strlen’ must be non-null
# 514|
# 515| s = g_strdup (job->uri);
# 516|-> if (s[strlen(s) - 1] == '/') /* job->uri is guranteed to be longer than 1 byte */
# 517| s[strlen(s) - 1] = '\0';
# 518| display_name = g_path_get_basename (s);
Error: CPPCHECK_WARNING: [#def45]
gvfs-1.55.1-build/gvfs-1.55.1/daemon/gvfsbackendftp.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def46]
gvfs-1.55.1-build/gvfs-1.55.1/daemon/gvfsbackendgoogle.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def47]
gvfs-1.55.1-build/gvfs-1.55.1/daemon/gvfsbackendgphoto2.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-688): [#def48]
gvfs-1.55.1-build/gvfs-1.55.1/daemon/gvfsbackendgphoto2.c: scope_hint: In function ‘dup_for_gphoto2’
gvfs-1.55.1-build/gvfs-1.55.1/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: [#def49]
gvfs-1.55.1-build/gvfs-1.55.1/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: [#def50]
gvfs-1.55.1-build/gvfs-1.55.1/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: [#def51]
gvfs-1.55.1-build/gvfs-1.55.1/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: [#def52]
gvfs-1.55.1-build/gvfs-1.55.1/daemon/gvfsbackendmtp.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def53]
gvfs-1.55.1-build/gvfs-1.55.1/daemon/gvfsbackendnetwork.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def54]
gvfs-1.55.1-build/gvfs-1.55.1/daemon/gvfsbackendnfs.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-457): [#def55]
gvfs-1.55.1-build/gvfs-1.55.1/daemon/gvfsbackendnfs.c: scope_hint: In function ‘enumerate_continue’
gvfs-1.55.1-build/gvfs-1.55.1/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: [#def56]
gvfs-1.55.1-build/gvfs-1.55.1/daemon/gvfsbackendonedrive.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def57]
gvfs-1.55.1-build/gvfs-1.55.1/daemon/gvfsbackendsftp.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def58]
gvfs-1.55.1-build/gvfs-1.55.1/daemon/gvfsbackendsmb.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def59]
gvfs-1.55.1-build/gvfs-1.55.1/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: [#def60]
gvfs-1.55.1-build/gvfs-1.55.1/daemon/gvfsbackendsmbbrowse.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def61]
gvfs-1.55.1-build/gvfs-1.55.1/daemon/gvfsbackendsmbbrowse.c:744:3: warning[deadcode.DeadStores]: Value stored to 'errsv' is never read
# 742| g_debug ("do_mount - URI = %s\n", uri);
# 743|
# 744|-> errsv = 0;
# 745|
# 746| do
Error: CPPCHECK_WARNING: [#def62]
gvfs-1.55.1-build/gvfs-1.55.1/daemon/gvfsbackendtrash.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def63]
gvfs-1.55.1-build/gvfs-1.55.1/daemon/gvfschannel.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def64]
gvfs-1.55.1-build/gvfs-1.55.1/daemon/gvfsdaemonutils.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def65]
gvfs-1.55.1-build/gvfs-1.55.1/daemon/gvfsftpconnection.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def66]
gvfs-1.55.1-build/gvfs-1.55.1/daemon/gvfsftpdircache.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-476): [#def67]
gvfs-1.55.1-build/gvfs-1.55.1/daemon/gvfsftpdircache.c: scope_hint: In function ‘g_vfs_ftp_dir_cache_funcs_resolve_default’
gvfs-1.55.1-build/gvfs-1.55.1/daemon/gvfsftpdircache.c:818: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.55.1-build/gvfs-1.55.1/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.55.1-build/gvfs-1.55.1/daemon/gvfsftpdircache.c:800: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.55.1-build/gvfs-1.55.1/daemon/gvfsftpdircache.c:801: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.55.1-build/gvfs-1.55.1/daemon/gvfsftpdircache.c:801: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.55.1-build/gvfs-1.55.1/daemon/gvfsftpdircache.c:816: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.55.1-build/gvfs-1.55.1/daemon/gvfsftpdircache.c: scope_hint: In function ‘g_vfs_ftp_dir_cache_funcs_resolve_default’
# 816| g_string_append_c (new_path, '/'); /* slash at end makes code easier */
# 817| /* cleanup: remove all double slashes */
# 818|-> while ((match = strstr (new_path->str, "//")) != NULL)
# 819| {
# 820| g_string_erase (new_path, match - new_path->str, 1);
Error: CPPCHECK_WARNING: [#def68]
gvfs-1.55.1-build/gvfs-1.55.1/daemon/gvfsftptask.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def69]
gvfs-1.55.1-build/gvfs-1.55.1/daemon/gvfshttpinputstream.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def70]
gvfs-1.55.1-build/gvfs-1.55.1/daemon/gvfskeyring.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def71]
gvfs-1.55.1-build/gvfs-1.55.1/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: [#def72]
gvfs-1.55.1-build/gvfs-1.55.1/daemon/gvfswsddservice.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def73]
gvfs-1.55.1-build/gvfs-1.55.1/daemon/main.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def74]
gvfs-1.55.1-build/gvfs-1.55.1/daemon/mount.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-775): [#def75]
gvfs-1.55.1-build/gvfs-1.55.1/daemon/pty_open.c:472:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pid_pipe[0]’
gvfs-1.55.1-build/gvfs-1.55.1/daemon/pty_open.c: scope_hint: In function ‘_pty_fork_on_pty_name’
gvfs-1.55.1-build/gvfs-1.55.1/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): [#def76]
gvfs-1.55.1-build/gvfs-1.55.1/daemon/pty_open.c:472:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pid_pipe[1]’
gvfs-1.55.1-build/gvfs-1.55.1/daemon/pty_open.c: scope_hint: In function ‘_pty_fork_on_pty_name’
gvfs-1.55.1-build/gvfs-1.55.1/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): [#def77]
gvfs-1.55.1-build/gvfs-1.55.1/daemon/pty_open.c:472:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘stderr_pipe[0]’
gvfs-1.55.1-build/gvfs-1.55.1/daemon/pty_open.c: scope_hint: In function ‘_pty_fork_on_pty_name’
gvfs-1.55.1-build/gvfs-1.55.1/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): [#def78]
gvfs-1.55.1-build/gvfs-1.55.1/daemon/pty_open.c:472:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘stderr_pipe[1]’
gvfs-1.55.1-build/gvfs-1.55.1/daemon/pty_open.c: scope_hint: In function ‘_pty_fork_on_pty_name’
gvfs-1.55.1-build/gvfs-1.55.1/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): [#def79]
gvfs-1.55.1-build/gvfs-1.55.1/daemon/pty_open.c:472:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘stdin_pipe[0]’
gvfs-1.55.1-build/gvfs-1.55.1/daemon/pty_open.c: scope_hint: In function ‘_pty_fork_on_pty_name’
gvfs-1.55.1-build/gvfs-1.55.1/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): [#def80]
gvfs-1.55.1-build/gvfs-1.55.1/daemon/pty_open.c: scope_hint: In function ‘_pty_fork_on_pty_name’
gvfs-1.55.1-build/gvfs-1.55.1/daemon/pty_open.c:472:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘stdin_pipe[1]’
gvfs-1.55.1-build/gvfs-1.55.1/daemon/pty_open.c: scope_hint: In function ‘_pty_fork_on_pty_name’
gvfs-1.55.1-build/gvfs-1.55.1/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): [#def81]
gvfs-1.55.1-build/gvfs-1.55.1/daemon/pty_open.c:472:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘stdout_pipe[0]’
gvfs-1.55.1-build/gvfs-1.55.1/daemon/pty_open.c: scope_hint: In function ‘_pty_fork_on_pty_name’
gvfs-1.55.1-build/gvfs-1.55.1/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): [#def82]
gvfs-1.55.1-build/gvfs-1.55.1/daemon/pty_open.c:472:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘stdout_pipe[1]’
gvfs-1.55.1-build/gvfs-1.55.1/daemon/pty_open.c: scope_hint: In function ‘_pty_fork_on_pty_name’
gvfs-1.55.1-build/gvfs-1.55.1/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: [#def83]
gvfs-1.55.1-build/gvfs-1.55.1/daemon/pty_open.c:526:17: warning[-Wanalyzer-fd-use-without-check]: ‘dup2’ on possibly invalid file descriptor ‘0’
gvfs-1.55.1-build/gvfs-1.55.1/daemon/pty_open.c: scope_hint: In function ‘_pty_fork_on_pty_name’
gvfs-1.55.1-build/gvfs-1.55.1/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): [#def84]
gvfs-1.55.1-build/gvfs-1.55.1/daemon/pty_open.c:616:9: warning[-Wanalyzer-fd-double-close]: double ‘close’ of file descriptor ‘stderr_pipe[1]’
gvfs-1.55.1-build/gvfs-1.55.1/daemon/pty_open.c: scope_hint: In function ‘_pty_fork_on_pty_name’
gvfs-1.55.1-build/gvfs-1.55.1/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): [#def85]
gvfs-1.55.1-build/gvfs-1.55.1/daemon/pty_open.c:619:9: warning[-Wanalyzer-fd-double-close]: double ‘close’ of file descriptor ‘stdout_pipe[1]’
gvfs-1.55.1-build/gvfs-1.55.1/daemon/pty_open.c: scope_hint: In function ‘_pty_fork_on_pty_name’
gvfs-1.55.1-build/gvfs-1.55.1/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): [#def86]
gvfs-1.55.1-build/gvfs-1.55.1/daemon/pty_open.c:621:9: warning[-Wanalyzer-fd-double-close]: double ‘close’ of file descriptor ‘stdin_pipe[0]’
gvfs-1.55.1-build/gvfs-1.55.1/daemon/pty_open.c: scope_hint: In function ‘_pty_fork_on_pty_name’
gvfs-1.55.1-build/gvfs-1.55.1/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: [#def87]
gvfs-1.55.1-build/gvfs-1.55.1/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: [#def88]
gvfs-1.55.1-build/gvfs-1.55.1/daemon/trashlib/dirwatch.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def89]
gvfs-1.55.1-build/gvfs-1.55.1/daemon/trashlib/trashitem.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def90]
gvfs-1.55.1-build/gvfs-1.55.1/daemon/trashlib/trashwatcher.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def91]
gvfs-1.55.1-build/gvfs-1.55.1/metadata/meta-daemon.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def92]
gvfs-1.55.1-build/gvfs-1.55.1/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: [#def93]
gvfs-1.55.1-build/gvfs-1.55.1/metadata/metabuilder.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-758): [#def94]
gvfs-1.55.1-build/gvfs-1.55.1/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: [#def95]
gvfs-1.55.1-build/gvfs-1.55.1/metadata/metatree.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-758): [#def96]
gvfs-1.55.1-build/gvfs-1.55.1/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): [#def97]
gvfs-1.55.1-build/gvfs-1.55.1/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): [#def98]
gvfs-1.55.1-build/gvfs-1.55.1/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): [#def99]
gvfs-1.55.1-build/gvfs-1.55.1/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): [#def100]
gvfs-1.55.1-build/gvfs-1.55.1/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): [#def101]
gvfs-1.55.1-build/gvfs-1.55.1/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): [#def102]
gvfs-1.55.1-build/gvfs-1.55.1/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): [#def103]
gvfs-1.55.1-build/gvfs-1.55.1/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): [#def104]
gvfs-1.55.1-build/gvfs-1.55.1/metadata/metatree.c: scope_hint: In function ‘get_dirname’
gvfs-1.55.1-build/gvfs-1.55.1/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.55.1-build/gvfs-1.55.1/metadata/metatree.h:26: included_from: Included from here.
gvfs-1.55.1-build/gvfs-1.55.1/metadata/metatree.c:12: included_from: Included from here.
gvfs-1.55.1-build/gvfs-1.55.1/metadata/metatree.c:2676:13: note: in expansion of macro ‘g_strdup’
gvfs-1.55.1-build/gvfs-1.55.1/metadata/metatree.c: scope_hint: In function ‘get_dirname’
gvfs-1.55.1-build/gvfs-1.55.1/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): [#def105]
gvfs-1.55.1-build/gvfs-1.55.1/metadata/metatree.c: scope_hint: In function ‘mountinfo_unescape’
gvfs-1.55.1-build/gvfs-1.55.1/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.55.1-build/gvfs-1.55.1/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.55.1-build/gvfs-1.55.1/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.55.1-build/gvfs-1.55.1/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.55.1-build/gvfs-1.55.1/metadata/metatree.c:3160:3: note: in expansion of macro ‘g_assert’
gvfs-1.55.1-build/gvfs-1.55.1/metadata/metatree.c:3165:9: note: in expansion of macro ‘g_strdup’
gvfs-1.55.1-build/gvfs-1.55.1/metadata/metatree.c: scope_hint: In function ‘mountinfo_unescape’
gvfs-1.55.1-build/gvfs-1.55.1/metadata/metatree.c:3166:10: note: in expansion of macro ‘g_strdup’
gvfs-1.55.1-build/gvfs-1.55.1/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): [#def106]
gvfs-1.55.1-build/gvfs-1.55.1/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.55.1-build/gvfs-1.55.1/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.55.1-build/gvfs-1.55.1/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.55.1-build/gvfs-1.55.1/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.55.1-build/gvfs-1.55.1/metadata/metatree.c:3160:3: note: in expansion of macro ‘g_assert’
gvfs-1.55.1-build/gvfs-1.55.1/metadata/metatree.c:3165:9: note: in expansion of macro ‘g_strdup’
gvfs-1.55.1-build/gvfs-1.55.1/metadata/metatree.c: scope_hint: In function ‘mountinfo_unescape’
gvfs-1.55.1-build/gvfs-1.55.1/metadata/metatree.c:3166:10: note: in expansion of macro ‘g_strdup’
gvfs-1.55.1-build/gvfs-1.55.1/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): [#def107]
gvfs-1.55.1-build/gvfs-1.55.1/metadata/metatree.c: scope_hint: In function ‘find_mountinfo_root_for_mountpoint’
gvfs-1.55.1-build/gvfs-1.55.1/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.55.1-build/gvfs-1.55.1/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.55.1-build/gvfs-1.55.1/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.55.1-build/gvfs-1.55.1/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.55.1-build/gvfs-1.55.1/metadata/metatree.c:3160:3: note: in expansion of macro ‘g_assert’
gvfs-1.55.1-build/gvfs-1.55.1/metadata/metatree.c:3165:9: note: in expansion of macro ‘g_strdup’
gvfs-1.55.1-build/gvfs-1.55.1/metadata/metatree.c: scope_hint: In function ‘find_mountinfo_root_for_mountpoint’
gvfs-1.55.1-build/gvfs-1.55.1/metadata/metatree.c:3166:10: note: in expansion of macro ‘g_strdup’
gvfs-1.55.1-build/gvfs-1.55.1/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): [#def108]
gvfs-1.55.1-build/gvfs-1.55.1/metadata/metatree.c: scope_hint: In function ‘path_has_prefix’
gvfs-1.55.1-build/gvfs-1.55.1/metadata/metatree.c:3265:7: warning[-Wanalyzer-null-argument]: use of NULL ‘path’ where non-null expected
gvfs-1.55.1-build/gvfs-1.55.1/metadata/metatree.c:2676:13: note: in expansion of macro ‘g_strdup’
gvfs-1.55.1-build/gvfs-1.55.1/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: [#def109]
gvfs-1.55.1-build/gvfs-1.55.1/monitor/afc/afcvolume.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def110]
gvfs-1.55.1-build/gvfs-1.55.1/monitor/goa/goavolumemonitor.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def111]
gvfs-1.55.1-build/gvfs-1.55.1/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: [#def112]
gvfs-1.55.1-build/gvfs-1.55.1/monitor/gphoto2/ggphoto2volumemonitor.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def113]
gvfs-1.55.1-build/gvfs-1.55.1/monitor/mtp/gmtpvolumemonitor.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def114]
gvfs-1.55.1-build/gvfs-1.55.1/monitor/proxy/gproxydrive.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def115]
gvfs-1.55.1-build/gvfs-1.55.1/monitor/proxy/gproxymount.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def116]
gvfs-1.55.1-build/gvfs-1.55.1/monitor/proxy/gproxyvolume.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def117]
gvfs-1.55.1-build/gvfs-1.55.1/monitor/proxy/gvfsproxyvolumemonitordaemon.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def118]
gvfs-1.55.1-build/gvfs-1.55.1/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: [#def119]
gvfs-1.55.1-build/gvfs-1.55.1/monitor/udisks2/gvfsudisks2drive.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def120]
gvfs-1.55.1-build/gvfs-1.55.1/monitor/udisks2/gvfsudisks2mount.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def121]
gvfs-1.55.1-build/gvfs-1.55.1/monitor/udisks2/gvfsudisks2utils.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def122]
gvfs-1.55.1-build/gvfs-1.55.1/monitor/udisks2/gvfsudisks2volume.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def123]
gvfs-1.55.1-build/gvfs-1.55.1/monitor/udisks2/gvfsudisks2volumemonitor.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-688): [#def124]
gvfs-1.55.1-build/gvfs-1.55.1/monitor/udisks2/gvfsudisks2volumemonitor.c: scope_hint: In function ‘mount_point_matches_mount_entry’
gvfs-1.55.1-build/gvfs-1.55.1/monitor/udisks2/gvfsudisks2volumemonitor.c:1162: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.55.1-build/gvfs-1.55.1/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.55.1-build/gvfs-1.55.1/monitor/udisks2/gvfsudisks2volumemonitor.c:1161: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.55.1-build/gvfs-1.55.1/monitor/udisks2/gvfsudisks2volumemonitor.c:1161:7: note: in expansion of macro ‘g_str_has_suffix’
<built-in>: note: argument 1 of ‘__builtin_strlen’ must be non-null
# 1160|
# 1161| if (g_str_has_suffix (mp_path, "/"))
# 1162|-> mp_path[strlen(mp_path) - 1] = '\0';
# 1163| if (g_str_has_suffix (mp_entry, "/"))
# 1164| mp_entry[strlen(mp_entry) - 1] = '\0';
Error: GCC_ANALYZER_WARNING (CWE-688): [#def125]
gvfs-1.55.1-build/gvfs-1.55.1/monitor/udisks2/gvfsudisks2volumemonitor.c:1164:14: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
gvfs-1.55.1-build/gvfs-1.55.1/monitor/udisks2/gvfsudisks2volumemonitor.c:1161: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.55.1-build/gvfs-1.55.1/monitor/udisks2/gvfsudisks2volumemonitor.c:1163: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.55.1-build/gvfs-1.55.1/monitor/udisks2/gvfsudisks2volumemonitor.c:1163:7: note: in expansion of macro ‘g_str_has_suffix’
gvfs-1.55.1-build/gvfs-1.55.1/monitor/udisks2/gvfsudisks2volumemonitor.c:1163:7: note: in expansion of macro ‘g_str_has_suffix’
<built-in>: note: argument 1 of ‘__builtin_strlen’ must be non-null
# 1162| mp_path[strlen(mp_path) - 1] = '\0';
# 1163| if (g_str_has_suffix (mp_entry, "/"))
# 1164|-> mp_entry[strlen(mp_entry) - 1] = '\0';
# 1165|
# 1166| if (g_strcmp0 (mp_path, mp_entry) != 0)
Error: CPPCHECK_WARNING: [#def126]
gvfs-1.55.1-build/gvfs-1.55.1/redhat-linux-build/common/gvfsdbus.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def127]
gvfs-1.55.1-build/gvfs-1.55.1/redhat-linux-build/metadata/metadata-dbus.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def128]
gvfs-1.55.1-build/gvfs-1.55.1/redhat-linux-build/monitor/proxy/gvfsvolumemonitordbus.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Scan Properties
analyzer-version-clang | 18.1.7 |
analyzer-version-cppcheck | 2.14.2 |
analyzer-version-gcc | 14.1.1 |
analyzer-version-gcc-analyzer | 14.1.1 |
analyzer-version-shellcheck | 0.10.0 |
enabled-plugins | clang, cppcheck, gcc, shellcheck |
exit-code | 0 |
host | ip-172-16-1-72.us-west-2.compute.internal |
mock-config | fedora-41-x86_64 |
project-name | gvfs-1.55.1-1.fc41 |
store-results-to | /tmp/tmpoiw7iun8/gvfs-1.55.1-1.fc41.tar.xz |
time-created | 2024-07-03 13:30:24 |
time-finished | 2024-07-03 13:34:31 |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpoiw7iun8/gvfs-1.55.1-1.fc41.tar.xz' '--gcc-analyze' '/tmp/tmpoiw7iun8/gvfs-1.55.1-1.fc41.src.rpm' |
tool-version | csmock-3.5.3-1.el9 |