Task #22879 - gvfs-1.56.1-1.fc42/scan-results.err
back to task #22879download
Error: GCC_ANALYZER_WARNING (CWE-476):
gvfs-1.56.1-build/gvfs-1.56.1/client/gdaemonfile.c: scope_hint: In function ‘create_proxy_for_file2’
gvfs-1.56.1-build/gvfs-1.56.1/client/gdaemonfile.c:415:64: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘file1’
gvfs-1.56.1-build/gvfs-1.56.1/client/gdaemonfile.c: scope_hint: In function ‘create_proxy_for_file2’
gvfs-1.56.1-build/gvfs-1.56.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: GCC_ANALYZER_WARNING (CWE-476):
gvfs-1.56.1-build/gvfs-1.56.1/daemon/gvfsafpconnection.c: scope_hint: In function ‘open_thread_func’
gvfs-1.56.1-build/gvfs-1.56.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:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
gvfs-1.56.1-build/gvfs-1.56.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.56.1-build/gvfs-1.56.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 (CWE-457):
gvfs-1.56.1-build/gvfs-1.56.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):
gvfs-1.56.1-build/gvfs-1.56.1/daemon/gvfsbackendarchive.c: scope_hint: In function ‘fixup_path’
gvfs-1.56.1-build/gvfs-1.56.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.56.1-build/gvfs-1.56.1/daemon/gvfsbackendarchive.c:26: included_from: Included from here.
gvfs-1.56.1-build/gvfs-1.56.1/daemon/gvfsbackendarchive.c:262:11: note: in expansion of macro ‘g_strdup’
gvfs-1.56.1-build/gvfs-1.56.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):
gvfs-1.56.1-build/gvfs-1.56.1/daemon/gvfsbackendarchive.c: scope_hint: In function ‘archive_file_set_info_from_entry’
gvfs-1.56.1-build/gvfs-1.56.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:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
gvfs-1.56.1-build/gvfs-1.56.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.56.1-build/gvfs-1.56.1/daemon/gvfsbackendarchive.c:302:3: note: in expansion of macro ‘g_debug’
gvfs-1.56.1-build/gvfs-1.56.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: GCC_ANALYZER_WARNING (CWE-688):
gvfs-1.56.1-build/gvfs-1.56.1/daemon/gvfsbackenddnssd.c: scope_hint: In function ‘get_icon_for_type’
gvfs-1.56.1-build/gvfs-1.56.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.56.1-build/gvfs-1.56.1/daemon/gvfsbackenddnssd.c:27: included_from: Included from here.
gvfs-1.56.1-build/gvfs-1.56.1/daemon/gvfsbackenddnssd.c:277:16: note: in expansion of macro ‘g_strdup’
gvfs-1.56.1-build/gvfs-1.56.1/daemon/gvfsbackenddnssd.c: scope_hint: In function ‘get_icon_for_type’
gvfs-1.56.1-build/gvfs-1.56.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):
gvfs-1.56.1-build/gvfs-1.56.1/daemon/gvfsbackenddnssd.c: scope_hint: In function ‘try_query_info.part.0’
gvfs-1.56.1-build/gvfs-1.56.1/daemon/gvfsbackenddnssd.c:516:13: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
gvfs-1.56.1-build/gvfs-1.56.1/daemon/gvfsbackenddnssd.c:515:11: note: in expansion of macro ‘g_strdup’
gvfs-1.56.1-build/gvfs-1.56.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: GCC_ANALYZER_WARNING (CWE-688):
gvfs-1.56.1-build/gvfs-1.56.1/daemon/gvfsbackendgphoto2.c: scope_hint: In function ‘dup_for_gphoto2’
gvfs-1.56.1-build/gvfs-1.56.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: GCC_ANALYZER_WARNING (CWE-457):
gvfs-1.56.1-build/gvfs-1.56.1/daemon/gvfsbackendnfs.c: scope_hint: In function ‘enumerate_continue’
gvfs-1.56.1-build/gvfs-1.56.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: GCC_ANALYZER_WARNING (CWE-476):
gvfs-1.56.1-build/gvfs-1.56.1/daemon/gvfsftpdircache.c: scope_hint: In function ‘g_vfs_ftp_dir_cache_funcs_resolve_default’
gvfs-1.56.1-build/gvfs-1.56.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.56.1-build/gvfs-1.56.1/daemon/gvfsftpdircache.c:28: included_from: Included from here.
/usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
gvfs-1.56.1-build/gvfs-1.56.1/daemon/gvfsftpdircache.c:800:3: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
gvfs-1.56.1-build/gvfs-1.56.1/daemon/gvfsftpdircache.c:801:3: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
gvfs-1.56.1-build/gvfs-1.56.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.56.1-build/gvfs-1.56.1/daemon/gvfsftpdircache.c:816:3: note: in expansion of macro ‘g_string_append_c’
/usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gstring.h:202:7: note: in expansion of macro ‘G_LIKELY’
gvfs-1.56.1-build/gvfs-1.56.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: GCC_ANALYZER_WARNING (CWE-775):
gvfs-1.56.1-build/gvfs-1.56.1/daemon/pty_open.c:472:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pid_pipe[0]’
gvfs-1.56.1-build/gvfs-1.56.1/daemon/pty_open.c: scope_hint: In function ‘_pty_fork_on_pty_name’
gvfs-1.56.1-build/gvfs-1.56.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):
gvfs-1.56.1-build/gvfs-1.56.1/daemon/pty_open.c:472:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pid_pipe[1]’
gvfs-1.56.1-build/gvfs-1.56.1/daemon/pty_open.c: scope_hint: In function ‘_pty_fork_on_pty_name’
gvfs-1.56.1-build/gvfs-1.56.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):
gvfs-1.56.1-build/gvfs-1.56.1/daemon/pty_open.c:472:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘stderr_pipe[0]’
gvfs-1.56.1-build/gvfs-1.56.1/daemon/pty_open.c: scope_hint: In function ‘_pty_fork_on_pty_name’
gvfs-1.56.1-build/gvfs-1.56.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):
gvfs-1.56.1-build/gvfs-1.56.1/daemon/pty_open.c:472:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘stderr_pipe[1]’
gvfs-1.56.1-build/gvfs-1.56.1/daemon/pty_open.c: scope_hint: In function ‘_pty_fork_on_pty_name’
gvfs-1.56.1-build/gvfs-1.56.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):
gvfs-1.56.1-build/gvfs-1.56.1/daemon/pty_open.c: scope_hint: In function ‘_pty_fork_on_pty_name’
gvfs-1.56.1-build/gvfs-1.56.1/daemon/pty_open.c:472:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘stdin_pipe[0]’
gvfs-1.56.1-build/gvfs-1.56.1/daemon/pty_open.c: scope_hint: In function ‘_pty_fork_on_pty_name’
gvfs-1.56.1-build/gvfs-1.56.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):
gvfs-1.56.1-build/gvfs-1.56.1/daemon/pty_open.c:472:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘stdin_pipe[1]’
gvfs-1.56.1-build/gvfs-1.56.1/daemon/pty_open.c: scope_hint: In function ‘_pty_fork_on_pty_name’
gvfs-1.56.1-build/gvfs-1.56.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):
gvfs-1.56.1-build/gvfs-1.56.1/daemon/pty_open.c:472:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘stdout_pipe[0]’
gvfs-1.56.1-build/gvfs-1.56.1/daemon/pty_open.c: scope_hint: In function ‘_pty_fork_on_pty_name’
gvfs-1.56.1-build/gvfs-1.56.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):
gvfs-1.56.1-build/gvfs-1.56.1/daemon/pty_open.c:472:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘stdout_pipe[1]’
gvfs-1.56.1-build/gvfs-1.56.1/daemon/pty_open.c: scope_hint: In function ‘_pty_fork_on_pty_name’
gvfs-1.56.1-build/gvfs-1.56.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:
gvfs-1.56.1-build/gvfs-1.56.1/daemon/pty_open.c:526:17: warning[-Wanalyzer-fd-use-without-check]: ‘dup2’ on possibly invalid file descriptor ‘0’
gvfs-1.56.1-build/gvfs-1.56.1/daemon/pty_open.c: scope_hint: In function ‘_pty_fork_on_pty_name’
gvfs-1.56.1-build/gvfs-1.56.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):
gvfs-1.56.1-build/gvfs-1.56.1/daemon/pty_open.c:616:9: warning[-Wanalyzer-fd-double-close]: double ‘close’ of file descriptor ‘stderr_pipe[1]’
gvfs-1.56.1-build/gvfs-1.56.1/daemon/pty_open.c: scope_hint: In function ‘_pty_fork_on_pty_name’
gvfs-1.56.1-build/gvfs-1.56.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):
gvfs-1.56.1-build/gvfs-1.56.1/daemon/pty_open.c:619:9: warning[-Wanalyzer-fd-double-close]: double ‘close’ of file descriptor ‘stdout_pipe[1]’
gvfs-1.56.1-build/gvfs-1.56.1/daemon/pty_open.c: scope_hint: In function ‘_pty_fork_on_pty_name’
gvfs-1.56.1-build/gvfs-1.56.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):
gvfs-1.56.1-build/gvfs-1.56.1/daemon/pty_open.c:621:9: warning[-Wanalyzer-fd-double-close]: double ‘close’ of file descriptor ‘stdin_pipe[0]’
gvfs-1.56.1-build/gvfs-1.56.1/daemon/pty_open.c: scope_hint: In function ‘_pty_fork_on_pty_name’
gvfs-1.56.1-build/gvfs-1.56.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: COMPILER_WARNING (CWE-477):
gvfs-1.56.1-build/gvfs-1.56.1/daemon/trashlib/trashwatcher.c: scope_hint: In function ‘decide_watch_type’
gvfs-1.56.1-build/gvfs-1.56.1/daemon/trashlib/trashwatcher.c:77:3: warning[-Wdeprecated-declarations]: ‘g_unix_mount_get_mount_path’ is deprecated: Use 'g_unix_mount_entry_get_mount_path' instead
# 77 | mount_path = g_unix_mount_get_mount_path (mount);
# | ^~~~~~~~~~
gvfs-1.56.1-build/gvfs-1.56.1/daemon/trashlib/trashwatcher.c:11: included_from: Included from here.
/usr/include/gio-unix-2.0/gio/gunixmounts.h:93:16: note: declared here
# 93 | const char * g_unix_mount_get_mount_path (GUnixMountEntry *mount_entry);
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~
# 75| return TRASH_WATCHER_TRUSTED;
# 76|
# 77|-> mount_path = g_unix_mount_get_mount_path (mount);
# 78|
# 79| /* Do not care about mount points without read access to avoid polling, see:
Error: COMPILER_WARNING (CWE-477):
gvfs-1.56.1-build/gvfs-1.56.1/daemon/trashlib/trashwatcher.c:85:3: warning[-Wdeprecated-declarations]: ‘g_unix_mount_get_fs_type’ is deprecated: Use 'g_unix_mount_entry_get_fs_type' instead
# 85 | fs_type = g_unix_mount_get_fs_type (mount);
# | ^~~~~~~
/usr/include/gio-unix-2.0/gio/gunixmounts.h:108:16: note: declared here
# 108 | const char * g_unix_mount_get_fs_type (GUnixMountEntry *mount_entry);
# | ^~~~~~~~~~~~~~~~~~~~~~~~
# 83| return TRASH_WATCHER_NO_WATCH;
# 84|
# 85|-> fs_type = g_unix_mount_get_fs_type (mount);
# 86|
# 87| if (g_strcmp0 (fs_type, "nfs") == 0 ||
Error: COMPILER_WARNING (CWE-477):
gvfs-1.56.1-build/gvfs-1.56.1/daemon/trashlib/trashwatcher.c: scope_hint: In function ‘find_mount_entry_for_file’
gvfs-1.56.1-build/gvfs-1.56.1/daemon/trashlib/trashwatcher.c:118:7: warning[-Wdeprecated-declarations]: ‘g_unix_mount_for’ is deprecated: Use 'g_unix_mount_entry_for' instead
# 118 | entry = g_unix_mount_for (pathname, NULL);
# | ^~~~~
/usr/include/gio-unix-2.0/gio/gunixmounts.h:213:18: note: declared here
# 213 | GUnixMountEntry *g_unix_mount_for (const char *file_path,
# | ^~~~~~~~~~~~~~~~
# 116| *slash = '\0';
# 117|
# 118|-> entry = g_unix_mount_for (pathname, NULL);
# 119| }
# 120| while (entry == NULL && pathname[1]);
Error: COMPILER_WARNING (CWE-477):
gvfs-1.56.1-build/gvfs-1.56.1/daemon/trashlib/trashwatcher.c: scope_hint: In function ‘trash_mount_insert’
gvfs-1.56.1-build/gvfs-1.56.1/daemon/trashlib/trashwatcher.c:170:3: warning[-Wdeprecated-declarations]: ‘g_unix_mount_get_mount_path’ is deprecated: Use 'g_unix_mount_entry_get_mount_path' instead
# 170 | mountpoint = g_unix_mount_get_mount_path (mount_entry);
# | ^~~~~~~~~~
/usr/include/gio-unix-2.0/gio/gunixmounts.h:93:16: note: declared here
# 93 | const char * g_unix_mount_get_mount_path (GUnixMountEntry *mount_entry);
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~
# 168| TrashMount *mount;
# 169|
# 170|-> mountpoint = g_unix_mount_get_mount_path (mount_entry);
# 171|
# 172| mount = g_slice_new (TrashMount);
Error: COMPILER_WARNING (CWE-477):
gvfs-1.56.1-build/gvfs-1.56.1/daemon/trashlib/trashwatcher.c: scope_hint: In function ‘trash_mount_remove’
gvfs-1.56.1-build/gvfs-1.56.1/daemon/trashlib/trashwatcher.c:212:3: warning[-Wdeprecated-declarations]: ‘g_unix_mount_free’ is deprecated: Use 'g_unix_mount_entry_free' instead
# 212 | g_unix_mount_free (mount->mount_entry);
# | ^~~~~~~~~~~~~~~~~
/usr/include/gio-unix-2.0/gio/gunixmounts.h:71:16: note: declared here
# 71 | void g_unix_mount_free (GUnixMountEntry *mount_entry);
# | ^~~~~~~~~~~~~~~~~
# 210| *mount_ptr = mount->next;
# 211|
# 212|-> g_unix_mount_free (mount->mount_entry);
# 213| g_slice_free (TrashMount, mount);
# 214| }
Error: COMPILER_WARNING (CWE-477):
gvfs-1.56.1-build/gvfs-1.56.1/daemon/trashlib/trashwatcher.c: scope_hint: In function ‘ignore_trash_mount’
gvfs-1.56.1-build/gvfs-1.56.1/daemon/trashlib/trashwatcher.c:222:3: warning[-Wdeprecated-declarations]: ‘g_unix_mount_get_options’ is deprecated: Use 'g_unix_mount_entry_get_options' instead
# 222 | mount_options = g_unix_mount_get_options (mount);
# | ^~~~~~~~~~~~~
/usr/include/gio-unix-2.0/gio/gunixmounts.h:113:16: note: declared here
# 113 | const char * g_unix_mount_get_options (GUnixMountEntry *mount_entry);
# | ^~~~~~~~~~~~~~~~~~~~~~~~
# 220| const gchar *mount_options;
# 221|
# 222|-> mount_options = g_unix_mount_get_options (mount);
# 223| if (mount_options == NULL)
# 224| {
Error: COMPILER_WARNING (CWE-477):
gvfs-1.56.1-build/gvfs-1.56.1/daemon/trashlib/trashwatcher.c:225:7: warning[-Wdeprecated-declarations]: ‘g_unix_mount_get_mount_path’ is deprecated: Use 'g_unix_mount_entry_get_mount_path' instead
# 225 | mount_point = g_unix_mount_point_at (g_unix_mount_get_mount_path (mount),
# | ^~~~~~~~~~~
/usr/include/gio-unix-2.0/gio/gunixmounts.h:93:16: note: declared here
# 93 | const char * g_unix_mount_get_mount_path (GUnixMountEntry *mount_entry);
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~
# 223| if (mount_options == NULL)
# 224| {
# 225|-> mount_point = g_unix_mount_point_at (g_unix_mount_get_mount_path (mount),
# 226| NULL);
# 227| if (mount_point != NULL)
Error: COMPILER_WARNING (CWE-477):
gvfs-1.56.1-build/gvfs-1.56.1/daemon/trashlib/trashwatcher.c:242:3: warning[-Wdeprecated-declarations]: ‘g_unix_mount_is_system_internal’ is deprecated: Use 'g_unix_mount_entry_is_system_internal' instead
# 242 | if (g_unix_mount_is_system_internal (mount))
# | ^~
/usr/include/gio-unix-2.0/gio/gunixmounts.h:123:16: note: declared here
# 123 | gboolean g_unix_mount_is_system_internal (GUnixMountEntry *mount_entry);
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 240| }
# 241|
# 242|-> if (g_unix_mount_is_system_internal (mount))
# 243| return TRUE;
# 244|
Error: COMPILER_WARNING (CWE-477):
gvfs-1.56.1-build/gvfs-1.56.1/daemon/trashlib/trashwatcher.c: scope_hint: In function ‘trash_watcher_remount’
gvfs-1.56.1-build/gvfs-1.56.1/daemon/trashlib/trashwatcher.c:255:3: warning[-Wdeprecated-declarations]: ‘g_unix_mounts_get’ is deprecated: Use 'g_unix_mount_entries_get' instead
# 255 | mounts = g_unix_mounts_get (NULL);
# | ^~~~~~
/usr/include/gio-unix-2.0/gio/gunixmounts.h:192:16: note: declared here
# 192 | GList * g_unix_mounts_get (guint64 *time_read);
# | ^~~~~~~~~~~~~~~~~
# 253| GList *new;
# 254|
# 255|-> mounts = g_unix_mounts_get (NULL);
# 256| mounts = g_list_sort (mounts, (GCompareFunc) g_unix_mount_compare);
# 257|
Error: COMPILER_WARNING (CWE-477):
gvfs-1.56.1-build/gvfs-1.56.1/daemon/trashlib/trashwatcher.c:256:3: warning[-Wdeprecated-declarations]: ‘g_unix_mount_compare’ is deprecated: Use 'g_unix_mount_entry_compare' instead
# 256 | mounts = g_list_sort (mounts, (GCompareFunc) g_unix_mount_compare);
# | ^~~~~~
/usr/include/gio-unix-2.0/gio/gunixmounts.h:86:16: note: declared here
# 86 | gint g_unix_mount_compare (GUnixMountEntry *mount1,
# | ^~~~~~~~~~~~~~~~~~~~
# 254|
# 255| mounts = g_unix_mounts_get (NULL);
# 256|-> mounts = g_list_sort (mounts, (GCompareFunc) g_unix_mount_compare);
# 257|
# 258| old = &watcher->mounts;
Error: COMPILER_WARNING (CWE-477):
gvfs-1.56.1-build/gvfs-1.56.1/daemon/trashlib/trashwatcher.c:268:11: warning[-Wdeprecated-declarations]: ‘g_unix_mount_free’ is deprecated: Use 'g_unix_mount_entry_free' instead
# 268 | g_unix_mount_free (new->data);
# | ^~~~~~~~~~~~~~~~~
/usr/include/gio-unix-2.0/gio/gunixmounts.h:71:16: note: declared here
# 71 | void g_unix_mount_free (GUnixMountEntry *mount_entry);
# | ^~~~~~~~~~~~~~~~~
# 266| if (new && ignore_trash_mount (new->data))
# 267| {
# 268|-> g_unix_mount_free (new->data);
# 269| new = new->next;
# 270| continue;
Error: COMPILER_WARNING (CWE-477):
gvfs-1.56.1-build/gvfs-1.56.1/daemon/trashlib/trashwatcher.c:274:9: warning[-Wdeprecated-declarations]: ‘g_unix_mount_compare’ is deprecated: Use 'g_unix_mount_entry_compare' instead
# 274 | result = g_unix_mount_compare (new->data, (*old)->mount_entry);
# | ^~~~~~
/usr/include/gio-unix-2.0/gio/gunixmounts.h:86:16: note: declared here
# 86 | gint g_unix_mount_compare (GUnixMountEntry *mount1,
# | ^~~~~~~~~~~~~~~~~~~~
# 272|
# 273| if ((result = (new == NULL) - (*old == NULL)) == 0)
# 274|-> result = g_unix_mount_compare (new->data, (*old)->mount_entry);
# 275|
# 276| if (result < 0)
Error: COMPILER_WARNING (CWE-477):
gvfs-1.56.1-build/gvfs-1.56.1/daemon/trashlib/trashwatcher.c:290:11: warning[-Wdeprecated-declarations]: ‘g_unix_mount_free’ is deprecated: Use 'g_unix_mount_entry_free' instead
# 290 | g_unix_mount_free (new->data);
# | ^~~~~~~~~~~~~~~~~
/usr/include/gio-unix-2.0/gio/gunixmounts.h:71:16: note: declared here
# 71 | void g_unix_mount_free (GUnixMountEntry *mount_entry);
# | ^~~~~~~~~~~~~~~~~
# 288| {
# 289| /* match. no change. */
# 290|-> g_unix_mount_free (new->data);
# 291|
# 292| old = &(*old)->next;
Error: COMPILER_WARNING (CWE-477):
gvfs-1.56.1-build/gvfs-1.56.1/daemon/trashlib/trashwatcher.c: scope_hint: In function ‘trash_watcher_new’
gvfs-1.56.1-build/gvfs-1.56.1/daemon/trashlib/trashwatcher.c:326:5: warning[-Wdeprecated-declarations]: ‘g_unix_mount_free’ is deprecated: Use 'g_unix_mount_entry_free' instead
# 326 | g_unix_mount_free (homedir_mount);
# | ^~~~~~~~~~~~~~~~~
/usr/include/gio-unix-2.0/gio/gunixmounts.h:71:16: note: declared here
# 71 | void g_unix_mount_free (GUnixMountEntry *mount_entry);
# | ^~~~~~~~~~~~~~~~~
# 324|
# 325| if (homedir_mount)
# 326|-> g_unix_mount_free (homedir_mount);
# 327| g_object_unref (homedir_trashdir);
# 328| g_object_unref (user_datadir);
Error: CPPCHECK_WARNING (CWE-758):
gvfs-1.56.1-build/gvfs-1.56.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 (CWE-758):
gvfs-1.56.1-build/gvfs-1.56.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):
gvfs-1.56.1-build/gvfs-1.56.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):
gvfs-1.56.1-build/gvfs-1.56.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):
gvfs-1.56.1-build/gvfs-1.56.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):
gvfs-1.56.1-build/gvfs-1.56.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):
gvfs-1.56.1-build/gvfs-1.56.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):
gvfs-1.56.1-build/gvfs-1.56.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):
gvfs-1.56.1-build/gvfs-1.56.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):
gvfs-1.56.1-build/gvfs-1.56.1/metadata/metatree.c: scope_hint: In function ‘get_dirname’
gvfs-1.56.1-build/gvfs-1.56.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.56.1-build/gvfs-1.56.1/metadata/metatree.h:26: included_from: Included from here.
gvfs-1.56.1-build/gvfs-1.56.1/metadata/metatree.c:12: included_from: Included from here.
gvfs-1.56.1-build/gvfs-1.56.1/metadata/metatree.c:2676:13: note: in expansion of macro ‘g_strdup’
gvfs-1.56.1-build/gvfs-1.56.1/metadata/metatree.c: scope_hint: In function ‘get_dirname’
gvfs-1.56.1-build/gvfs-1.56.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):
gvfs-1.56.1-build/gvfs-1.56.1/metadata/metatree.c: scope_hint: In function ‘mountinfo_unescape’
gvfs-1.56.1-build/gvfs-1.56.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:1243:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
gvfs-1.56.1-build/gvfs-1.56.1/metadata/metatree.c:3159:3: note: in expansion of macro ‘g_assert’
/usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
gvfs-1.56.1-build/gvfs-1.56.1/metadata/metatree.c:3159:3: note: in expansion of macro ‘g_assert’
/usr/include/glib-2.0/glib/gmacros.h:1243:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
gvfs-1.56.1-build/gvfs-1.56.1/metadata/metatree.c:3160:3: note: in expansion of macro ‘g_assert’
/usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
gvfs-1.56.1-build/gvfs-1.56.1/metadata/metatree.c:3160:3: note: in expansion of macro ‘g_assert’
gvfs-1.56.1-build/gvfs-1.56.1/metadata/metatree.c:3165:9: note: in expansion of macro ‘g_strdup’
gvfs-1.56.1-build/gvfs-1.56.1/metadata/metatree.c: scope_hint: In function ‘mountinfo_unescape’
gvfs-1.56.1-build/gvfs-1.56.1/metadata/metatree.c:3166:10: note: in expansion of macro ‘g_strdup’
gvfs-1.56.1-build/gvfs-1.56.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):
gvfs-1.56.1-build/gvfs-1.56.1/metadata/metatree.c:2974:6: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘s’
/usr/include/glib-2.0/glib/gmacros.h:1243:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
gvfs-1.56.1-build/gvfs-1.56.1/metadata/metatree.c:3159:3: note: in expansion of macro ‘g_assert’
/usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
gvfs-1.56.1-build/gvfs-1.56.1/metadata/metatree.c:3159:3: note: in expansion of macro ‘g_assert’
/usr/include/glib-2.0/glib/gmacros.h:1243:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
gvfs-1.56.1-build/gvfs-1.56.1/metadata/metatree.c:3160:3: note: in expansion of macro ‘g_assert’
/usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
gvfs-1.56.1-build/gvfs-1.56.1/metadata/metatree.c:3160:3: note: in expansion of macro ‘g_assert’
gvfs-1.56.1-build/gvfs-1.56.1/metadata/metatree.c:3165:9: note: in expansion of macro ‘g_strdup’
gvfs-1.56.1-build/gvfs-1.56.1/metadata/metatree.c: scope_hint: In function ‘mountinfo_unescape’
gvfs-1.56.1-build/gvfs-1.56.1/metadata/metatree.c:3166:10: note: in expansion of macro ‘g_strdup’
gvfs-1.56.1-build/gvfs-1.56.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):
gvfs-1.56.1-build/gvfs-1.56.1/metadata/metatree.c: scope_hint: In function ‘find_mountinfo_root_for_mountpoint’
gvfs-1.56.1-build/gvfs-1.56.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:1243:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
gvfs-1.56.1-build/gvfs-1.56.1/metadata/metatree.c:3159:3: note: in expansion of macro ‘g_assert’
/usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
gvfs-1.56.1-build/gvfs-1.56.1/metadata/metatree.c:3159:3: note: in expansion of macro ‘g_assert’
/usr/include/glib-2.0/glib/gmacros.h:1243:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
gvfs-1.56.1-build/gvfs-1.56.1/metadata/metatree.c:3160:3: note: in expansion of macro ‘g_assert’
/usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
gvfs-1.56.1-build/gvfs-1.56.1/metadata/metatree.c:3160:3: note: in expansion of macro ‘g_assert’
gvfs-1.56.1-build/gvfs-1.56.1/metadata/metatree.c:3165:9: note: in expansion of macro ‘g_strdup’
gvfs-1.56.1-build/gvfs-1.56.1/metadata/metatree.c: scope_hint: In function ‘find_mountinfo_root_for_mountpoint’
gvfs-1.56.1-build/gvfs-1.56.1/metadata/metatree.c:3166:10: note: in expansion of macro ‘g_strdup’
gvfs-1.56.1-build/gvfs-1.56.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):
gvfs-1.56.1-build/gvfs-1.56.1/metadata/metatree.c: scope_hint: In function ‘path_has_prefix’
gvfs-1.56.1-build/gvfs-1.56.1/metadata/metatree.c:3265:7: warning[-Wanalyzer-null-argument]: use of NULL ‘path’ where non-null expected
gvfs-1.56.1-build/gvfs-1.56.1/metadata/metatree.c:2676:13: note: in expansion of macro ‘g_strdup’
gvfs-1.56.1-build/gvfs-1.56.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: COMPILER_WARNING (CWE-477):
gvfs-1.56.1-build/gvfs-1.56.1/monitor/udisks2/gvfsudisks2mount.c: scope_hint: In function ‘update_mount’
gvfs-1.56.1-build/gvfs-1.56.1/monitor/udisks2/gvfsudisks2mount.c:260:11: warning[-Wdeprecated-declarations]: ‘g_unix_mount_get_fs_type’ is deprecated: Use 'g_unix_mount_entry_get_fs_type' instead
# 260 | mount->icon = gvfs_udisks2_utils_icon_from_fs_type (g_unix_mount_get_fs_type (mount->mount_entry));
# | ^~~~~
gvfs-1.56.1-build/gvfs-1.56.1/monitor/udisks2/gvfsudisks2volumemonitor.h:29: included_from: Included from here.
gvfs-1.56.1-build/gvfs-1.56.1/monitor/udisks2/gvfsudisks2mount.c:40: included_from: Included from here.
/usr/include/gio-unix-2.0/gio/gunixmounts.h:108:16: note: declared here
# 108 | const char * g_unix_mount_get_fs_type (GUnixMountEntry *mount_entry);
# | ^~~~~~~~~~~~~~~~~~~~~~~~
# 258| else
# 259| {
# 260|-> mount->icon = gvfs_udisks2_utils_icon_from_fs_type (g_unix_mount_get_fs_type (mount->mount_entry));
# 261| }
# 262|
Error: COMPILER_WARNING (CWE-477):
gvfs-1.56.1-build/gvfs-1.56.1/monitor/udisks2/gvfsudisks2mount.c:273:7: warning[-Wdeprecated-declarations]: ‘g_unix_mount_get_fs_type’ is deprecated: Use 'g_unix_mount_entry_get_fs_type' instead
# 273 | mount->symbolic_icon = gvfs_udisks2_utils_symbolic_icon_from_fs_type (g_unix_mount_get_fs_type (mount->mount_entry));
# | ^~~~~
/usr/include/gio-unix-2.0/gio/gunixmounts.h:108:16: note: declared here
# 108 | const char * g_unix_mount_get_fs_type (GUnixMountEntry *mount_entry);
# | ^~~~~~~~~~~~~~~~~~~~~~~~
# 271| mount->name = g_strdup (mount->mount_entry_name);
# 272|
# 273|-> mount->symbolic_icon = gvfs_udisks2_utils_symbolic_icon_from_fs_type (g_unix_mount_get_fs_type (mount->mount_entry));
# 274| }
# 275|
Error: COMPILER_WARNING (CWE-477):
gvfs-1.56.1-build/gvfs-1.56.1/monitor/udisks2/gvfsudisks2mount.c: scope_hint: In function ‘gvfs_udisks2_mount_new’
gvfs-1.56.1-build/gvfs-1.56.1/monitor/udisks2/gvfsudisks2mount.c:345:7: warning[-Wdeprecated-declarations]: ‘g_unix_mount_guess_name’ is deprecated: Use 'g_unix_mount_entry_guess_name' instead
# 345 | mount->mount_entry_name = g_unix_mount_guess_name (mount_entry);
# | ^~~~~
/usr/include/gio-unix-2.0/gio/gunixmounts.h:138:16: note: declared here
# 138 | char * g_unix_mount_guess_name (GUnixMountEntry *mount_entry);
# | ^~~~~~~~~~~~~~~~~~~~~~~
# 343| {
# 344| mount->mount_entry = mount_entry; /* takes ownership */
# 345|-> mount->mount_entry_name = g_unix_mount_guess_name (mount_entry);
# 346| mount->device_file = g_strdup (g_unix_mount_get_device_path (mount_entry));
# 347| mount->mount_path = g_strdup (g_unix_mount_get_mount_path (mount_entry));
Error: COMPILER_WARNING (CWE-477):
gvfs-1.56.1-build/gvfs-1.56.1/monitor/udisks2/gvfsudisks2mount.c:346:7: warning[-Wdeprecated-declarations]: ‘g_unix_mount_get_device_path’ is deprecated: Use 'g_unix_mount_entry_get_device_path' instead
# 346 | mount->device_file = g_strdup (g_unix_mount_get_device_path (mount_entry));
# | ^~~~~
/usr/include/gio-unix-2.0/gio/gunixmounts.h:98:16: note: declared here
# 98 | const char * g_unix_mount_get_device_path (GUnixMountEntry *mount_entry);
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 344| mount->mount_entry = mount_entry; /* takes ownership */
# 345| mount->mount_entry_name = g_unix_mount_guess_name (mount_entry);
# 346|-> mount->device_file = g_strdup (g_unix_mount_get_device_path (mount_entry));
# 347| mount->mount_path = g_strdup (g_unix_mount_get_mount_path (mount_entry));
# 348| mount->root = g_file_new_for_path (mount->mount_path);
Error: COMPILER_WARNING (CWE-477):
gvfs-1.56.1-build/gvfs-1.56.1/monitor/udisks2/gvfsudisks2mount.c:347:7: warning[-Wdeprecated-declarations]: ‘g_unix_mount_get_mount_path’ is deprecated: Use 'g_unix_mount_entry_get_mount_path' instead
# 347 | mount->mount_path = g_strdup (g_unix_mount_get_mount_path (mount_entry));
# | ^~~~~
/usr/include/gio-unix-2.0/gio/gunixmounts.h:93:16: note: declared here
# 93 | const char * g_unix_mount_get_mount_path (GUnixMountEntry *mount_entry);
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~
# 345| mount->mount_entry_name = g_unix_mount_guess_name (mount_entry);
# 346| mount->device_file = g_strdup (g_unix_mount_get_device_path (mount_entry));
# 347|-> mount->mount_path = g_strdup (g_unix_mount_get_mount_path (mount_entry));
# 348| mount->root = g_file_new_for_path (mount->mount_path);
# 349| }
Error: COMPILER_WARNING (CWE-477):
gvfs-1.56.1-build/gvfs-1.56.1/monitor/udisks2/gvfsudisks2volumemonitor.c: scope_hint: In function ‘should_include_mount’
gvfs-1.56.1-build/gvfs-1.56.1/monitor/udisks2/gvfsudisks2volumemonitor.c:742:3: warning[-Wdeprecated-declarations]: ‘g_unix_mount_get_fs_type’ is deprecated: Use 'g_unix_mount_entry_get_fs_type' instead
gvfs-1.56.1-build/gvfs-1.56.1/monitor/udisks2/gvfsudisks2volumemonitor.h:29: included_from: Included from here.
gvfs-1.56.1-build/gvfs-1.56.1/monitor/udisks2/gvfsudisks2volumemonitor.c:38: included_from: Included from here.
/usr/include/gio-unix-2.0/gio/gunixmounts.h:108:16: note: declared here
# 740| gboolean ret = FALSE;
# 741|
# 742|-> if (g_strcmp0 (g_unix_mount_get_fs_type (mount_entry), "autofs") == 0)
# 743| {
# 744| goto out;
Error: COMPILER_WARNING (CWE-477):
gvfs-1.56.1-build/gvfs-1.56.1/monitor/udisks2/gvfsudisks2volumemonitor.c:751:3: warning[-Wdeprecated-declarations]: ‘g_unix_mount_get_mount_path’ is deprecated: Use 'g_unix_mount_entry_get_mount_path' instead
/usr/include/gio-unix-2.0/gio/gunixmounts.h:93:16: note: declared here
# 749| * see https://gitlab.gnome.org/GNOME/gvfs/issues/348.
# 750| */
# 751|-> mount_point = g_unix_mount_point_at (g_unix_mount_get_mount_path (mount_entry), NULL);
# 752| if (mount_point != NULL)
# 753| {
Error: COMPILER_WARNING (CWE-477):
gvfs-1.56.1-build/gvfs-1.56.1/monitor/udisks2/gvfsudisks2volumemonitor.c:762:3: warning[-Wdeprecated-declarations]: ‘g_unix_mount_get_options’ is deprecated: Use 'g_unix_mount_entry_get_options' instead
/usr/include/gio-unix-2.0/gio/gunixmounts.h:113:16: note: declared here
# 760| * see https://bugzilla.gnome.org/show_bug.cgi?id=668132
# 761| */
# 762|-> options = g_unix_mount_get_options (mount_entry);
# 763| if (options != NULL)
# 764| {
Error: COMPILER_WARNING (CWE-477):
gvfs-1.56.1-build/gvfs-1.56.1/monitor/udisks2/gvfsudisks2volumemonitor.c:765:7: warning[-Wdeprecated-declarations]: ‘g_unix_mount_get_mount_path’ is deprecated: Use 'g_unix_mount_entry_get_mount_path' instead
/usr/include/gio-unix-2.0/gio/gunixmounts.h:93:16: note: declared here
# 763| if (options != NULL)
# 764| {
# 765|-> ret = should_include (g_unix_mount_get_mount_path (mount_entry),
# 766| options);
# 767| goto out;
Error: COMPILER_WARNING (CWE-477):
gvfs-1.56.1-build/gvfs-1.56.1/monitor/udisks2/gvfsudisks2volumemonitor.c:770:3: warning[-Wdeprecated-declarations]: ‘g_unix_mount_get_mount_path’ is deprecated: Use 'g_unix_mount_entry_get_mount_path' instead
/usr/include/gio-unix-2.0/gio/gunixmounts.h:93:16: note: declared here
# 768| }
# 769|
# 770|-> ret = should_include (g_unix_mount_get_mount_path (mount_entry), NULL);
# 771|
# 772| out:
Error: COMPILER_WARNING (CWE-477):
gvfs-1.56.1-build/gvfs-1.56.1/monitor/udisks2/gvfsudisks2volumemonitor.c: scope_hint: In function ‘should_include_volume_check_mount_points’
gvfs-1.56.1-build/gvfs-1.56.1/monitor/udisks2/gvfsudisks2volumemonitor.c:803:7: warning[-Wdeprecated-declarations]: ‘g_unix_mount_at’ is deprecated: Use 'g_unix_mount_entry_at' instead
/usr/include/gio-unix-2.0/gio/gunixmounts.h:206:18: note: declared here
# 801| GUnixMountEntry *mount_entry;
# 802|
# 803|-> mount_entry = g_unix_mount_at (mount_point, NULL);
# 804| if (mount_entry != NULL)
# 805| {
Error: COMPILER_WARNING (CWE-477):
gvfs-1.56.1-build/gvfs-1.56.1/monitor/udisks2/gvfsudisks2volumemonitor.c:809:11: warning[-Wdeprecated-declarations]: ‘g_unix_mount_get_root_path’ is deprecated: Use 'g_unix_mount_entry_get_root_path' instead
/usr/include/gio-unix-2.0/gio/gunixmounts.h:103:16: note: declared here
# 807|
# 808| #ifdef HAVE_G_UNIX_MOUNT_GET_ROOT_PATH
# 809|-> root = g_unix_mount_get_root_path (mount_entry);
# 810| #endif
# 811|
Error: COMPILER_WARNING (CWE-477):
gvfs-1.56.1-build/gvfs-1.56.1/monitor/udisks2/gvfsudisks2volumemonitor.c:815:15: warning[-Wdeprecated-declarations]: ‘g_unix_mount_free’ is deprecated: Use 'g_unix_mount_entry_free' instead
/usr/include/gio-unix-2.0/gio/gunixmounts.h:71:16: note: declared here
# 813| should_include_mount (monitor, mount_entry))
# 814| {
# 815|-> g_unix_mount_free (mount_entry);
# 816| ret = TRUE;
# 817| goto out;
Error: COMPILER_WARNING (CWE-477):
gvfs-1.56.1-build/gvfs-1.56.1/monitor/udisks2/gvfsudisks2volumemonitor.c:821:11: warning[-Wdeprecated-declarations]: ‘g_unix_mount_free’ is deprecated: Use 'g_unix_mount_entry_free' instead
/usr/include/gio-unix-2.0/gio/gunixmounts.h:71:16: note: declared here
# 819|
# 820| ret = FALSE;
# 821|-> g_unix_mount_free (mount_entry);
# 822| }
# 823| }
Error: COMPILER_WARNING (CWE-477):
gvfs-1.56.1-build/gvfs-1.56.1/monitor/udisks2/gvfsudisks2volumemonitor.c: scope_hint: In function ‘mount_point_matches_mount_entry’
gvfs-1.56.1-build/gvfs-1.56.1/monitor/udisks2/gvfsudisks2volumemonitor.c:1163:3: warning[-Wdeprecated-declarations]: ‘g_unix_mount_get_mount_path’ is deprecated: Use 'g_unix_mount_entry_get_mount_path' instead
/usr/include/gio-unix-2.0/gio/gunixmounts.h:93:16: note: declared here
# 1161|
# 1162| mp_path = g_strdup (g_unix_mount_point_get_mount_path (mount_point));
# 1163|-> mp_entry = g_strdup (g_unix_mount_get_mount_path (mount_entry));
# 1164|
# 1165| if (g_str_has_suffix (mp_path, "/"))
Error: GCC_ANALYZER_WARNING (CWE-688):
gvfs-1.56.1-build/gvfs-1.56.1/monitor/udisks2/gvfsudisks2volumemonitor.c: scope_hint: In function ‘mount_point_matches_mount_entry’
gvfs-1.56.1-build/gvfs-1.56.1/monitor/udisks2/gvfsudisks2volumemonitor.c:1166: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.56.1-build/gvfs-1.56.1/monitor/udisks2/gvfsudisks2volumemonitor.c:34: included_from: Included from here.
/usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1251: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.56.1-build/gvfs-1.56.1/monitor/udisks2/gvfsudisks2volumemonitor.c:1165: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.56.1-build/gvfs-1.56.1/monitor/udisks2/gvfsudisks2volumemonitor.c:1165:7: note: in expansion of macro ‘g_str_has_suffix’
<built-in>: note: argument 1 of ‘__builtin_strlen’ must be non-null
# 1164|
# 1165| if (g_str_has_suffix (mp_path, "/"))
# 1166|-> mp_path[strlen(mp_path) - 1] = '\0';
# 1167| if (g_str_has_suffix (mp_entry, "/"))
# 1168| mp_entry[strlen(mp_entry) - 1] = '\0';
Error: GCC_ANALYZER_WARNING (CWE-688):
gvfs-1.56.1-build/gvfs-1.56.1/monitor/udisks2/gvfsudisks2volumemonitor.c:1168:14: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
gvfs-1.56.1-build/gvfs-1.56.1/monitor/udisks2/gvfsudisks2volumemonitor.c:1165:7: note: in expansion of macro ‘g_str_has_suffix’
/usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1251: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.56.1-build/gvfs-1.56.1/monitor/udisks2/gvfsudisks2volumemonitor.c:1167:7: note: in expansion of macro ‘g_str_has_suffix’
/usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1251: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.56.1-build/gvfs-1.56.1/monitor/udisks2/gvfsudisks2volumemonitor.c:1167:7: note: in expansion of macro ‘g_str_has_suffix’
gvfs-1.56.1-build/gvfs-1.56.1/monitor/udisks2/gvfsudisks2volumemonitor.c:1167:7: note: in expansion of macro ‘g_str_has_suffix’
<built-in>: note: argument 1 of ‘__builtin_strlen’ must be non-null
# 1166| mp_path[strlen(mp_path) - 1] = '\0';
# 1167| if (g_str_has_suffix (mp_entry, "/"))
# 1168|-> mp_entry[strlen(mp_entry) - 1] = '\0';
# 1169|
# 1170| if (g_strcmp0 (mp_path, mp_entry) != 0)
Error: COMPILER_WARNING (CWE-477):
gvfs-1.56.1-build/gvfs-1.56.1/monitor/udisks2/gvfsudisks2volumemonitor.c: scope_hint: In function ‘update_mounts’
gvfs-1.56.1-build/gvfs-1.56.1/monitor/udisks2/gvfsudisks2volumemonitor.c:1747:3: warning[-Wdeprecated-declarations]: ‘g_unix_mounts_get’ is deprecated: Use 'g_unix_mount_entries_get' instead
/usr/include/gio-unix-2.0/gio/gunixmounts.h:192:16: note: declared here
# 1745| }
# 1746|
# 1747|-> new_mounts = g_unix_mounts_get (NULL);
# 1748| /* remove mounts we want to ignore - we do it here so we get to reevaluate
# 1749| * on the next update whether they should still be ignored
Error: COMPILER_WARNING (CWE-477):
gvfs-1.56.1-build/gvfs-1.56.1/monitor/udisks2/gvfsudisks2volumemonitor.c:1757:11: warning[-Wdeprecated-declarations]: ‘g_unix_mount_free’ is deprecated: Use 'g_unix_mount_entry_free' instead
/usr/include/gio-unix-2.0/gio/gunixmounts.h:71:16: note: declared here
# 1755| if (!should_include_mount (monitor, mount_entry))
# 1756| {
# 1757|-> g_unix_mount_free (mount_entry);
# 1758| new_mounts = g_list_delete_link (new_mounts, l);
# 1759| }
Error: COMPILER_WARNING (CWE-477):
gvfs-1.56.1-build/gvfs-1.56.1/monitor/udisks2/gvfsudisks2volumemonitor.c:1762:3: warning[-Wdeprecated-declarations]: ‘g_unix_mount_compare’ is deprecated: Use 'g_unix_mount_entry_compare' instead
/usr/include/gio-unix-2.0/gio/gunixmounts.h:86:16: note: declared here
# 1760| }
# 1761|
# 1762|-> cur_mounts = g_list_sort (cur_mounts, (GCompareFunc) g_unix_mount_compare);
# 1763| new_mounts = g_list_sort (new_mounts, (GCompareFunc) g_unix_mount_compare);
# 1764| diff_sorted_lists (cur_mounts,
Error: COMPILER_WARNING (CWE-477):
gvfs-1.56.1-build/gvfs-1.56.1/monitor/udisks2/gvfsudisks2volumemonitor.c:1763:3: warning[-Wdeprecated-declarations]: ‘g_unix_mount_compare’ is deprecated: Use 'g_unix_mount_entry_compare' instead
/usr/include/gio-unix-2.0/gio/gunixmounts.h:86:16: note: declared here
# 1761|
# 1762| cur_mounts = g_list_sort (cur_mounts, (GCompareFunc) g_unix_mount_compare);
# 1763|-> new_mounts = g_list_sort (new_mounts, (GCompareFunc) g_unix_mount_compare);
# 1764| diff_sorted_lists (cur_mounts,
# 1765| new_mounts, (GCompareFunc) g_unix_mount_compare,
Error: COMPILER_WARNING (CWE-477):
gvfs-1.56.1-build/gvfs-1.56.1/monitor/udisks2/gvfsudisks2volumemonitor.c:1765:22: warning[-Wdeprecated-declarations]: ‘g_unix_mount_compare’ is deprecated: Use 'g_unix_mount_entry_compare' instead
/usr/include/gio-unix-2.0/gio/gunixmounts.h:86:16: note: declared here
# 1763| new_mounts = g_list_sort (new_mounts, (GCompareFunc) g_unix_mount_compare);
# 1764| diff_sorted_lists (cur_mounts,
# 1765|-> new_mounts, (GCompareFunc) g_unix_mount_compare,
# 1766| &added, &removed, &unchanged);
# 1767|
Error: COMPILER_WARNING (CWE-477):
gvfs-1.56.1-build/gvfs-1.56.1/monitor/udisks2/gvfsudisks2volumemonitor.c:1771:7: warning[-Wdeprecated-declarations]: ‘g_unix_mount_get_mount_path’ is deprecated: Use 'g_unix_mount_entry_get_mount_path' instead
/usr/include/gio-unix-2.0/gio/gunixmounts.h:93:16: note: declared here
# 1769| {
# 1770| GUnixMountEntry *mount_entry = l->data;
# 1771|-> mount = find_mount_by_mount_path (monitor, g_unix_mount_get_mount_path (mount_entry));
# 1772| if (mount != NULL)
# 1773| {
Error: COMPILER_WARNING (CWE-477):
gvfs-1.56.1-build/gvfs-1.56.1/monitor/udisks2/gvfsudisks2volumemonitor.c:1787:7: warning[-Wdeprecated-declarations]: ‘g_unix_mount_get_root_path’ is deprecated: Use 'g_unix_mount_entry_get_root_path' instead
/usr/include/gio-unix-2.0/gio/gunixmounts.h:103:16: note: declared here
# 1785|
# 1786| #ifdef HAVE_G_UNIX_MOUNT_GET_ROOT_PATH
# 1787|-> root = g_unix_mount_get_root_path (mount_entry);
# 1788| #endif
# 1789|
Error: COMPILER_WARNING (CWE-477):
gvfs-1.56.1-build/gvfs-1.56.1/monitor/udisks2/gvfsudisks2volumemonitor.c:1792:9: warning[-Wdeprecated-declarations]: ‘g_unix_mount_get_device_path’ is deprecated: Use 'g_unix_mount_entry_get_device_path' instead
/usr/include/gio-unix-2.0/gio/gunixmounts.h:98:16: note: declared here
# 1790| volume = NULL;
# 1791| if (root == NULL || g_strcmp0 (root, "/") == 0)
# 1792|-> volume = find_volume_for_device (monitor, g_unix_mount_get_device_path (mount_entry));
# 1793| if (volume == NULL)
# 1794| volume = find_fstab_volume_for_mount_entry (monitor, mount_entry);
Error: COMPILER_WARNING (CWE-477):
gvfs-1.56.1-build/gvfs-1.56.1/monitor/udisks2/gvfsudisks2volumemonitor.c:1816:7: warning[-Wdeprecated-declarations]: ‘g_unix_mount_get_mount_path’ is deprecated: Use 'g_unix_mount_entry_get_mount_path' instead
/usr/include/gio-unix-2.0/gio/gunixmounts.h:93:16: note: declared here
# 1814| {
# 1815| GUnixMountEntry *mount_entry = l->data;
# 1816|-> mount = find_mount_by_mount_path (monitor, g_unix_mount_get_mount_path (mount_entry));
# 1817| if (mount == NULL)
# 1818| {
Error: COMPILER_WARNING (CWE-477):
gvfs-1.56.1-build/gvfs-1.56.1/monitor/udisks2/gvfsudisks2volumemonitor.c:1819:11: warning[-Wdeprecated-declarations]: ‘g_unix_mount_get_mount_path’ is deprecated: Use 'g_unix_mount_entry_get_mount_path' instead
/usr/include/gio-unix-2.0/gio/gunixmounts.h:93:16: note: declared here
# 1817| if (mount == NULL)
# 1818| {
# 1819|-> g_warning ("No mount object for path %s", g_unix_mount_get_mount_path (mount_entry));
# 1820| continue;
# 1821| }
Error: COMPILER_WARNING (CWE-477):
gvfs-1.56.1-build/gvfs-1.56.1/monitor/udisks2/gvfsudisks2volumemonitor.c:1827:11: warning[-Wdeprecated-declarations]: ‘g_unix_mount_get_root_path’ is deprecated: Use 'g_unix_mount_entry_get_root_path' instead
/usr/include/gio-unix-2.0/gio/gunixmounts.h:103:16: note: declared here
# 1825|
# 1826| #ifdef HAVE_G_UNIX_MOUNT_GET_ROOT_PATH
# 1827|-> root = g_unix_mount_get_root_path (mount_entry);
# 1828| #endif
# 1829|
Error: COMPILER_WARNING (CWE-477):
gvfs-1.56.1-build/gvfs-1.56.1/monitor/udisks2/gvfsudisks2volumemonitor.c:1832:13: warning[-Wdeprecated-declarations]: ‘g_unix_mount_get_device_path’ is deprecated: Use 'g_unix_mount_entry_get_device_path' instead
/usr/include/gio-unix-2.0/gio/gunixmounts.h:98:16: note: declared here
# 1830| volume = NULL;
# 1831| if (root == NULL || g_strcmp0 (root, "/") == 0)
# 1832|-> volume = find_volume_for_device (monitor, g_unix_mount_get_device_path (mount_entry));
# 1833| if (volume == NULL)
# 1834| volume = find_fstab_volume_for_mount_entry (monitor, mount_entry);
Error: COMPILER_WARNING (CWE-477):
gvfs-1.56.1-build/gvfs-1.56.1/monitor/udisks2/gvfsudisks2volumemonitor.c:1844:3: warning[-Wdeprecated-declarations]: ‘g_unix_mount_free’ is deprecated: Use 'g_unix_mount_entry_free' instead
/usr/include/gio-unix-2.0/gio/gunixmounts.h:71:16: note: declared here
# 1842| g_list_free (unchanged);
# 1843|
# 1844|-> g_list_free_full (new_mounts, (GDestroyNotify) g_unix_mount_free);
# 1845|
# 1846| g_list_free (cur_mounts);