fcoe-utils-1.0.34-13.gitb233050.fc44
List of Findings
Error: SHELLCHECK_WARNING (CWE-252): [#def1]
/usr/libexec/fcoe/fcc.sh:70:3: warning[SC2164]: Use 'cd ... || exit' or 'cd ... || return' in case cd fails.
Error: SHELLCHECK_WARNING (CWE-571): [#def2]
/usr/libexec/fcoe/fcc.sh:166:8: warning[SC2155]: Declare and assign separately to avoid masking return values.
Error: SHELLCHECK_WARNING (CWE-252): [#def3]
/usr/libexec/fcoe/fcc.sh:186:4: warning[SC2164]: Use 'cd ... || exit' or 'cd ... || return' in case cd fails.
Error: SHELLCHECK_WARNING (CWE-477): [#def4]
/usr/libexec/fcoe/fcc.sh:207:24: warning[SC2166]: Prefer [ p ] || [ q ] as [ p -o q ] is not well defined.
Error: SHELLCHECK_WARNING (CWE-252): [#def5]
/usr/libexec/fcoe/fcc.sh:268:4: warning[SC2164]: Use 'cd ... || exit' or 'cd ... || return' in case cd fails.
Error: SHELLCHECK_WARNING (CWE-571): [#def6]
/usr/libexec/fcoe/fcc.sh:279:8: warning[SC2155]: Declare and assign separately to avoid masking return values.
Error: SHELLCHECK_WARNING (CWE-252): [#def7]
/usr/libexec/fcoe/fcc.sh:285:3: warning[SC2164]: Use 'cd ... || exit' or 'cd ... || return' in case cd fails.
Error: SHELLCHECK_WARNING (CWE-252): [#def8]
/usr/libexec/fcoe/fcc.sh:312:4: warning[SC2164]: Use 'cd ... || exit' or 'cd ... || return' in case cd fails.
Error: SHELLCHECK_WARNING (CWE-477): [#def9]
/usr/libexec/fcoe/fcc.sh:456:18: warning[SC2166]: Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.
Error: SHELLCHECK_WARNING (CWE-569): [#def10]
/usr/libexec/fcoe/fcc.sh:461:8: warning[SC2124]: Assigning an array to a string! Assign as array, or use * instead of @ to concatenate.
Error: SHELLCHECK_WARNING (CWE-569): [#def11]
/usr/libexec/fcoe/fcc.sh:462:13: warning[SC2124]: Assigning an array to a string! Assign as array, or use * instead of @ to concatenate.
Error: SHELLCHECK_WARNING (CWE-563): [#def12]
/usr/libexec/fcoe/fcoe-setup.sh:12:58: warning[SC2034]: s1 appears unused. Verify use (or export if used externally).
Error: SHELLCHECK_WARNING (CWE-563): [#def13]
/usr/libexec/fcoe/fcoe-setup.sh:12:65: warning[SC2034]: s2 appears unused. Verify use (or export if used externally).
Error: SHELLCHECK_WARNING (CWE-783): [#def14]
/usr/libexec/fcoe/fcoedump.sh:176:16: warning[SC2069]: To redirect stdout+stderr, 2>&1 must be last (or use '{ cmd > file; } 2>&1' to clarify).
Error: SHELLCHECK_WARNING (CWE-783): [#def15]
/usr/libexec/fcoe/fcoedump.sh:179:17: warning[SC2069]: To redirect stdout+stderr, 2>&1 must be last (or use '{ cmd > file; } 2>&1' to clarify).
Error: SHELLCHECK_WARNING (CWE-156): [#def16]
/usr/libexec/fcoe/fcoedump.sh:207:11: warning[SC2046]: Quote this to prevent word splitting.
Error: GCC_ANALYZER_WARNING (CWE-775): [#def17]
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcoeadm.c:154:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘*clif_info.socket_fd’
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcoeadm.c:144:12: branch_false: following ‘false’ branch...
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcoeadm.c:147:9: branch_false: ...to here
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcoeadm.c:154:13: danger: ‘*clif_info.socket_fd’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def18]
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcoeadm.c:159:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘*clif_info.socket_fd’
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcoeadm.c:144:12: branch_false: following ‘false’ branch...
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcoeadm.c:147:9: branch_false: ...to here
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcoeadm.c:154:12: branch_false: following ‘false’ branch...
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcoeadm.c:159:9: branch_false: ...to here
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcoeadm.c:159:9: danger: ‘*clif_info.socket_fd’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def19]
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcoeadm.c:159:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘clif_info.socket_fd’
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcoeadm.c:182:1: enter_function: entry to ‘fcoeadm_action’
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcoeadm.c:196:14: call_function: calling ‘fcoeadm_open_cli’ from ‘fcoeadm_action’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def20]
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcoeadm.c:165:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘*clif_info.socket_fd’
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcoeadm.c:144:12: branch_false: following ‘false’ branch...
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcoeadm.c:147:9: branch_false: ...to here
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcoeadm.c:154:12: branch_false: following ‘false’ branch...
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcoeadm.c:159:9: branch_false: ...to here
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcoeadm.c:165:13: danger: ‘*clif_info.socket_fd’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def21]
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcoeadm.c:174:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘clif_info.socket_fd’
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcoeadm.c:182:1: enter_function: entry to ‘fcoeadm_action’
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcoeadm.c:196:14: call_function: calling ‘fcoeadm_open_cli’ from ‘fcoeadm_action’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def22]
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcoeadm_display.c:199:22: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(dir_name)’
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcoeadm_display.c:423:13: enter_function: entry to ‘search_rport_targets’
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcoeadm_display.c:428:9: call_function: calling ‘sa_dir_crawl’ from ‘search_rport_targets’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def23]
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcoeadm_display.c:287:22: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(&path)’
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcoeadm_display.c:423:13: enter_function: entry to ‘search_rport_targets’
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcoeadm_display.c:428:9: call_function: calling ‘sa_dir_crawl’ from ‘search_rport_targets’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def24]
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcoeadm_display.c:370:22: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(&path)’
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcoeadm_display.c:423:13: enter_function: entry to ‘search_rport_targets’
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcoeadm_display.c:428:9: call_function: calling ‘sa_dir_crawl’ from ‘search_rport_targets’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def25]
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcoeadm_display.c:458:30: warning[-Wanalyzer-null-argument]: use of NULL ‘substr’ where non-null expected
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcoeadm_display.c:464:13: enter_function: entry to ‘scan_device_map’
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcoeadm_display.c:469:9: call_function: calling ‘list_luns_by_rport’ from ‘scan_device_map’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def26]
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcoemon.c:496:22: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir("/etc/fcoe")’
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcoemon.c:3715:5: enter_function: entry to ‘main’
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcoemon.c:3725:9: call_function: inlined call to ‘strncpy’ from ‘main’
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcoemon.c:3764:12: branch_false: following ‘false’ branch...
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcoemon.c:3767:9: branch_false: ...to here
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcoemon.c:3786:12: branch_false: following ‘false’ branch (when ‘rc >= 0’)...
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcoemon.c:3790:14: branch_false: ...to here
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcoemon.c:3791:12: branch_false: following ‘false’ branch (when ‘rc >= 0’)...
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcoemon.c:3795:14: branch_false: ...to here
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcoemon.c:3796:12: branch_false: following ‘false’ branch (when ‘rc >= 0’)...
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcoemon.c:3800:14: branch_false: ...to here
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcoemon.c:3801:12: branch_false: following ‘false’ branch (when ‘rc >= 0’)...
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcoemon.c:3807:13: branch_false: ...to here
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcoemon.c:3807:12: branch_false: following ‘false’ branch...
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcoemon.c:3812:9: branch_false: ...to here
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcoemon.c:3812:9: call_function: calling ‘fcm_fcoe_init’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def27]
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcoemon.c:529:58: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&file, "r")’
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcoemon.c:3715:5: enter_function: entry to ‘main’
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcoemon.c:3725:9: call_function: inlined call to ‘strncpy’ from ‘main’
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcoemon.c:3764:12: branch_false: following ‘false’ branch...
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcoemon.c:3767:9: branch_false: ...to here
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcoemon.c:3786:12: branch_false: following ‘false’ branch (when ‘rc >= 0’)...
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcoemon.c:3790:14: branch_false: ...to here
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcoemon.c:3791:12: branch_false: following ‘false’ branch (when ‘rc >= 0’)...
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcoemon.c:3795:14: branch_false: ...to here
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcoemon.c:3796:12: branch_false: following ‘false’ branch (when ‘rc >= 0’)...
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcoemon.c:3800:14: branch_false: ...to here
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcoemon.c:3801:12: branch_false: following ‘false’ branch (when ‘rc >= 0’)...
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcoemon.c:3807:13: branch_false: ...to here
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcoemon.c:3807:12: branch_false: following ‘false’ branch...
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcoemon.c:3812:9: branch_false: ...to here
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcoemon.c:3812:9: call_function: calling ‘fcm_fcoe_init’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def28]
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcoemon.c:529:58: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(&file, "r")’
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcoemon.c:3715:5: enter_function: entry to ‘main’
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcoemon.c:3725:9: call_function: inlined call to ‘strncpy’ from ‘main’
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcoemon.c:3764:12: branch_false: following ‘false’ branch...
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcoemon.c:3767:9: branch_false: ...to here
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcoemon.c:3786:12: branch_false: following ‘false’ branch (when ‘rc >= 0’)...
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcoemon.c:3790:14: branch_false: ...to here
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcoemon.c:3791:12: branch_false: following ‘false’ branch (when ‘rc >= 0’)...
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcoemon.c:3795:14: branch_false: ...to here
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcoemon.c:3796:12: branch_false: following ‘false’ branch (when ‘rc >= 0’)...
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcoemon.c:3800:14: branch_false: ...to here
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcoemon.c:3801:12: branch_false: following ‘false’ branch (when ‘rc >= 0’)...
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcoemon.c:3807:13: branch_false: ...to here
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcoemon.c:3807:12: branch_false: following ‘false’ branch...
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcoemon.c:3812:9: branch_false: ...to here
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcoemon.c:3812:9: call_function: calling ‘fcm_fcoe_init’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def29]
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcoemon.c:614:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘curr’
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcoemon.c:3715:5: enter_function: entry to ‘main’
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcoemon.c:3725:9: call_function: inlined call to ‘strncpy’ from ‘main’
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcoemon.c:3764:12: branch_false: following ‘false’ branch...
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcoemon.c:3767:9: branch_false: ...to here
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcoemon.c:3786:12: branch_false: following ‘false’ branch (when ‘rc >= 0’)...
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcoemon.c:3790:14: branch_false: ...to here
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcoemon.c:3791:12: branch_false: following ‘false’ branch (when ‘rc >= 0’)...
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcoemon.c:3795:14: branch_false: ...to here
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcoemon.c:3796:12: branch_false: following ‘false’ branch (when ‘rc >= 0’)...
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcoemon.c:3800:14: branch_false: ...to here
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcoemon.c:3801:12: branch_false: following ‘false’ branch (when ‘rc >= 0’)...
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcoemon.c:3807:13: branch_false: ...to here
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcoemon.c:3807:12: branch_false: following ‘false’ branch...
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcoemon.c:3812:9: branch_false: ...to here
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcoemon.c:3812:9: call_function: calling ‘fcm_fcoe_init’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def30]
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcoemon.c:1103:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcoemon.c:3353:1: enter_function: entry to ‘fcm_port_create’
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcoemon.c:3360:12: branch_false: following ‘false’ branch...
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcoemon.c:3380:13: branch_false: ...to here
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcoemon.c:3380:13: call_function: calling ‘alloc_fcoe_port’ from ‘fcm_port_create’
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcoemon.c:3380:13: return_function: returning to ‘fcm_port_create’ from ‘alloc_fcoe_port’
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcoemon.c:3381:12: branch_false: following ‘false’ branch...
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcoemon.c:3386:39: branch_false: ...to here
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcoemon.c:3386:9: call_function: calling ‘fcm_vlan_dev_real_dev’ from ‘fcm_port_create’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def31]
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcoemon.c:1119:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcoemon.c:3353:1: enter_function: entry to ‘fcm_port_create’
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcoemon.c:3360:12: branch_false: following ‘false’ branch...
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcoemon.c:3380:13: branch_false: ...to here
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcoemon.c:3380:13: call_function: calling ‘alloc_fcoe_port’ from ‘fcm_port_create’
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcoemon.c:3380:13: return_function: returning to ‘fcm_port_create’ from ‘alloc_fcoe_port’
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcoemon.c:3381:12: branch_false: following ‘false’ branch...
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcoemon.c:3386:39: branch_false: ...to here
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcoemon.c:3386:9: call_function: calling ‘fcm_vlan_dev_real_dev’ from ‘fcm_port_create’
Error: CPPCHECK_WARNING (CWE-457): [#def32]
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcoemon.c:2029: error[uninitvar]: Uninitialized variables: ff.ff_enabled, ff.ff_dcb_state, ff.dcbx_cap, ff.ieee_state, ff.ieee_resp_pending, ff.ieee_pfc_info, ff.ieee_app_info, ff.ff_pfc_info, ff.ff_app_info, ff.ff_operstate, ff.ff_dcbd_state, ff.response_pending, ff.dcbd_retry_cnt, ff.dcbd_retry_timer
Error: CPPCHECK_WARNING (CWE-457): [#def33]
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcoemon.c:2051: error[uninitvar]: Uninitialized variables: curr.ff_enabled, curr.ff_dcb_state, curr.dcbx_cap, curr.ieee_state, curr.ieee_resp_pending, curr.ieee_pfc_info, curr.ieee_app_info, curr.ff_pfc_info, curr.ff_app_info, curr.ff_operstate, curr.ff_dcbd_state, curr.response_pending, curr.dcbd_retry_cnt, curr.dcbd_retry_timer
Error: GCC_ANALYZER_WARNING (CWE-775): [#def34]
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcoemon.c:2901:17: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(path, "w")’
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcoemon.c:2893:14: acquire_resource: opened here
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcoemon.c:2894:12: branch_false: following ‘false’ branch...
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcoemon.c:2900:20: branch_false: ...to here
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcoemon.c:2900:12: branch_true: following ‘true’ branch...
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcoemon.c:2901:17: branch_true: ...to here
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcoemon.c:2901:17: throw: if ‘sa_log_err’ throws an exception...
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcoemon.c:2901:17: danger: ‘fopen(path, "w")’ leaks here; was opened at [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def35]
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcoemon.c:2901:17: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(path, "w")’
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcoemon.c:2893:14: acquire_memory: allocated here
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcoemon.c:2894:12: branch_false: following ‘false’ branch...
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcoemon.c:2900:20: branch_false: ...to here
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcoemon.c:2900:12: branch_true: following ‘true’ branch...
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcoemon.c:2901:17: branch_true: ...to here
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcoemon.c:2901:17: throw: if ‘sa_log_err’ throws an exception...
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcoemon.c:2901:17: danger: ‘fopen(path, "w")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-457): [#def36]
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcoemon.c:3242: error[uninitvar]: Uninitialized variables: ff.ff_enabled, ff.ff_dcb_state, ff.dcbx_cap, ff.ieee_state, ff.ieee_resp_pending, ff.ieee_pfc_info, ff.ieee_app_info, ff.ff_pfc_info, ff.ff_app_info, ff.ff_operstate, ff.ff_dcbd_state, ff.response_pending, ff.dcbd_retry_cnt, ff.dcbd_retry_timer
Error: GCC_ANALYZER_WARNING (CWE-775): [#def37]
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcoemon.c:3689:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘*srv_info.srv_sock’
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcoemon.c:3664:12: enter_function: entry to ‘fcm_srv_create’
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcoemon.c:3671:12: branch_false: following ‘false’ branch...
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcoemon.c:3676:30: branch_false: ...to here
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcoemon.c:3677:12: branch_false: following ‘false’ branch...
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcoemon.c:3683:9: call_function: inlined call to ‘memset’ from ‘fcm_srv_create’
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcoemon.c:3689:13: danger: ‘*srv_info.srv_sock’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-401): [#def38]
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcping.c:265:9: warning[-Wanalyzer-malloc-leak]: leak of ‘resp’
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcping.c:865:12: enter_function: entry to ‘fp_send_ping’
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcping.c:878:16: acquire_memory: allocated here
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcping.c:879:12: branch_false: following ‘false’ branch (when ‘resp’ is non-NULL)...
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcping.c:882:9: branch_false: ...to here
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcping.c:887:19: call_function: calling ‘fp_get_time_usec’ from ‘fp_send_ping’
Error: CPPCHECK_WARNING (CWE-457): [#def39]
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcping.c:287: warning[uninitvar]: Uninitialized variable: buf
Error: CPPCHECK_WARNING (CWE-457): [#def40]
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fcrls.c:267: error[uninitvar]: Uninitialized variable: reply->result
Error: CPPCHECK_WARNING (CWE-457): [#def41]
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fipvlan.c:189: error[uninitvar]: Uninitialized variable: iff->ifindex
Error: CPPCHECK_WARNING (CWE-457): [#def42]
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fipvlan.c:216: error[uninitvar]: Uninitialized variable: real_dev->ifindex
Error: CPPCHECK_WARNING (CWE-457): [#def43]
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fipvlan.c:746: error[uninitvar]: Uninitialized variable: fcf->ifindex
Error: CPPCHECK_WARNING (CWE-457): [#def44]
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fipvlan.c:864: error[uninitvar]: Uninitialized variables: iff.ps, iff.ifindex, iff.iflink, iff.running, iff.is_vlan, iff.vid, iff.linkup_sent, iff.req_sent, iff.resp_recv, iff.fip_ready, iff.fcoe_started, iff.vlans
Error: CPPCHECK_WARNING (CWE-457): [#def45]
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fipvlan.c:920: error[uninitvar]: Uninitialized variable: vlan->running
Error: CPPCHECK_WARNING (CWE-457): [#def46]
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/fipvlan.c:942: error[uninitvar]: Uninitialized variable: iff->linkup_sent
Error: GCC_ANALYZER_WARNING (CWE-401): [#def47]
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/fcoe_utils.c:153:9: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(dir)’
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/fcoe_utils.c:147:12: branch_false: following ‘false’ branch (when ‘dir’ is non-NULL)...
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/fcoe_utils.c:150:13: branch_false: ...to here
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/fcoe_utils.c:150:13: acquire_memory: allocated here
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/fcoe_utils.c:151:12: branch_false: following ‘false’ branch...
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/fcoe_utils.c:153:9: branch_false: ...to here
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/fcoe_utils.c:153:9: danger: ‘opendir(dir)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def48]
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/fip.c:79:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘s’
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/fip.c:203:5: enter_function: entry to ‘fip_socket’
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/fip.c:213:13: acquire_resource: socket created here
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/fip.c:214:12: branch_false: following ‘false’ branch (when ‘s >= 0’)...
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/fip.c:219:14: branch_false: ...to here
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/fip.c:219:14: call_function: calling ‘fip_socket_sanmac’ from ‘fip_socket’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def49]
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/fip.c:83:14: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘s’
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/fip.c:203:5: enter_function: entry to ‘fip_socket’
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/fip.c:213:13: acquire_resource: socket created here
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/fip.c:214:12: branch_false: following ‘false’ branch (when ‘s >= 0’)...
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/fip.c:219:14: branch_false: ...to here
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/fip.c:219:14: call_function: calling ‘fip_socket_sanmac’ from ‘fip_socket’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def50]
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/fip.c:130:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘s’
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/fip.c:203:5: enter_function: entry to ‘fip_socket’
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/fip.c:213:13: acquire_resource: socket created here
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/fip.c:214:12: branch_false: following ‘false’ branch (when ‘s >= 0’)...
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/fip.c:219:14: branch_false: ...to here
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/fip.c:219:14: call_function: calling ‘fip_socket_sanmac’ from ‘fip_socket’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def51]
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/fip.c:193:16: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘s’
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/fip.c:203:5: enter_function: entry to ‘fip_socket’
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/fip.c:213:13: acquire_resource: socket created here
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/fip.c:214:12: branch_false: following ‘false’ branch (when ‘s >= 0’)...
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/fip.c:219:14: branch_false: ...to here
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/fip.c:219:14: call_function: calling ‘fip_socket_sanmac’ from ‘fip_socket’
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/fip.c:219:14: return_function: returning to ‘fip_socket’ from ‘fip_socket_sanmac’
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/fip.c:220:12: branch_false: following ‘false’ branch...
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/fip.c:225:12: branch_false: ...to here
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/fip.c:229:12: branch_false: following ‘false’ branch (when ‘rc >= 0’)...
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/fip.c:240:9: branch_false: ...to here
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/fip.c:240:9: call_function: calling ‘drain_socket’ from ‘fip_socket’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def52]
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/fip.c:230:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘s’
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/fip.c:203:5: enter_function: entry to ‘fip_socket’
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/fip.c:213:13: acquire_resource: socket created here
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/fip.c:214:12: branch_false: following ‘false’ branch (when ‘s >= 0’)...
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/fip.c:219:14: branch_false: ...to here
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/fip.c:219:14: call_function: calling ‘fip_socket_sanmac’ from ‘fip_socket’
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/fip.c:219:14: return_function: returning to ‘fip_socket’ from ‘fip_socket_sanmac’
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/fip.c:220:12: branch_false: following ‘false’ branch...
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/fip.c:225:12: branch_false: ...to here
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/fip.c:228:14: acquire_resource: socket created here
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/fip.c:229:12: branch_true: following ‘true’ branch (when ‘rc < 0’)...
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/fip.c:230:17: branch_true: ...to here
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/fip.c:230:17: throw: if ‘sa_log_err’ throws an exception...
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/fip.c:230:17: danger: ‘s’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def53]
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/fip.c:231:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘s’
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/fip.c:203:5: enter_function: entry to ‘fip_socket’
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/fip.c:213:13: acquire_resource: socket created here
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/fip.c:214:12: branch_false: following ‘false’ branch (when ‘s >= 0’)...
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/fip.c:219:14: branch_false: ...to here
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/fip.c:219:14: call_function: calling ‘fip_socket_sanmac’ from ‘fip_socket’
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/fip.c:219:14: return_function: returning to ‘fip_socket’ from ‘fip_socket_sanmac’
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/fip.c:220:12: branch_false: following ‘false’ branch...
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/fip.c:225:12: branch_false: ...to here
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/fip.c:228:14: acquire_resource: socket created here
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/fip.c:229:12: branch_true: following ‘true’ branch (when ‘rc < 0’)...
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/fip.c:230:17: branch_true: ...to here
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/fip.c:231:17: throw: if ‘close’ throws an exception...
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/fip.c:231:17: danger: ‘s’ leaks here
Error: CPPCHECK_WARNING (CWE-457): [#def54]
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/fip.c:371: error[uninitvar]: Uninitialized variable: eh
Error: GCC_ANALYZER_WARNING (CWE-775): [#def55]
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/rtnetlink.c:73:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘s’
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/rtnetlink.c:482:5: enter_function: entry to ‘rtnl_get_sanmac’
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/rtnetlink.c:511:9: call_function: calling ‘add_rtattr’ from ‘rtnl_get_sanmac’
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/rtnetlink.c:511:9: return_function: returning to ‘rtnl_get_sanmac’ from ‘add_rtattr’
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/rtnetlink.c:513:13: call_function: calling ‘rtnl_socket’ from ‘rtnl_get_sanmac’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def56]
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/rtnetlink.c:74:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘s’
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/rtnetlink.c:482:5: enter_function: entry to ‘rtnl_get_sanmac’
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/rtnetlink.c:511:9: call_function: calling ‘add_rtattr’ from ‘rtnl_get_sanmac’
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/rtnetlink.c:511:9: return_function: returning to ‘rtnl_get_sanmac’ from ‘add_rtattr’
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/rtnetlink.c:513:13: call_function: calling ‘rtnl_socket’ from ‘rtnl_get_sanmac’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def57]
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/rtnetlink.c:102:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘s’
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/rtnetlink.c:452:5: enter_function: entry to ‘rtnl_find_vlan’
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/rtnetlink.c:462:13: acquire_resource: datagram socket created here
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/rtnetlink.c:463:12: branch_false: following ‘false’ branch (when ‘s >= 0’)...
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/rtnetlink.c:465:14: branch_false: ...to here
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/rtnetlink.c:465:14: call_function: calling ‘send_getlink_dump’ from ‘rtnl_find_vlan’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def58]
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/rtnetlink.c:103:14: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘s’
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/rtnetlink.c:452:5: enter_function: entry to ‘rtnl_find_vlan’
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/rtnetlink.c:462:13: acquire_resource: datagram socket created here
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/rtnetlink.c:463:12: branch_false: following ‘false’ branch (when ‘s >= 0’)...
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/rtnetlink.c:465:14: branch_false: ...to here
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/rtnetlink.c:465:14: call_function: calling ‘send_getlink_dump’ from ‘rtnl_find_vlan’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def59]
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/rtnetlink.c:317:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘s’
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/rtnetlink.c:325:5: enter_function: entry to ‘vlan_create’
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/rtnetlink.c:330:13: acquire_resource: datagram socket created here
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/rtnetlink.c:331:12: branch_false: following ‘false’ branch (when ‘s >= 0’)...
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/rtnetlink.c:334:14: branch_false: ...to here
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/rtnetlink.c:334:14: call_function: calling ‘rtnl_send_vlan_newlink’ from ‘vlan_create’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def60]
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/rtnetlink.c:318:14: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘s’
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/rtnetlink.c:325:5: enter_function: entry to ‘vlan_create’
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/rtnetlink.c:330:13: acquire_resource: datagram socket created here
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/rtnetlink.c:331:12: branch_false: following ‘false’ branch (when ‘s >= 0’)...
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/rtnetlink.c:334:14: branch_false: ...to here
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/rtnetlink.c:334:14: call_function: calling ‘rtnl_send_vlan_newlink’ from ‘vlan_create’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def61]
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/rtnetlink.c:368:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘s’
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/rtnetlink.c:390:5: enter_function: entry to ‘rtnl_get_linkname’
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/rtnetlink.c:395:13: acquire_resource: datagram socket created here
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/rtnetlink.c:396:12: branch_false: following ‘false’ branch (when ‘s >= 0’)...
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/rtnetlink.c:398:14: branch_false: ...to here
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/rtnetlink.c:398:14: call_function: calling ‘rtnl_send_getlink’ from ‘rtnl_get_linkname’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def62]
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/rtnetlink.c:369:14: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘s’
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/rtnetlink.c:390:5: enter_function: entry to ‘rtnl_get_linkname’
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/rtnetlink.c:395:13: acquire_resource: datagram socket created here
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/rtnetlink.c:396:12: branch_false: following ‘false’ branch (when ‘s >= 0’)...
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/rtnetlink.c:398:14: branch_false: ...to here
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/rtnetlink.c:398:14: call_function: calling ‘rtnl_send_getlink’ from ‘rtnl_get_linkname’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def63]
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/rtnetlink.c:398:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘s’
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/rtnetlink.c:390:5: enter_function: entry to ‘rtnl_get_linkname’
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/rtnetlink.c:395:13: acquire_resource: datagram socket created here
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/rtnetlink.c:396:12: branch_false: following ‘false’ branch (when ‘s >= 0’)...
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/rtnetlink.c:398:14: branch_false: ...to here
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/rtnetlink.c:398:14: call_function: calling ‘rtnl_send_getlink’ from ‘rtnl_get_linkname’
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/rtnetlink.c:398:14: return_function: returning to ‘rtnl_get_linkname’ from ‘rtnl_send_getlink’
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/rtnetlink.c:399:12: branch_true: following ‘true’ branch...
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/rtnetlink.c:399:12: branch_true: ...to here
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/rtnetlink.c:398:9: danger: ‘s’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def64]
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/rtnetlink.c:519:34: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘rtnl_socket(0)’
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/rtnetlink.c:482:5: enter_function: entry to ‘rtnl_get_sanmac’
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/rtnetlink.c:511:9: call_function: calling ‘add_rtattr’ from ‘rtnl_get_sanmac’
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/rtnetlink.c:511:9: return_function: returning to ‘rtnl_get_sanmac’ from ‘add_rtattr’
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/rtnetlink.c:513:13: call_function: calling ‘rtnl_socket’ from ‘rtnl_get_sanmac’
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/rtnetlink.c:513:13: return_function: returning to ‘rtnl_get_sanmac’ from ‘rtnl_socket’
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/rtnetlink.c:514:12: branch_false: following ‘false’ branch...
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/rtnetlink.c:519:34: branch_false: ...to here
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/rtnetlink.c:519:14: throw: if ‘send’ throws an exception...
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/rtnetlink.c:519:34: danger: ‘rtnl_socket(0)’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-401): [#def65]
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/sa_sys.c:177:30: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(dir_name)’
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/sa_sys.c:173:15: acquire_memory: allocated here
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/sa_sys.c:174:12: branch_false: following ‘false’ branch...
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/sa_sys.c:174:12: branch_false: ...to here
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/sa_sys.c:177:30: throw: if ‘readdir’ throws an exception...
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/sa_sys.c:177:30: danger: ‘opendir(dir_name)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-688): [#def66]
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/sysfs_hba.c:62:14: warning[-Wanalyzer-null-argument]: use of NULL ‘host’ where non-null expected
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/sysfs_hba.c:56:12: branch_false: following ‘false’ branch (when ‘ret != -1’)...
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/sysfs_hba.c:59:16: branch_false: ...to here
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/sysfs_hba.c:62:14: danger: argument 1 (‘host’) NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-688): [#def67]
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/sysfs_hba.c:62:29: warning[-Wanalyzer-null-argument]: use of NULL ‘rport’ where non-null expected
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/sysfs_hba.c:56:12: branch_false: following ‘false’ branch (when ‘ret != -1’)...
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/sysfs_hba.c:59:16: branch_false: ...to here
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/sysfs_hba.c:62:29: danger: argument 1 (‘rport’) NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-688): [#def68]
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/sysfs_hba.c:81:15: warning[-Wanalyzer-null-argument]: use of NULL ‘rport’ where non-null expected
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/sysfs_hba.c:75:12: branch_false: following ‘false’ branch (when ‘ret != -1’)...
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/sysfs_hba.c:78:18: branch_false: ...to here
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/sysfs_hba.c:81:15: danger: argument 1 (‘rport’) NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-688): [#def69]
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/sysfs_hba.c:81:31: warning[-Wanalyzer-null-argument]: use of NULL ‘target’ where non-null expected
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/sysfs_hba.c:75:12: branch_false: following ‘false’ branch (when ‘ret != -1’)...
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/sysfs_hba.c:78:18: branch_false: ...to here
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/sysfs_hba.c:81:31: danger: argument 1 (‘target’) NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-401): [#def70]
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/sysfs_hba.c:213:17: warning[-Wanalyzer-malloc-leak]: leak of ‘info’
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/sysfs_hba.c:268:18: enter_function: entry to ‘get_hbainfo_by_pcidev’
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/sysfs_hba.c:277:12: branch_false: following ‘false’ branch...
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/sysfs_hba.c:280:16: branch_false: ...to here
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/sysfs_hba.c:280:16: acquire_memory: allocated here
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/sysfs_hba.c:281:12: branch_false: following ‘false’ branch (when ‘info’ is non-NULL)...
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/sysfs_hba.c:284:9: branch_false: ...to here
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/sysfs_hba.c:288:12: branch_false: following ‘false’ branch...
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/sysfs_hba.c:288:12: branch_false: ...to here
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/sysfs_hba.c:295:20: branch_false: following ‘false’ branch...
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/sysfs_hba.c:297:17: branch_false: ...to here
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/sysfs_hba.c:297:17: call_function: calling ‘get_pci_device_info’ from ‘get_hbainfo_by_pcidev’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def71]
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/sysfs_hba.c:287:20: warning[-Wanalyzer-malloc-leak]: leak of ‘info’
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/sysfs_hba.c:277:12: branch_false: following ‘false’ branch...
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/sysfs_hba.c:280:16: branch_false: ...to here
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/sysfs_hba.c:280:16: acquire_memory: allocated here
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/sysfs_hba.c:281:12: branch_false: following ‘false’ branch (when ‘info’ is non-NULL)...
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/sysfs_hba.c:284:9: branch_false: ...to here
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/sysfs_hba.c:287:20: throw: if ‘pci_slot_match_iterator_create’ throws an exception...
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/sysfs_hba.c:287:20: danger: ‘info’ leaks here; was allocated at [(3)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def72]
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/sysfs_hba.c:294:23: warning[-Wanalyzer-malloc-leak]: leak of ‘info’
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/sysfs_hba.c:277:12: branch_false: following ‘false’ branch...
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/sysfs_hba.c:280:16: branch_false: ...to here
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/sysfs_hba.c:280:16: acquire_memory: allocated here
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/sysfs_hba.c:281:12: branch_false: following ‘false’ branch (when ‘info’ is non-NULL)...
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/sysfs_hba.c:284:9: branch_false: ...to here
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/sysfs_hba.c:288:12: branch_false: following ‘false’ branch...
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/sysfs_hba.c:288:12: branch_false: ...to here
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/sysfs_hba.c:294:23: throw: if ‘pci_device_next’ throws an exception...
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/sysfs_hba.c:294:23: danger: ‘info’ leaks here; was allocated at [(3)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def73]
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/sysfs_hba.c:302:9: warning[-Wanalyzer-malloc-leak]: leak of ‘info’
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/sysfs_hba.c:277:12: branch_false: following ‘false’ branch...
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/sysfs_hba.c:280:16: branch_false: ...to here
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/sysfs_hba.c:280:16: acquire_memory: allocated here
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/sysfs_hba.c:281:12: branch_false: following ‘false’ branch (when ‘info’ is non-NULL)...
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/sysfs_hba.c:284:9: branch_false: ...to here
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/sysfs_hba.c:288:12: branch_false: following ‘false’ branch...
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/sysfs_hba.c:288:12: branch_false: ...to here
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/sysfs_hba.c:295:20: branch_true: following ‘true’ branch...
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/sysfs_hba.c:301:9: branch_true: ...to here
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/sysfs_hba.c:302:9: throw: if ‘pci_system_cleanup’ throws an exception...
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/sysfs_hba.c:302:9: danger: ‘info’ leaks here; was allocated at [(3)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def74]
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/sysfs_hba.c:359:9: warning[-Wanalyzer-malloc-leak]: leak of ‘ps’
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/sysfs_hba.c:352:12: branch_false: following ‘false’ branch...
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/sysfs_hba.c:355:14: branch_false: ...to here
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/sysfs_hba.c:355:14: acquire_memory: allocated here
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/sysfs_hba.c:356:12: branch_false: following ‘false’ branch (when ‘ps’ is non-NULL)...
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/sysfs_hba.c:360:25: branch_false: ...to here
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/sysfs_hba.c:359:9: throw: if ‘sa_sys_read_u64’ throws an exception...
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/sysfs_hba.c:359:9: danger: ‘ps’ leaks here; was allocated at [(3)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-457): [#def75]
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/sysfs_hba.c:482:15: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘func’
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/sysfs_hba.c:437:12: branch_false: following ‘false’ branch...
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/sysfs_hba.c:440:15: branch_false: ...to here
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/sysfs_hba.c:442:12: branch_false: following ‘false’ branch (when ‘ret != -1’)...
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/sysfs_hba.c:442:12: branch_false: ...to here
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/sysfs_hba.c:472:20: branch_true: following ‘true’ branch (when ‘cp’ is NULL)...
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/sysfs_hba.c:482:15: branch_true: ...to here
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/sysfs_hba.c:482:15: danger: use of uninitialized value ‘func’ here
Error: GCC_ANALYZER_WARNING (CWE-401): [#def76]
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/sysfs_hba.c:502:19: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir("/sys/class/fc_host")’
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/sysfs_hba.c:498:15: acquire_memory: allocated here
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/sysfs_hba.c:499:12: branch_false: following ‘false’ branch...
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/sysfs_hba.c:502:19: branch_false: ...to here
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/sysfs_hba.c:502:19: throw: if ‘readdir’ throws an exception...
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/sysfs_hba.c:502:19: danger: ‘opendir("/sys/class/fc_host")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def77]
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/sysfs_hba.c:520:9: warning[-Wanalyzer-malloc-leak]: leak of ‘host’
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/sysfs_hba.c:499:12: branch_false: following ‘false’ branch...
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/sysfs_hba.c:502:19: branch_false: ...to here
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/sysfs_hba.c:502:33: branch_true: following ‘true’ branch (when ‘dp’ is non-NULL)...
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/sysfs_hba.c:503:21: branch_true: ...to here
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/sysfs_hba.c:516:24: acquire_memory: allocated here
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/sysfs_hba.c:520:9: throw: if ‘closedir’ throws an exception...
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/sysfs_hba.c:520:9: danger: ‘host’ leaks here; was allocated at [(5)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def78]
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/sysfs_hba.c:537:19: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir("/sys/class/fc_host")’
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/sysfs_hba.c:533:15: acquire_memory: allocated here
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/sysfs_hba.c:534:12: branch_false: following ‘false’ branch...
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/sysfs_hba.c:537:19: branch_false: ...to here
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/sysfs_hba.c:537:19: throw: if ‘readdir’ throws an exception...
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/sysfs_hba.c:537:19: danger: ‘opendir("/sys/class/fc_host")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def79]
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/sysfs_hba.c:554:9: warning[-Wanalyzer-malloc-leak]: leak of ‘host’
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/sysfs_hba.c:534:12: branch_false: following ‘false’ branch...
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/sysfs_hba.c:537:19: branch_false: ...to here
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/sysfs_hba.c:537:33: branch_true: following ‘true’ branch (when ‘dp’ is non-NULL)...
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/sysfs_hba.c:538:21: branch_true: ...to here
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/sysfs_hba.c:550:24: acquire_memory: allocated here
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/sysfs_hba.c:554:9: throw: if ‘closedir’ throws an exception...
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/sysfs_hba.c:554:9: danger: ‘host’ leaks here; was allocated at [(5)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def80]
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/sysfs_hba.c:571:19: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir("/sys/class/fc_remote_ports")’
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/sysfs_hba.c:567:15: acquire_memory: allocated here
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/sysfs_hba.c:568:12: branch_false: following ‘false’ branch...
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/sysfs_hba.c:571:19: branch_false: ...to here
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/sysfs_hba.c:571:19: throw: if ‘readdir’ throws an exception...
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/sysfs_hba.c:571:19: danger: ‘opendir("/sys/class/fc_remote_ports")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def81]
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/sysfs_hba.c:588:9: warning[-Wanalyzer-malloc-leak]: leak of ‘rport’
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/sysfs_hba.c:568:12: branch_false: following ‘false’ branch...
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/sysfs_hba.c:571:19: branch_false: ...to here
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/sysfs_hba.c:571:33: branch_true: following ‘true’ branch (when ‘dp’ is non-NULL)...
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/sysfs_hba.c:572:21: branch_true: ...to here
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/sysfs_hba.c:584:25: acquire_memory: allocated here
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/sysfs_hba.c:588:9: throw: if ‘closedir’ throws an exception...
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/sysfs_hba.c:588:9: danger: ‘rport’ leaks here; was allocated at [(5)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def82]
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/sysfs_hba.c:607:19: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(&path)’
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/sysfs_hba.c:603:15: acquire_memory: allocated here
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/sysfs_hba.c:604:12: branch_false: following ‘false’ branch...
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/sysfs_hba.c:607:19: branch_false: ...to here
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/sysfs_hba.c:607:19: throw: if ‘readdir’ throws an exception...
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/sysfs_hba.c:607:19: danger: ‘opendir(&path)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def83]
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/sysfs_hba.c:645:9: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(path)’
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/sysfs_hba.c:626:7: enter_function: entry to ‘get_host_from_netdev’
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/sysfs_hba.c:635:20: call_function: calling ‘get_ctlr_num’ from ‘get_host_from_netdev’
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/sysfs_hba.c:635:20: return_function: returning to ‘get_host_from_netdev’ from ‘get_ctlr_num’
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/sysfs_hba.c:636:12: branch_false: following ‘false’ branch...
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/sysfs_hba.c:639:15: call_function: inlined call to ‘asprintf’ from ‘get_host_from_netdev’
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/sysfs_hba.c:641:12: branch_false: following ‘false’ branch...
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/sysfs_hba.c:644:15: branch_false: ...to here
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/sysfs_hba.c:644:15: acquire_memory: allocated here
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/sysfs_hba.c:648:12: branch_false: following ‘false’ branch...
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/sysfs_hba.c:651:19: branch_false: ...to here
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/sysfs_hba.c:651:19: throw: if ‘readdir’ throws an exception...
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/sysfs_hba.c:645:9: danger: ‘opendir(path)’ leaks here; was allocated at [(15)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/14)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def84]
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/sysfs_hba.c:693:19: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir("/sys/class/fc_host")’
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/sysfs_hba.c:689:15: acquire_memory: allocated here
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/sysfs_hba.c:690:12: branch_false: following ‘false’ branch...
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/sysfs_hba.c:693:19: branch_false: ...to here
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/sysfs_hba.c:693:19: throw: if ‘readdir’ throws an exception...
fcoe-utils-b233050792cc5fa54ba1da257706ca2b5ef3c987/lib/sysfs_hba.c:693:19: danger: ‘opendir("/sys/class/fc_host")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/0)
Scan Properties
| analyzer-version-clippy | 1.92.0 |
| analyzer-version-cppcheck | 2.19.1 |
| analyzer-version-gcc | 16.0.0 |
| analyzer-version-gcc-analyzer | 16.0.0 |
| analyzer-version-shellcheck | 0.11.0 |
| analyzer-version-unicontrol | 0.0.2 |
| enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| exit-code | 0 |
| host | ip-172-16-1-244.us-west-2.compute.internal |
| known-false-positives | /usr/share/csmock/known-false-positives.js |
| known-false-positives-rpm | known-false-positives-0.0.0.20250521.132812.g8eff701.main-1.el9.noarch |
| mock-config | fedora-rawhide-x86_64 |
| project-name | fcoe-utils-1.0.34-13.gitb233050.fc44 |
| store-results-to | /tmp/tmpuael157i/fcoe-utils-1.0.34-13.gitb233050.fc44.tar.xz |
| time-created | 2026-01-08 16:13:47 |
| time-finished | 2026-01-08 16:15:03 |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,clippy,shellcheck,unicontrol' '-o' '/tmp/tmpuael157i/fcoe-utils-1.0.34-13.gitb233050.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpuael157i/fcoe-utils-1.0.34-13.gitb233050.fc44.src.rpm' |
| tool-version | csmock-3.8.3.20251215.161544.g62de9a5-1.el9 |