Task #131518 - fixed.err

back to task #131518
download
Error: GCC_ANALYZER_WARNING (CWE-775):
libblockdev-3.4.0/src/plugins/fs/mount.c:491:16: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'pipefd[0]'
libblockdev-3.4.0/src/plugins/fs/mount.c:631:10: enter_function: entry to 'bd_fs_unmount'
libblockdev-3.4.0/src/plugins/fs/mount.c:652:8: branch_true: following 'true' branch (when 'extra' is non-NULL)...
libblockdev-3.4.0/src/plugins/fs/mount.c:652:8: branch_true: ...to here
libblockdev-3.4.0/src/plugins/fs/mount.c:653:29: branch_true: following 'true' branch...
libblockdev-3.4.0/src/plugins/fs/mount.c:654:17: branch_true: ...to here
libblockdev-3.4.0/src/plugins/fs/mount.c:654:16: branch_true: following 'true' branch...
libblockdev-3.4.0/src/plugins/fs/mount.c:680:8: branch_true: following 'true' branch...
libblockdev-3.4.0/src/plugins/fs/mount.c:681:15: branch_true: ...to here
libblockdev-3.4.0/src/plugins/fs/mount.c:681:15: call_function: calling 'run_as_user' from 'bd_fs_unmount'
#  489|           g_set_error (error, BD_FS_ERROR, BD_FS_ERROR_FAIL,
#  490|                        "Not running as root, cannot change the UID/GID.");
#  491|->         return FALSE;
#  492|       }
#  493|   

Error: GCC_ANALYZER_WARNING (CWE-775):
libblockdev-3.4.0/src/plugins/fs/mount.c:491:16: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'pipefd[1]'
libblockdev-3.4.0/src/plugins/fs/mount.c:631:10: enter_function: entry to 'bd_fs_unmount'
libblockdev-3.4.0/src/plugins/fs/mount.c:652:8: branch_true: following 'true' branch (when 'extra' is non-NULL)...
libblockdev-3.4.0/src/plugins/fs/mount.c:652:8: branch_true: ...to here
libblockdev-3.4.0/src/plugins/fs/mount.c:653:29: branch_true: following 'true' branch...
libblockdev-3.4.0/src/plugins/fs/mount.c:654:17: branch_true: ...to here
libblockdev-3.4.0/src/plugins/fs/mount.c:654:16: branch_true: following 'true' branch...
libblockdev-3.4.0/src/plugins/fs/mount.c:680:8: branch_true: following 'true' branch...
libblockdev-3.4.0/src/plugins/fs/mount.c:681:15: branch_true: ...to here
libblockdev-3.4.0/src/plugins/fs/mount.c:681:15: call_function: calling 'run_as_user' from 'bd_fs_unmount'
#  489|           g_set_error (error, BD_FS_ERROR, BD_FS_ERROR_FAIL,
#  490|                        "Not running as root, cannot change the UID/GID.");
#  491|->         return FALSE;
#  492|       }
#  493|   

Error: GCC_ANALYZER_WARNING (CWE-775):
libblockdev-3.4.0/src/plugins/nvme/nvme-info.c:410:19: warning[-Wanalyzer-fd-leak]: leak of file descriptor '_open_dev(device,  error)'
libblockdev-3.4.0/src/plugins/nvme/nvme-info.c:470:24: enter_function: entry to 'bd_nvme_get_controller_info'
libblockdev-3.4.0/src/plugins/nvme/nvme-info.c:477:10: call_function: calling '_open_dev' from 'bd_nvme_get_controller_info'
libblockdev-3.4.0/src/plugins/nvme/nvme-info.c:477:10: return_function: returning to 'bd_nvme_get_controller_info' from '_open_dev'
libblockdev-3.4.0/src/plugins/nvme/nvme-info.c:478:8: branch_false: following 'false' branch...
libblockdev-3.4.0/src/plugins/nvme/nvme-info.c:481:15: branch_false: ...to here
libblockdev-3.4.0/src/plugins/nvme/nvme-info.c:481:15: call_function: calling '_nvme_alloc' from 'bd_nvme_get_controller_info'
libblockdev-3.4.0/src/plugins/nvme/nvme-info.c:481:15: return_function: returning to 'bd_nvme_get_controller_info' from '_nvme_alloc'
libblockdev-3.4.0/src/plugins/nvme/nvme-info.c:410:19: danger: '_open_dev(device,  error)' leaks here; was opened at [(4)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/3)
#  408|   void *_nvme_alloc (size_t len, GError **error)
#  409|   {
#  410|->     size_t _len = ROUND_UP (len, 0x1000);
#  411|       void *p;
#  412|