rdma-core-57.0-2.fc43
List of Findings
Error: SHELLCHECK_WARNING (CWE-88): [#def1]
/usr/bin/dump_lfts.sh:8:19: error[SC2068]: Double quote array expansions to avoid re-splitting elements.
Error: SHELLCHECK_WARNING (CWE-88): [#def2]
/usr/bin/dump_mfts.sh:8:22: error[SC2068]: Double quote array expansions to avoid re-splitting elements.
Error: SHELLCHECK_WARNING (CWE-156): [#def3]
/usr/bin/ibcheckerrors:6:14: warning[SC2046]: Quote this to prevent word splitting.
Error: SHELLCHECK_WARNING: [#def4]
/usr/bin/ibcheckerrors:16:17: warning[SC3048]: In POSIX sh, prefixing signal names with 'SIG' is undefined.
Error: SHELLCHECK_WARNING (CWE-563): [#def5]
/usr/bin/ibcheckerrors:22:1: warning[SC2034]: ntype appears unused. Verify use (or export if used externally).
Error: SHELLCHECK_WARNING (CWE-563): [#def6]
/usr/bin/ibcheckerrors:23:1: warning[SC2034]: nodeguid appears unused. Verify use (or export if used externally).
Error: SHELLCHECK_WARNING (CWE-156): [#def7]
/usr/bin/ibcheckerrs:6:14: warning[SC2046]: Quote this to prevent word splitting.
Error: SHELLCHECK_WARNING: [#def8]
/usr/bin/ibcheckerrs:20:8: warning[SC3037]: In POSIX sh, echo flags are undefined.
Error: SHELLCHECK_WARNING: [#def9]
/usr/bin/ibcheckerrs:29:7: warning[SC3037]: In POSIX sh, echo flags are undefined.
Error: SHELLCHECK_WARNING: [#def10]
/usr/bin/ibcheckerrs:143:15: warning[SC3037]: In POSIX sh, echo flags are undefined.
Error: SHELLCHECK_WARNING: [#def11]
/usr/bin/ibcheckerrs:148:8: warning[SC3037]: In POSIX sh, echo flags are undefined.
Error: SHELLCHECK_WARNING (CWE-563): [#def12]
/usr/bin/ibcheckerrs:152:2: warning[SC2034]: guid appears unused. Verify use (or export if used externally).
Error: SHELLCHECK_WARNING (CWE-563): [#def13]
/usr/bin/ibcheckerrs:155:7: warning[SC2034]: temp appears unused. Verify use (or export if used externally).
Error: SHELLCHECK_WARNING: [#def14]
/usr/bin/ibcheckerrs:156:8: warning[SC3037]: In POSIX sh, echo flags are undefined.
Error: SHELLCHECK_WARNING: [#def15]
/usr/bin/ibcheckerrs:168:8: warning[SC3037]: In POSIX sh, echo flags are undefined.
Error: SHELLCHECK_WARNING: [#def16]
/usr/bin/ibcheckerrs:231:8: warning[SC3037]: In POSIX sh, echo flags are undefined.
Error: SHELLCHECK_WARNING: [#def17]
/usr/bin/ibcheckerrs:236:7: warning[SC3037]: In POSIX sh, echo flags are undefined.
Error: SHELLCHECK_WARNING (CWE-156): [#def18]
/usr/bin/ibchecknet:6:14: warning[SC2046]: Quote this to prevent word splitting.
Error: SHELLCHECK_WARNING: [#def19]
/usr/bin/ibchecknet:16:17: warning[SC3048]: In POSIX sh, prefixing signal names with 'SIG' is undefined.
Error: SHELLCHECK_WARNING (CWE-563): [#def20]
/usr/bin/ibchecknet:21:1: warning[SC2034]: oldlid appears unused. Verify use (or export if used externally).
Error: SHELLCHECK_WARNING (CWE-457): [#def21]
/usr/bin/ibchecknet:82:74: warning[SC2154]: brief is referenced but not assigned.
Error: SHELLCHECK_WARNING (CWE-156): [#def22]
/usr/bin/ibchecknode:6:14: warning[SC2046]: Quote this to prevent word splitting.
Error: SHELLCHECK_WARNING: [#def23]
/usr/bin/ibchecknode:19:8: warning[SC3037]: In POSIX sh, echo flags are undefined.
Error: SHELLCHECK_WARNING: [#def24]
/usr/bin/ibchecknode:28:7: warning[SC3037]: In POSIX sh, echo flags are undefined.
Error: SHELLCHECK_WARNING: [#def25]
/usr/bin/ibchecknode:78:15: warning[SC3037]: In POSIX sh, echo flags are undefined.
Error: SHELLCHECK_WARNING: [#def26]
/usr/bin/ibchecknode:83:8: warning[SC3037]: In POSIX sh, echo flags are undefined.
Error: SHELLCHECK_WARNING (CWE-563): [#def27]
/usr/bin/ibchecknode:89:7: warning[SC2034]: temp appears unused. Verify use (or export if used externally).
Error: SHELLCHECK_WARNING: [#def28]
/usr/bin/ibchecknode:90:8: warning[SC3037]: In POSIX sh, echo flags are undefined.
Error: SHELLCHECK_WARNING: [#def29]
/usr/bin/ibchecknode:100:8: warning[SC3037]: In POSIX sh, echo flags are undefined.
Error: SHELLCHECK_WARNING: [#def30]
/usr/bin/ibchecknode:105:7: warning[SC3037]: In POSIX sh, echo flags are undefined.
Error: SHELLCHECK_WARNING (CWE-156): [#def31]
/usr/bin/ibcheckport:6:14: warning[SC2046]: Quote this to prevent word splitting.
Error: SHELLCHECK_WARNING: [#def32]
/usr/bin/ibcheckport:19:8: warning[SC3037]: In POSIX sh, echo flags are undefined.
Error: SHELLCHECK_WARNING: [#def33]
/usr/bin/ibcheckport:28:7: warning[SC3037]: In POSIX sh, echo flags are undefined.
Error: SHELLCHECK_WARNING: [#def34]
/usr/bin/ibcheckport:80:15: warning[SC3037]: In POSIX sh, echo flags are undefined.
Error: SHELLCHECK_WARNING: [#def35]
/usr/bin/ibcheckport:85:8: warning[SC3037]: In POSIX sh, echo flags are undefined.
Error: SHELLCHECK_WARNING (CWE-563): [#def36]
/usr/bin/ibcheckport:89:2: warning[SC2034]: guid appears unused. Verify use (or export if used externally).
Error: SHELLCHECK_WARNING (CWE-563): [#def37]
/usr/bin/ibcheckport:92:7: warning[SC2034]: temp appears unused. Verify use (or export if used externally).
Error: SHELLCHECK_WARNING: [#def38]
/usr/bin/ibcheckport:93:8: warning[SC3037]: In POSIX sh, echo flags are undefined.
Error: SHELLCHECK_WARNING (CWE-477): [#def39]
/usr/bin/ibcheckport:101:19: warning[SC2166]: Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.
Error: SHELLCHECK_WARNING: [#def40]
/usr/bin/ibcheckport:101:33: warning[SC3014]: In POSIX sh, == in place of = is undefined.
Error: SHELLCHECK_WARNING: [#def41]
/usr/bin/ibcheckport:149:8: warning[SC3037]: In POSIX sh, echo flags are undefined.
Error: SHELLCHECK_WARNING: [#def42]
/usr/bin/ibcheckport:154:7: warning[SC3037]: In POSIX sh, echo flags are undefined.
Error: SHELLCHECK_WARNING (CWE-156): [#def43]
/usr/bin/ibcheckportstate:6:14: warning[SC2046]: Quote this to prevent word splitting.
Error: SHELLCHECK_WARNING: [#def44]
/usr/bin/ibcheckportstate:19:8: warning[SC3037]: In POSIX sh, echo flags are undefined.
Error: SHELLCHECK_WARNING: [#def45]
/usr/bin/ibcheckportstate:28:7: warning[SC3037]: In POSIX sh, echo flags are undefined.
Error: SHELLCHECK_WARNING: [#def46]
/usr/bin/ibcheckportstate:80:15: warning[SC3037]: In POSIX sh, echo flags are undefined.
Error: SHELLCHECK_WARNING: [#def47]
/usr/bin/ibcheckportstate:85:8: warning[SC3037]: In POSIX sh, echo flags are undefined.
Error: SHELLCHECK_WARNING (CWE-563): [#def48]
/usr/bin/ibcheckportstate:89:2: warning[SC2034]: guid appears unused. Verify use (or export if used externally).
Error: SHELLCHECK_WARNING (CWE-563): [#def49]
/usr/bin/ibcheckportstate:92:7: warning[SC2034]: temp appears unused. Verify use (or export if used externally).
Error: SHELLCHECK_WARNING: [#def50]
/usr/bin/ibcheckportstate:93:8: warning[SC3037]: In POSIX sh, echo flags are undefined.
Error: SHELLCHECK_WARNING: [#def51]
/usr/bin/ibcheckportstate:136:8: warning[SC3037]: In POSIX sh, echo flags are undefined.
Error: SHELLCHECK_WARNING: [#def52]
/usr/bin/ibcheckportstate:141:7: warning[SC3037]: In POSIX sh, echo flags are undefined.
Error: SHELLCHECK_WARNING (CWE-156): [#def53]
/usr/bin/ibcheckportwidth:6:14: warning[SC2046]: Quote this to prevent word splitting.
Error: SHELLCHECK_WARNING: [#def54]
/usr/bin/ibcheckportwidth:19:8: warning[SC3037]: In POSIX sh, echo flags are undefined.
Error: SHELLCHECK_WARNING: [#def55]
/usr/bin/ibcheckportwidth:28:7: warning[SC3037]: In POSIX sh, echo flags are undefined.
Error: SHELLCHECK_WARNING: [#def56]
/usr/bin/ibcheckportwidth:80:15: warning[SC3037]: In POSIX sh, echo flags are undefined.
Error: SHELLCHECK_WARNING: [#def57]
/usr/bin/ibcheckportwidth:85:8: warning[SC3037]: In POSIX sh, echo flags are undefined.
Error: SHELLCHECK_WARNING (CWE-563): [#def58]
/usr/bin/ibcheckportwidth:89:2: warning[SC2034]: guid appears unused. Verify use (or export if used externally).
Error: SHELLCHECK_WARNING (CWE-563): [#def59]
/usr/bin/ibcheckportwidth:92:7: warning[SC2034]: temp appears unused. Verify use (or export if used externally).
Error: SHELLCHECK_WARNING: [#def60]
/usr/bin/ibcheckportwidth:93:8: warning[SC3037]: In POSIX sh, echo flags are undefined.
Error: SHELLCHECK_WARNING: [#def61]
/usr/bin/ibcheckportwidth:134:8: warning[SC3037]: In POSIX sh, echo flags are undefined.
Error: SHELLCHECK_WARNING: [#def62]
/usr/bin/ibcheckportwidth:139:7: warning[SC3037]: In POSIX sh, echo flags are undefined.
Error: SHELLCHECK_WARNING (CWE-156): [#def63]
/usr/bin/ibcheckstate:6:14: warning[SC2046]: Quote this to prevent word splitting.
Error: SHELLCHECK_WARNING: [#def64]
/usr/bin/ibcheckstate:16:17: warning[SC3048]: In POSIX sh, prefixing signal names with 'SIG' is undefined.
Error: SHELLCHECK_WARNING (CWE-563): [#def65]
/usr/bin/ibcheckstate:21:1: warning[SC2034]: ntype appears unused. Verify use (or export if used externally).
Error: SHELLCHECK_WARNING (CWE-563): [#def66]
/usr/bin/ibcheckstate:22:1: warning[SC2034]: nodeguid appears unused. Verify use (or export if used externally).
Error: SHELLCHECK_WARNING (CWE-563): [#def67]
/usr/bin/ibcheckstate:23:1: warning[SC2034]: oldlid appears unused. Verify use (or export if used externally).
Error: SHELLCHECK_WARNING (CWE-156): [#def68]
/usr/bin/ibcheckwidth:6:14: warning[SC2046]: Quote this to prevent word splitting.
Error: SHELLCHECK_WARNING: [#def69]
/usr/bin/ibcheckwidth:16:17: warning[SC3048]: In POSIX sh, prefixing signal names with 'SIG' is undefined.
Error: SHELLCHECK_WARNING (CWE-563): [#def70]
/usr/bin/ibcheckwidth:21:1: warning[SC2034]: ntype appears unused. Verify use (or export if used externally).
Error: SHELLCHECK_WARNING (CWE-563): [#def71]
/usr/bin/ibcheckwidth:22:1: warning[SC2034]: nodeguid appears unused. Verify use (or export if used externally).
Error: SHELLCHECK_WARNING (CWE-563): [#def72]
/usr/bin/ibcheckwidth:23:1: warning[SC2034]: oldlid appears unused. Verify use (or export if used externally).
Error: SHELLCHECK_WARNING (CWE-156): [#def73]
/usr/bin/ibclearcounters:6:14: warning[SC2046]: Quote this to prevent word splitting.
Error: SHELLCHECK_WARNING: [#def74]
/usr/bin/ibclearcounters:16:17: warning[SC3048]: In POSIX sh, prefixing signal names with 'SIG' is undefined.
Error: SHELLCHECK_WARNING (CWE-563): [#def75]
/usr/bin/ibclearcounters:19:1: warning[SC2034]: verbose appears unused. Verify use (or export if used externally).
Error: SHELLCHECK_WARNING (CWE-563): [#def76]
/usr/bin/ibclearcounters:20:1: warning[SC2034]: v appears unused. Verify use (or export if used externally).
Error: SHELLCHECK_WARNING (CWE-156): [#def77]
/usr/bin/ibclearerrors:6:14: warning[SC2046]: Quote this to prevent word splitting.
Error: SHELLCHECK_WARNING: [#def78]
/usr/bin/ibclearerrors:16:17: warning[SC3048]: In POSIX sh, prefixing signal names with 'SIG' is undefined.
Error: SHELLCHECK_WARNING (CWE-563): [#def79]
/usr/bin/ibclearerrors:19:1: warning[SC2034]: verbose appears unused. Verify use (or export if used externally).
Error: SHELLCHECK_WARNING (CWE-563): [#def80]
/usr/bin/ibclearerrors:20:1: warning[SC2034]: v appears unused. Verify use (or export if used externally).
Error: SHELLCHECK_WARNING (CWE-563): [#def81]
/usr/bin/ibclearerrors:21:1: warning[SC2034]: oldlid appears unused. Verify use (or export if used externally).
Error: SHELLCHECK_WARNING (CWE-156): [#def82]
/usr/bin/ibdatacounters:6:14: warning[SC2046]: Quote this to prevent word splitting.
Error: SHELLCHECK_WARNING: [#def83]
/usr/bin/ibdatacounters:16:17: warning[SC3048]: In POSIX sh, prefixing signal names with 'SIG' is undefined.
Error: SHELLCHECK_WARNING (CWE-563): [#def84]
/usr/bin/ibdatacounters:22:1: warning[SC2034]: ntype appears unused. Verify use (or export if used externally).
Error: SHELLCHECK_WARNING (CWE-563): [#def85]
/usr/bin/ibdatacounters:23:1: warning[SC2034]: nodeguid appears unused. Verify use (or export if used externally).
Error: SHELLCHECK_WARNING (CWE-156): [#def86]
/usr/bin/ibdatacounts:6:14: warning[SC2046]: Quote this to prevent word splitting.
Error: SHELLCHECK_WARNING: [#def87]
/usr/bin/ibdatacounts:20:8: warning[SC3037]: In POSIX sh, echo flags are undefined.
Error: SHELLCHECK_WARNING: [#def88]
/usr/bin/ibdatacounts:29:7: warning[SC3037]: In POSIX sh, echo flags are undefined.
Error: SHELLCHECK_WARNING: [#def89]
/usr/bin/ibdatacounts:99:8: warning[SC3037]: In POSIX sh, echo flags are undefined.
Error: SHELLCHECK_WARNING (CWE-563): [#def90]
/usr/bin/ibdatacounts:103:2: warning[SC2034]: guid appears unused. Verify use (or export if used externally).
Error: SHELLCHECK_WARNING (CWE-563): [#def91]
/usr/bin/ibdatacounts:106:7: warning[SC2034]: temp appears unused. Verify use (or export if used externally).
Error: SHELLCHECK_WARNING: [#def92]
/usr/bin/ibdatacounts:107:8: warning[SC3037]: In POSIX sh, echo flags are undefined.
Error: SHELLCHECK_WARNING: [#def93]
/usr/bin/ibdatacounts:116:15: warning[SC3037]: In POSIX sh, echo flags are undefined.
Error: SHELLCHECK_WARNING: [#def94]
/usr/bin/ibdatacounts:164:8: warning[SC3037]: In POSIX sh, echo flags are undefined.
Error: SHELLCHECK_WARNING: [#def95]
/usr/bin/ibdatacounts:169:7: warning[SC3037]: In POSIX sh, echo flags are undefined.
Error: SHELLCHECK_WARNING (CWE-156): [#def96]
/usr/bin/ibhosts:6:14: warning[SC2046]: Quote this to prevent word splitting.
Error: SHELLCHECK_WARNING (CWE-88): [#def97]
/usr/bin/ibnodes:5:17: error[SC2068]: Double quote array expansions to avoid re-splitting elements.
Error: SHELLCHECK_WARNING (CWE-88): [#def98]
/usr/bin/ibnodes:5:40: error[SC2068]: Double quote array expansions to avoid re-splitting elements.
Error: SHELLCHECK_WARNING (CWE-156): [#def99]
/usr/bin/ibrouters:6:14: warning[SC2046]: Quote this to prevent word splitting.
Error: SHELLCHECK_WARNING (CWE-569): [#def100]
/usr/bin/ibstatus:20:23: warning[SC2048]: Use "$@" (with quotes) to prevent whitespace problems.
Error: SHELLCHECK_WARNING (CWE-156): [#def101]
/usr/bin/ibstatus:28:24: warning[SC2046]: Quote this to prevent word splitting.
Error: SHELLCHECK_WARNING (CWE-156): [#def102]
/usr/bin/ibstatus:29:21: warning[SC2046]: Quote this to prevent word splitting.
Error: SHELLCHECK_WARNING (CWE-156): [#def103]
/usr/bin/ibstatus:30:20: warning[SC2046]: Quote this to prevent word splitting.
Error: SHELLCHECK_WARNING (CWE-156): [#def104]
/usr/bin/ibstatus:31:19: warning[SC2046]: Quote this to prevent word splitting.
Error: SHELLCHECK_WARNING (CWE-156): [#def105]
/usr/bin/ibstatus:32:23: warning[SC2046]: Quote this to prevent word splitting.
Error: SHELLCHECK_WARNING (CWE-156): [#def106]
/usr/bin/ibstatus:33:18: warning[SC2046]: Quote this to prevent word splitting.
Error: SHELLCHECK_WARNING (CWE-156): [#def107]
/usr/bin/ibstatus:34:23: warning[SC2046]: Quote this to prevent word splitting.
Error: SHELLCHECK_WARNING (CWE-156): [#def108]
/usr/bin/ibswitches:6:14: warning[SC2046]: Quote this to prevent word splitting.
Error: SHELLCHECK_WARNING: [#def109]
/usr/bin/set_nodedesc.sh:8:10: warning[SC3028]: In POSIX sh, HOSTNAME is undefined.
Error: SHELLCHECK_WARNING (CWE-398): [#def110]
/usr/bin/set_nodedesc.sh:14:1: warning[SC2113]: 'function' keyword is non-standard. Use 'foo()' instead of 'function foo'.
Error: SHELLCHECK_WARNING: [#def111]
/usr/bin/set_nodedesc.sh:21:48: warning[SC3028]: In POSIX sh, HOSTNAME is undefined.
Error: SHELLCHECK_WARNING (CWE-398): [#def112]
/usr/bin/set_nodedesc.sh:25:1: warning[SC2113]: 'function' keyword is non-standard. Use 'foo()' instead of 'function foo'.
Error: SHELLCHECK_WARNING (CWE-398): [#def113]
/usr/bin/set_nodedesc.sh:27:15: error[SC2045]: Iterating over ls output is fragile. Use globs.
Error: SHELLCHECK_WARNING: [#def114]
/usr/bin/set_nodedesc.sh:29:15: warning[SC3037]: In POSIX sh, echo flags are undefined.
Error: SHELLCHECK_WARNING: [#def115]
/usr/bin/set_nodedesc.sh:40:4: warning[SC2220]: Invalid flags are not handled. Add a *) case.
Error: SHELLCHECK_WARNING (CWE-398): [#def116]
/usr/bin/set_nodedesc.sh:52:12: error[SC2045]: Iterating over ls output is fragile. Use globs.
Error: SHELLCHECK_WARNING: [#def117]
/usr/bin/set_nodedesc.sh:54:12: warning[SC3037]: In POSIX sh, echo flags are undefined.
Error: SHELLCHECK_WARNING (CWE-477): [#def118]
/usr/lib/dracut/modules.d/05rdma/module-setup.sh:4:19: warning[SC2166]: Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.
Error: SHELLCHECK_WARNING (CWE-457): [#def119]
/usr/lib/dracut/modules.d/05rdma/module-setup.sh:26:19: warning[SC2154]: systemdsystemunitdir is referenced but not assigned.
Error: SHELLCHECK_WARNING (CWE-457): [#def120]
/usr/lib/dracut/modules.d/05rdma/module-setup.sh:33:25: warning[SC2154]: initdir is referenced but not assigned.
Error: SHELLCHECK_WARNING: [#def121]
/usr/lib/dracut/modules.d/05rdma/module-setup.sh:38:23: error[SC2283]: Remove spaces around = to assign (or use [ ] to compare, or quote '=' if literal).
Error: SHELLCHECK_WARNING (CWE-252): [#def122]
/usr/libexec/mlx4-setup.sh:4:1: warning[SC2164]: Use 'pushd ... || exit' or 'pushd ... || return' in case pushd fails.
Error: SHELLCHECK_WARNING (CWE-252): [#def123]
/usr/libexec/mlx4-setup.sh:10:2: warning[SC2164]: Use 'pushd ... || exit' or 'pushd ... || return' in case pushd fails.
Error: SHELLCHECK_WARNING (CWE-252): [#def124]
/usr/libexec/mlx4-setup.sh:20:4: warning[SC2164]: Use 'popd ... || exit' or 'popd ... || return' in case popd fails.
Error: SHELLCHECK_WARNING (CWE-477): [#def125]
/usr/libexec/mlx4-setup.sh:23:27: warning[SC2166]: Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.
Error: SHELLCHECK_WARNING (CWE-477): [#def126]
/usr/libexec/mlx4-setup.sh:28:31: warning[SC2166]: Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.
Error: SHELLCHECK_WARNING (CWE-477): [#def127]
/usr/libexec/mlx4-setup.sh:28:60: warning[SC2166]: Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.
Error: SHELLCHECK_WARNING (CWE-477): [#def128]
/usr/libexec/mlx4-setup.sh:33:28: warning[SC2166]: Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.
Error: SHELLCHECK_WARNING (CWE-252): [#def129]
/usr/libexec/mlx4-setup.sh:35:5: warning[SC2164]: Use 'popd ... || exit' or 'popd ... || return' in case popd fails.
Error: SHELLCHECK_WARNING (CWE-477): [#def130]
/usr/libexec/mlx4-setup.sh:39:27: warning[SC2166]: Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.
Error: SHELLCHECK_WARNING (CWE-477): [#def131]
/usr/libexec/mlx4-setup.sh:44:31: warning[SC2166]: Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.
Error: SHELLCHECK_WARNING (CWE-477): [#def132]
/usr/libexec/mlx4-setup.sh:44:60: warning[SC2166]: Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.
Error: SHELLCHECK_WARNING (CWE-477): [#def133]
/usr/libexec/mlx4-setup.sh:49:28: warning[SC2166]: Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.
Error: SHELLCHECK_WARNING (CWE-252): [#def134]
/usr/libexec/mlx4-setup.sh:53:3: warning[SC2164]: Use 'popd ... || exit' or 'popd ... || return' in case popd fails.
Error: SHELLCHECK_WARNING (CWE-477): [#def135]
/usr/libexec/mlx4-setup.sh:60:29: warning[SC2166]: Prefer [ p ] || [ q ] as [ p -o q ] is not well defined.
Error: SHELLCHECK_WARNING (CWE-477): [#def136]
/usr/libexec/mlx4-setup.sh:68:29: warning[SC2166]: Prefer [ p ] || [ q ] as [ p -o q ] is not well defined.
Error: SHELLCHECK_WARNING (CWE-477): [#def137]
/usr/libexec/mlx4-setup.sh:76:29: warning[SC2166]: Prefer [ p ] || [ q ] as [ p -o q ] is not well defined.
Error: SHELLCHECK_WARNING (CWE-252): [#def138]
/usr/libexec/mlx4-setup.sh:80:2: warning[SC2164]: Use 'popd ... || exit' or 'popd ... || return' in case popd fails.
Error: SHELLCHECK_WARNING (CWE-477): [#def139]
/usr/libexec/mlx4-setup.sh:88:28: warning[SC2166]: Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.
Error: SHELLCHECK_WARNING (CWE-252): [#def140]
/usr/libexec/mlx4-setup.sh:91:1: warning[SC2164]: Use 'popd ... || exit' or 'popd ... || return' in case popd fails.
Error: SHELLCHECK_WARNING (CWE-138): [#def141]
/usr/libexec/truescale-serdes.cmds:61:15: error[SC2145]: Argument mixes string and array. Use * or separate argument.
Error: SHELLCHECK_WARNING (CWE-563): [#def142]
/usr/libexec/truescale-serdes.cmds:69:19: warning[SC2034]: bay_h1 appears unused. Verify use (or export if used externally).
Error: SHELLCHECK_WARNING (CWE-140): [#def143]
/usr/libexec/truescale-serdes.cmds:100:11: warning[SC2207]: Prefer mapfile or read -a to split command output (or quote to avoid splitting).
Error: SHELLCHECK_WARNING (CWE-457): [#def144]
/usr/libexec/truescale-serdes.cmds:169:38: warning[SC2154]: mez1_bus is referenced but not assigned (did you mean 'mez1bus'?).
Error: SHELLCHECK_WARNING (CWE-457): [#def145]
/usr/libexec/truescale-serdes.cmds:169:50: warning[SC2154]: mez2_bus is referenced but not assigned (did you mean 'mez2bus'?).
Error: SHELLCHECK_WARNING (CWE-457): [#def146]
/usr/libexec/truescale-serdes.cmds:169:62: warning[SC2154]: mez3_bus is referenced but not assigned (did you mean 'mez3bus'?).
Error: SHELLCHECK_WARNING (CWE-563): [#def147]
/usr/libexec/truescale-serdes.cmds:186:5: warning[SC2034]: bp0_idx appears unused. Verify use (or export if used externally).
Error: SHELLCHECK_WARNING (CWE-563): [#def148]
/usr/libexec/truescale-serdes.cmds:188:5: warning[SC2034]: bp1_idx appears unused. Verify use (or export if used externally).
Error: SHELLCHECK_WARNING (CWE-140): [#def149]
/usr/libexec/truescale-serdes.cmds:202:12: warning[SC2207]: Prefer mapfile or read -a to split command output (or quote to avoid splitting).
Error: SHELLCHECK_WARNING (CWE-477): [#def150]
/usr/libexec/truescale-serdes.cmds:207:22: warning[SC2166]: Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.
Error: GCC_ANALYZER_WARNING (CWE-126): [#def151]
rdma-core-57.0/ibacm/prov/acmp/src/acmp.c:2324:25: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
rdma-core-57.0/ibacm/prov/acmp/src/acmp.c:2298:12: branch_false: following ‘false’ branch...
branch_false: ...to here
rdma-core-57.0/ibacm/prov/acmp/src/acmp.c:2303:16: branch_true: following ‘true’ branch...
rdma-core-57.0/ibacm/prov/acmp/src/acmp.c:2304:21: branch_true: ...to here
rdma-core-57.0/ibacm/prov/acmp/src/acmp.c:2304:20: branch_false: following ‘false’ branch...
rdma-core-57.0/ibacm/prov/acmp/src/acmp.c:2307:21: branch_false: ...to here
rdma-core-57.0/ibacm/prov/acmp/src/acmp.c:2307:20: branch_false: following ‘false’ branch...
rdma-core-57.0/ibacm/prov/acmp/src/acmp.c:2310:17: branch_false: ...to here
rdma-core-57.0/ibacm/prov/acmp/src/acmp.c:2311:20: branch_false: following ‘false’ branch...
rdma-core-57.0/ibacm/prov/acmp/src/acmp.c:2315:17: branch_false: ...to here
rdma-core-57.0/ibacm/prov/acmp/src/acmp.c:2316:20: branch_false: following ‘false’ branch...
rdma-core-57.0/ibacm/prov/acmp/src/acmp.c:2319:28: branch_false: ...to here
rdma-core-57.0/ibacm/prov/acmp/src/acmp.c:2319:27: branch_false: following ‘false’ branch...
rdma-core-57.0/ibacm/prov/acmp/src/acmp.c:2324:25: branch_false: ...to here
rdma-core-57.0/ibacm/prov/acmp/src/acmp.c:2324:25: danger: out-of-bounds read from byte 46 till byte 63 but ‘addr’ ends at byte 46
Error: GCC_ANALYZER_WARNING (CWE-688): [#def152]
rdma-core-57.0/ibacm/src/acme.c:1026:14: warning[-Wanalyzer-null-argument]: use of NULL ‘arg’ where non-null expected
rdma-core-57.0/ibacm/src/acme.c:1041:5: enter_function: entry to ‘main’
rdma-core-57.0/ibacm/src/acme.c:1047:16: branch_true: following ‘true’ branch (when ‘op != -1’)...
rdma-core-57.0/ibacm/src/acme.c:1048:17: branch_true: ...to here
rdma-core-57.0/ibacm/src/acme.c:1086:29: call_function: inlined call to ‘opt_arg’ from ‘main’
rdma-core-57.0/ibacm/src/acme.c:1086:29: call_function: inlined call to ‘opt_arg’ from ‘main’
rdma-core-57.0/ibacm/src/acme.c:1086:28: branch_true: following ‘true’ branch...
rdma-core-57.0/ibacm/src/acme.c:1087:33: call_function: inlined call to ‘opt_arg’ from ‘main’
branch_false: ...to here
rdma-core-57.0/ibacm/src/acme.c:1087:33: call_function: calling ‘parse_perf_arg’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def153]
rdma-core-57.0/ibacm/src/parse.c:58:25: warning[-Wanalyzer-null-argument]: use of NULL ‘str_buf’ where non-null expected
rdma-core-57.0/ibacm/src/parse.c:73:8: enter_function: entry to ‘parse’
rdma-core-57.0/ibacm/src/parse.c:82:12: branch_false: following ‘false’ branch (when ‘cpy’ is non-NULL)...
rdma-core-57.0/ibacm/src/parse.c:85:13: branch_false: ...to here
rdma-core-57.0/ibacm/src/parse.c:85:12: branch_true: following ‘true’ branch...
rdma-core-57.0/ibacm/src/parse.c:86:17: branch_true: ...to here
rdma-core-57.0/ibacm/src/parse.c:94:12: branch_false: following ‘false’ branch (when ‘next’ is non-NULL)...
rdma-core-57.0/ibacm/src/parse.c:103:27: branch_false: ...to here
rdma-core-57.0/ibacm/src/parse.c:103:27: call_function: calling ‘expand’ from ‘parse’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def154]
rdma-core-57.0/ibacm/src/parse.c:62:25: warning[-Wanalyzer-malloc-leak]: leak of ‘str_buf’
rdma-core-57.0/ibacm/src/parse.c:73:8: enter_function: entry to ‘parse’
rdma-core-57.0/ibacm/src/parse.c:82:12: branch_false: following ‘false’ branch (when ‘cpy’ is non-NULL)...
rdma-core-57.0/ibacm/src/parse.c:85:13: branch_false: ...to here
rdma-core-57.0/ibacm/src/parse.c:85:12: branch_true: following ‘true’ branch...
rdma-core-57.0/ibacm/src/parse.c:86:17: branch_true: ...to here
rdma-core-57.0/ibacm/src/parse.c:94:12: branch_false: following ‘false’ branch (when ‘next’ is non-NULL)...
rdma-core-57.0/ibacm/src/parse.c:103:27: branch_false: ...to here
rdma-core-57.0/ibacm/src/parse.c:103:27: call_function: calling ‘expand’ from ‘parse’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def155]
rdma-core-57.0/ibacm/src/parse.c:95:28: warning[-Wanalyzer-null-argument]: use of NULL ‘token’ where non-null expected
rdma-core-57.0/ibacm/src/parse.c:82:12: branch_false: following ‘false’ branch (when ‘cpy’ is non-NULL)...
rdma-core-57.0/ibacm/src/parse.c:85:13: branch_false: ...to here
rdma-core-57.0/ibacm/src/parse.c:85:12: branch_false: following ‘false’ branch...
rdma-core-57.0/ibacm/src/parse.c:90:25: branch_false: ...to here
rdma-core-57.0/ibacm/src/parse.c:94:12: branch_true: following ‘true’ branch (when ‘next’ is NULL)...
rdma-core-57.0/ibacm/src/parse.c:95:28: branch_true: ...to here
rdma-core-57.0/ibacm/src/parse.c:95:28: danger: argument 1 (‘token’) NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-131): [#def156]
rdma-core-57.0/ibacm/src/parse.c:106:16: warning[-Wanalyzer-allocation-size]: allocated buffer size is not a multiple of the pointee's size
rdma-core-57.0/ibacm/src/parse.c:82:12: branch_false: following ‘false’ branch (when ‘cpy’ is non-NULL)...
rdma-core-57.0/ibacm/src/parse.c:85:13: branch_false: ...to here
rdma-core-57.0/ibacm/src/parse.c:85:12: branch_true: following ‘true’ branch...
rdma-core-57.0/ibacm/src/parse.c:86:17: branch_true: ...to here
rdma-core-57.0/ibacm/src/parse.c:94:12: branch_true: following ‘true’ branch (when ‘next’ is NULL)...
rdma-core-57.0/ibacm/src/parse.c:95:28: branch_true: ...to here
rdma-core-57.0/ibacm/src/parse.c:97:20: branch_false: following ‘false’ branch (when ‘str_buf’ is non-NULL)...
rdma-core-57.0/ibacm/src/parse.c:100:17: branch_false: ...to here
rdma-core-57.0/ibacm/src/parse.c:106:16: danger: allocated 17 bytes and assigned to ‘char **’ here; ‘sizeof (char *)’ is ‘8’
Error: GCC_ANALYZER_WARNING (CWE-122): [#def157]
rdma-core-57.0/ibacm/src/parse.c:115:9: warning[-Wanalyzer-out-of-bounds]: heap-based buffer overflow
rdma-core-57.0/ibacm/src/parse.c:73:8: enter_function: entry to ‘parse’
rdma-core-57.0/ibacm/src/parse.c:82:12: branch_false: following ‘false’ branch (when ‘cpy’ is non-NULL)...
rdma-core-57.0/ibacm/src/parse.c:85:13: branch_false: ...to here
rdma-core-57.0/ibacm/src/parse.c:85:12: branch_true: following ‘true’ branch...
rdma-core-57.0/ibacm/src/parse.c:86:17: branch_true: ...to here
rdma-core-57.0/ibacm/src/parse.c:94:12: branch_false: following ‘false’ branch (when ‘next’ is non-NULL)...
rdma-core-57.0/ibacm/src/parse.c:103:27: branch_false: ...to here
rdma-core-57.0/ibacm/src/parse.c:103:27: call_function: calling ‘expand’ from ‘parse’
rdma-core-57.0/ibacm/src/parse.c:103:27: return_function: returning to ‘parse’ from ‘expand’
rdma-core-57.0/ibacm/src/parse.c:107:12: branch_false: following ‘false’ branch (when ‘ptrs’ is non-NULL)...
rdma-core-57.0/ibacm/src/parse.c:110:21: branch_false: ...to here
rdma-core-57.0/ibacm/src/parse.c:113:21: branch_false: following ‘false’ branch...
rdma-core-57.0/ibacm/src/parse.c:115:13: branch_false: ...to here
rdma-core-57.0/ibacm/src/parse.c:115:9: danger: out-of-bounds write from byte 8 till byte 15 but region ends at byte 8
Error: CPPCHECK_WARNING (CWE-457): [#def158]
rdma-core-57.0/infiniband-diags/dump_fts.c:166: error[uninitvar]: Uninitialized variable: str
Error: GCC_ANALYZER_WARNING (CWE-121): [#def159]
rdma-core-57.0/infiniband-diags/ibdiag_common.c:897:17: warning[-Wanalyzer-out-of-bounds]: stack-based buffer overflow
rdma-core-57.0/infiniband-diags/ibdiag_common.c:915:6: enter_function: entry to ‘dump_portinfo’
rdma-core-57.0/infiniband-diags/ibdiag_common.c:921:39: branch_true: following ‘true’ branch (when ‘field != 74’)...
branch_true: ...to here
rdma-core-57.0/infiniband-diags/ibdiag_common.c:924:20: branch_true: following ‘true’ branch...
rdma-core-57.0/infiniband-diags/ibdiag_common.c:925:25: call_function: calling ‘snprint_field’ from ‘dump_portinfo’
Error: CPPCHECK_WARNING (CWE-401): [#def160]
rdma-core-57.0/infiniband-diags/ibdiag_sa.c:142: error[memleakOnRealloc]: Common realloc mistake: 'umad' nulled but not freed upon failure
Error: GCC_ANALYZER_WARNING (CWE-476): [#def161]
rdma-core-57.0/infiniband-diags/iblinkinfo.c:293:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘out_header_flag’
rdma-core-57.0/infiniband-diags/iblinkinfo.c:454:12: enter_function: entry to ‘diff_node’
rdma-core-57.0/infiniband-diags/iblinkinfo.c:464:12: branch_true: following ‘true’ branch (when ‘node’ is non-NULL)...
rdma-core-57.0/infiniband-diags/iblinkinfo.c:465:17: branch_true: ...to here
rdma-core-57.0/infiniband-diags/iblinkinfo.c:465:17: call_function: calling ‘diff_node_iter’ from ‘diff_node’
Error: GCC_ANALYZER_WARNING (CWE-787): [#def162]
rdma-core-57.0/infiniband-diags/ibnetdiscover.c:179:9: warning[-Wanalyzer-out-of-bounds]: buffer overflow
rdma-core-57.0/infiniband-diags/ibnetdiscover.c:538:12: enter_function: entry to ‘dump_topology’
rdma-core-57.0/infiniband-diags/ibnetdiscover.c:559:12: branch_true: following ‘true’ branch (when ‘group != 0’)...
rdma-core-57.0/infiniband-diags/ibnetdiscover.c:563:22: branch_true: ...to here
rdma-core-57.0/infiniband-diags/ibnetdiscover.c:563:44: branch_true: following ‘true’ branch (when ‘ch’ is non-NULL)...
rdma-core-57.0/infiniband-diags/ibnetdiscover.c:566:30: branch_true: ...to here
rdma-core-57.0/infiniband-diags/ibnetdiscover.c:566:28: branch_false: following ‘false’ branch...
rdma-core-57.0/infiniband-diags/ibnetdiscover.c:568:34: branch_false: ...to here
rdma-core-57.0/infiniband-diags/ibnetdiscover.c:583:37: branch_true: following ‘true’ branch (when ‘n != 19’)...
rdma-core-57.0/infiniband-diags/ibnetdiscover.c:584:37: branch_true: ...to here
rdma-core-57.0/infiniband-diags/ibnetdiscover.c:584:36: branch_true: following ‘true’ branch...
rdma-core-57.0/infiniband-diags/ibnetdiscover.c:585:41: branch_true: ...to here
rdma-core-57.0/infiniband-diags/ibnetdiscover.c:585:41: call_function: calling ‘out_switch’ from ‘dump_topology’
Error: GCC_ANALYZER_WARNING (CWE-479): [#def163]
rdma-core-57.0/infiniband-diags/ibping.c:153:9: warning[-Wanalyzer-unsafe-call-within-signal-handler]: call to ‘fprintf’ from within signal handler
rdma-core-57.0/infiniband-diags/ibping.c:195:5: enter_function: entry to ‘main’
rdma-core-57.0/infiniband-diags/ibping.c:221:12: branch_false: following ‘false’ branch...
rdma-core-57.0/infiniband-diags/ibping.c:224:19: branch_false: ...to here
rdma-core-57.0/infiniband-diags/ibping.c:225:12: branch_false: following ‘false’ branch...
rdma-core-57.0/infiniband-diags/ibping.c:228:13: branch_false: ...to here
rdma-core-57.0/infiniband-diags/ibping.c:228:12: branch_false: following ‘false’ branch...
rdma-core-57.0/infiniband-diags/ibping.c:240:13: branch_false: ...to here
rdma-core-57.0/infiniband-diags/ibping.c:240:12: branch_false: following ‘false’ branch...
rdma-core-57.0/infiniband-diags/ibping.c:244:13: branch_false: ...to here
rdma-core-57.0/infiniband-diags/ibping.c:244:12: branch_false: following ‘false’ branch...
rdma-core-57.0/infiniband-diags/ibping.c:248:9: branch_false: ...to here
rdma-core-57.0/infiniband-diags/ibping.c:149:13: enter_function: entry to ‘report’
rdma-core-57.0/infiniband-diags/ibping.c:153:9: branch_true: following ‘true’ branch...
rdma-core-57.0/infiniband-diags/ibping.c:153:9: branch_true: ...to here
rdma-core-57.0/infiniband-diags/ibping.c:153:9: danger: call to ‘fprintf’ from within signal handler
Error: GCC_ANALYZER_WARNING (CWE-479): [#def164]
rdma-core-57.0/infiniband-diags/ibping.c:155:9: warning[-Wanalyzer-unsafe-call-within-signal-handler]: call to ‘printf’ from within signal handler
rdma-core-57.0/infiniband-diags/ibping.c:195:5: enter_function: entry to ‘main’
rdma-core-57.0/infiniband-diags/ibping.c:221:12: branch_false: following ‘false’ branch...
rdma-core-57.0/infiniband-diags/ibping.c:224:19: branch_false: ...to here
rdma-core-57.0/infiniband-diags/ibping.c:225:12: branch_false: following ‘false’ branch...
rdma-core-57.0/infiniband-diags/ibping.c:228:13: branch_false: ...to here
rdma-core-57.0/infiniband-diags/ibping.c:228:12: branch_false: following ‘false’ branch...
rdma-core-57.0/infiniband-diags/ibping.c:240:13: branch_false: ...to here
rdma-core-57.0/infiniband-diags/ibping.c:240:12: branch_false: following ‘false’ branch...
rdma-core-57.0/infiniband-diags/ibping.c:244:13: branch_false: ...to here
rdma-core-57.0/infiniband-diags/ibping.c:244:12: branch_false: following ‘false’ branch...
rdma-core-57.0/infiniband-diags/ibping.c:248:9: branch_false: ...to here
rdma-core-57.0/infiniband-diags/ibping.c:149:13: enter_function: entry to ‘report’
rdma-core-57.0/infiniband-diags/ibping.c:155:9: danger: call to ‘printf’ from within signal handler
Error: GCC_ANALYZER_WARNING (CWE-479): [#def165]
rdma-core-57.0/infiniband-diags/ibping.c:157:9: warning[-Wanalyzer-unsafe-call-within-signal-handler]: call to ‘printf’ from within signal handler
rdma-core-57.0/infiniband-diags/ibping.c:195:5: enter_function: entry to ‘main’
rdma-core-57.0/infiniband-diags/ibping.c:221:12: branch_false: following ‘false’ branch...
rdma-core-57.0/infiniband-diags/ibping.c:224:19: branch_false: ...to here
rdma-core-57.0/infiniband-diags/ibping.c:225:12: branch_false: following ‘false’ branch...
rdma-core-57.0/infiniband-diags/ibping.c:228:13: branch_false: ...to here
rdma-core-57.0/infiniband-diags/ibping.c:228:12: branch_false: following ‘false’ branch...
rdma-core-57.0/infiniband-diags/ibping.c:240:13: branch_false: ...to here
rdma-core-57.0/infiniband-diags/ibping.c:240:12: branch_false: following ‘false’ branch...
rdma-core-57.0/infiniband-diags/ibping.c:244:13: branch_false: ...to here
rdma-core-57.0/infiniband-diags/ibping.c:244:12: branch_false: following ‘false’ branch...
rdma-core-57.0/infiniband-diags/ibping.c:248:9: branch_false: ...to here
rdma-core-57.0/infiniband-diags/ibping.c:149:13: enter_function: entry to ‘report’
rdma-core-57.0/infiniband-diags/ibping.c:157:9: branch_false: following ‘false’ branch...
rdma-core-57.0/infiniband-diags/ibping.c:157:9: branch_false: ...to here
rdma-core-57.0/infiniband-diags/ibping.c:157:9: danger: call to ‘printf’ from within signal handler
Error: GCC_ANALYZER_WARNING (CWE-479): [#def166]
rdma-core-57.0/infiniband-diags/ibping.c:160:9: warning[-Wanalyzer-unsafe-call-within-signal-handler]: call to ‘printf’ from within signal handler
rdma-core-57.0/infiniband-diags/ibping.c:195:5: enter_function: entry to ‘main’
rdma-core-57.0/infiniband-diags/ibping.c:221:12: branch_false: following ‘false’ branch...
rdma-core-57.0/infiniband-diags/ibping.c:224:19: branch_false: ...to here
rdma-core-57.0/infiniband-diags/ibping.c:225:12: branch_false: following ‘false’ branch...
rdma-core-57.0/infiniband-diags/ibping.c:228:13: branch_false: ...to here
rdma-core-57.0/infiniband-diags/ibping.c:228:12: branch_false: following ‘false’ branch...
rdma-core-57.0/infiniband-diags/ibping.c:240:13: branch_false: ...to here
rdma-core-57.0/infiniband-diags/ibping.c:240:12: branch_false: following ‘false’ branch...
rdma-core-57.0/infiniband-diags/ibping.c:244:13: branch_false: ...to here
rdma-core-57.0/infiniband-diags/ibping.c:244:12: branch_false: following ‘false’ branch...
rdma-core-57.0/infiniband-diags/ibping.c:248:9: branch_false: ...to here
rdma-core-57.0/infiniband-diags/ibping.c:149:13: enter_function: entry to ‘report’
rdma-core-57.0/infiniband-diags/ibping.c:157:9: branch_false: following ‘false’ branch...
rdma-core-57.0/infiniband-diags/ibping.c:157:9: branch_false: ...to here
rdma-core-57.0/infiniband-diags/ibping.c:160:9: branch_false: following ‘false’ branch...
rdma-core-57.0/infiniband-diags/ibping.c:160:9: danger: call to ‘printf’ from within signal handler
Error: GCC_ANALYZER_WARNING (CWE-479): [#def167]
rdma-core-57.0/infiniband-diags/ibping.c:168:9: warning[-Wanalyzer-unsafe-call-within-signal-handler]: call to ‘exit’ from within signal handler
rdma-core-57.0/infiniband-diags/ibping.c:195:5: enter_function: entry to ‘main’
rdma-core-57.0/infiniband-diags/ibping.c:221:12: branch_false: following ‘false’ branch...
rdma-core-57.0/infiniband-diags/ibping.c:224:19: branch_false: ...to here
rdma-core-57.0/infiniband-diags/ibping.c:225:12: branch_false: following ‘false’ branch...
rdma-core-57.0/infiniband-diags/ibping.c:228:13: branch_false: ...to here
rdma-core-57.0/infiniband-diags/ibping.c:228:12: branch_false: following ‘false’ branch...
rdma-core-57.0/infiniband-diags/ibping.c:240:13: branch_false: ...to here
rdma-core-57.0/infiniband-diags/ibping.c:240:12: branch_false: following ‘false’ branch...
rdma-core-57.0/infiniband-diags/ibping.c:244:13: branch_false: ...to here
rdma-core-57.0/infiniband-diags/ibping.c:244:12: branch_false: following ‘false’ branch...
rdma-core-57.0/infiniband-diags/ibping.c:248:9: branch_false: ...to here
rdma-core-57.0/infiniband-diags/ibping.c:149:13: enter_function: entry to ‘report’
rdma-core-57.0/infiniband-diags/ibping.c:157:9: branch_false: following ‘false’ branch...
rdma-core-57.0/infiniband-diags/ibping.c:157:9: branch_false: ...to here
rdma-core-57.0/infiniband-diags/ibping.c:160:9: branch_false: following ‘false’ branch...
rdma-core-57.0/infiniband-diags/ibping.c:168:9: danger: call to ‘exit’ from within signal handler
Error: GCC_ANALYZER_WARNING (CWE-465): [#def168]
rdma-core-57.0/infiniband-diags/ibqueryerrors.c:117:28: warning[-Wanalyzer-deref-before-check]: check of ‘threshold_str’ for NULL after already dereferencing it
rdma-core-57.0/infiniband-diags/ibqueryerrors.c:968:5: enter_function: entry to ‘main’
rdma-core-57.0/infiniband-diags/ibqueryerrors.c:1028:12: branch_true: following ‘true’ branch...
rdma-core-57.0/infiniband-diags/ibqueryerrors.c:1029:17: branch_true: ...to here
rdma-core-57.0/infiniband-diags/ibqueryerrors.c:1032:12: branch_false: following ‘false’ branch...
rdma-core-57.0/infiniband-diags/ibqueryerrors.c:1035:22: branch_false: ...to here
rdma-core-57.0/infiniband-diags/ibqueryerrors.c:1047:12: branch_false: following ‘false’ branch...
rdma-core-57.0/infiniband-diags/ibqueryerrors.c:1053:13: branch_false: ...to here
rdma-core-57.0/infiniband-diags/ibqueryerrors.c:1053:12: branch_false: following ‘false’ branch...
rdma-core-57.0/infiniband-diags/ibqueryerrors.c:1059:25: branch_false: ...to here
rdma-core-57.0/infiniband-diags/ibqueryerrors.c:1062:12: branch_false: following ‘false’ branch...
rdma-core-57.0/infiniband-diags/ibqueryerrors.c:1068:20: branch_false: ...to here
rdma-core-57.0/infiniband-diags/ibqueryerrors.c:1068:19: branch_false: following ‘false’ branch...
rdma-core-57.0/infiniband-diags/ibqueryerrors.c:1079:9: branch_false: ...to here
rdma-core-57.0/infiniband-diags/ibqueryerrors.c:1081:12: branch_false: following ‘false’ branch...
rdma-core-57.0/infiniband-diags/ibqueryerrors.c:1088:20: branch_false: ...to here
rdma-core-57.0/infiniband-diags/ibqueryerrors.c:1088:20: branch_false: following ‘false’ branch (when ‘resolved < 0’)...
rdma-core-57.0/infiniband-diags/ibqueryerrors.c:1097:43: branch_false: ...to here
rdma-core-57.0/infiniband-diags/ibqueryerrors.c:1097:21: branch_false: following ‘false’ branch...
rdma-core-57.0/infiniband-diags/ibqueryerrors.c:1107:9: branch_false: ...to here
rdma-core-57.0/infiniband-diags/ibqueryerrors.c:1107:9: call_function: calling ‘set_thresholds’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def169]
rdma-core-57.0/infiniband-diags/ibqueryerrors.c:143:12: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(threshold_file, "r")’
rdma-core-57.0/infiniband-diags/ibqueryerrors.c:968:5: enter_function: entry to ‘main’
rdma-core-57.0/infiniband-diags/ibqueryerrors.c:1028:12: branch_true: following ‘true’ branch...
rdma-core-57.0/infiniband-diags/ibqueryerrors.c:1029:17: branch_true: ...to here
rdma-core-57.0/infiniband-diags/ibqueryerrors.c:1032:12: branch_false: following ‘false’ branch...
rdma-core-57.0/infiniband-diags/ibqueryerrors.c:1035:22: branch_false: ...to here
rdma-core-57.0/infiniband-diags/ibqueryerrors.c:1047:12: branch_false: following ‘false’ branch...
rdma-core-57.0/infiniband-diags/ibqueryerrors.c:1053:13: branch_false: ...to here
rdma-core-57.0/infiniband-diags/ibqueryerrors.c:1053:12: branch_false: following ‘false’ branch...
rdma-core-57.0/infiniband-diags/ibqueryerrors.c:1059:25: branch_false: ...to here
rdma-core-57.0/infiniband-diags/ibqueryerrors.c:1062:12: branch_false: following ‘false’ branch...
rdma-core-57.0/infiniband-diags/ibqueryerrors.c:1068:20: branch_false: ...to here
rdma-core-57.0/infiniband-diags/ibqueryerrors.c:1068:19: branch_false: following ‘false’ branch...
rdma-core-57.0/infiniband-diags/ibqueryerrors.c:1079:9: branch_false: ...to here
rdma-core-57.0/infiniband-diags/ibqueryerrors.c:1081:12: branch_false: following ‘false’ branch...
rdma-core-57.0/infiniband-diags/ibqueryerrors.c:1088:20: branch_false: ...to here
rdma-core-57.0/infiniband-diags/ibqueryerrors.c:1088:20: branch_false: following ‘false’ branch (when ‘resolved < 0’)...
rdma-core-57.0/infiniband-diags/ibqueryerrors.c:1097:43: branch_false: ...to here
rdma-core-57.0/infiniband-diags/ibqueryerrors.c:1097:21: branch_false: following ‘false’ branch...
rdma-core-57.0/infiniband-diags/ibqueryerrors.c:1107:9: branch_false: ...to here
rdma-core-57.0/infiniband-diags/ibqueryerrors.c:1107:9: call_function: calling ‘set_thresholds’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def170]
rdma-core-57.0/infiniband-diags/ibqueryerrors.c:143:12: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(threshold_file, "r")’
rdma-core-57.0/infiniband-diags/ibqueryerrors.c:968:5: enter_function: entry to ‘main’
rdma-core-57.0/infiniband-diags/ibqueryerrors.c:1028:12: branch_true: following ‘true’ branch...
rdma-core-57.0/infiniband-diags/ibqueryerrors.c:1029:17: branch_true: ...to here
rdma-core-57.0/infiniband-diags/ibqueryerrors.c:1032:12: branch_false: following ‘false’ branch...
rdma-core-57.0/infiniband-diags/ibqueryerrors.c:1035:22: branch_false: ...to here
rdma-core-57.0/infiniband-diags/ibqueryerrors.c:1047:12: branch_false: following ‘false’ branch...
rdma-core-57.0/infiniband-diags/ibqueryerrors.c:1053:13: branch_false: ...to here
rdma-core-57.0/infiniband-diags/ibqueryerrors.c:1053:12: branch_false: following ‘false’ branch...
rdma-core-57.0/infiniband-diags/ibqueryerrors.c:1059:25: branch_false: ...to here
rdma-core-57.0/infiniband-diags/ibqueryerrors.c:1062:12: branch_false: following ‘false’ branch...
rdma-core-57.0/infiniband-diags/ibqueryerrors.c:1068:20: branch_false: ...to here
rdma-core-57.0/infiniband-diags/ibqueryerrors.c:1068:19: branch_false: following ‘false’ branch...
rdma-core-57.0/infiniband-diags/ibqueryerrors.c:1079:9: branch_false: ...to here
rdma-core-57.0/infiniband-diags/ibqueryerrors.c:1081:12: branch_false: following ‘false’ branch...
rdma-core-57.0/infiniband-diags/ibqueryerrors.c:1088:20: branch_false: ...to here
rdma-core-57.0/infiniband-diags/ibqueryerrors.c:1088:20: branch_false: following ‘false’ branch (when ‘resolved < 0’)...
rdma-core-57.0/infiniband-diags/ibqueryerrors.c:1097:43: branch_false: ...to here
rdma-core-57.0/infiniband-diags/ibqueryerrors.c:1097:21: branch_false: following ‘false’ branch...
rdma-core-57.0/infiniband-diags/ibqueryerrors.c:1107:9: branch_false: ...to here
rdma-core-57.0/infiniband-diags/ibqueryerrors.c:1107:9: call_function: calling ‘set_thresholds’ from ‘main’
Error: CPPCHECK_WARNING (CWE-457): [#def171]
rdma-core-57.0/infiniband-diags/ibroute.c:192: error[uninitvar]: Uninitialized variable: str
Error: CPPCHECK_WARNING (CWE-758): [#def172]
rdma-core-57.0/infiniband-diags/saquery.c:975: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
Error: CPPCHECK_WARNING (CWE-476): [#def173]
rdma-core-57.0/infiniband-diags/saquery.c:1530: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: src_lid
Error: GCC_ANALYZER_WARNING (CWE-688): [#def174]
rdma-core-57.0/infiniband-diags/saquery.c:1530:35: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘src_lid’ where non-null expected
rdma-core-57.0/infiniband-diags/saquery.c:1529:35: acquire_memory: this call could return NULL
rdma-core-57.0/infiniband-diags/saquery.c:1530:35: danger: argument 1 (‘strdup(optarg)’) from [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2) could be NULL where non-null expected
Error: CPPCHECK_WARNING (CWE-476): [#def175]
rdma-core-57.0/infiniband-diags/saquery.c:1541: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: src_addr
Error: GCC_ANALYZER_WARNING (CWE-688): [#def176]
rdma-core-57.0/infiniband-diags/saquery.c:1541:42: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘src_addr’ where non-null expected
rdma-core-57.0/infiniband-diags/saquery.c:1540:42: acquire_memory: this call could return NULL
rdma-core-57.0/infiniband-diags/saquery.c:1541:42: danger: argument 1 (‘src_addr’) from [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2) could be NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-476): [#def177]
rdma-core-57.0/infiniband-diags/saquery.c:1544:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘dst_addr’
rdma-core-57.0/infiniband-diags/saquery.c:1542:28: branch_true: following ‘true’ branch (when ‘dst_addr’ is NULL)...
rdma-core-57.0/infiniband-diags/saquery.c:1543:33: branch_true: ...to here
rdma-core-57.0/infiniband-diags/saquery.c:1544:25: danger: dereference of NULL ‘dst_addr’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def178]
rdma-core-57.0/iwpmd/iwarp_pm_helper.c:226:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘socket((int)addr_family, 1, 0)’
rdma-core-57.0/iwpmd/iwarp_pm_helper.c:193:21: acquire_resource: stream socket created here
rdma-core-57.0/iwpmd/iwarp_pm_helper.c:194:12: branch_false: following ‘false’ branch...
rdma-core-57.0/iwpmd/iwarp_pm_helper.c:199:9: branch_false: ...to here
rdma-core-57.0/iwpmd/iwarp_pm_helper.c:206:20: branch_false: following ‘false’ branch (when ‘requested_port == 0’)...
rdma-core-57.0/iwpmd/iwarp_pm_helper.c:208:17: branch_false: ...to here
rdma-core-57.0/iwpmd/iwarp_pm_helper.c:226:12: danger: ‘socket((int)addr_family, 1, 0)’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def179]
rdma-core-57.0/iwpmd/iwarp_pm_helper.c:293:16: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘new_sd’
rdma-core-57.0/iwpmd/iwarp_pm_helper.c:278:19: enter_function: entry to ‘create_iwpm_mapped_port’
rdma-core-57.0/iwpmd/iwarp_pm_helper.c:286:12: branch_false: following ‘false’ branch...
rdma-core-57.0/iwpmd/iwarp_pm_helper.c:289:39: branch_false: ...to here
rdma-core-57.0/iwpmd/iwarp_pm_helper.c:289:21: call_function: calling ‘get_iwpm_tcp_port’ from ‘create_iwpm_mapped_port’
rdma-core-57.0/iwpmd/iwarp_pm_helper.c:289:21: return_function: returning to ‘create_iwpm_mapped_port’ from ‘get_iwpm_tcp_port’
rdma-core-57.0/iwpmd/iwarp_pm_helper.c:289:20: branch_true: following ‘true’ branch...
rdma-core-57.0/iwpmd/iwarp_pm_helper.c:290:25: branch_true: ...to here
rdma-core-57.0/iwpmd/iwarp_pm_helper.c:293:16: danger: ‘new_sd’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def180]
rdma-core-57.0/iwpmd/iwarp_pm_helper.c:323:16: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘new_sd’
rdma-core-57.0/iwpmd/iwarp_pm_helper.c:306:19: enter_function: entry to ‘reopen_iwpm_mapped_port’
rdma-core-57.0/iwpmd/iwarp_pm_helper.c:314:12: branch_false: following ‘false’ branch...
rdma-core-57.0/iwpmd/iwarp_pm_helper.c:318:14: branch_false: ...to here
rdma-core-57.0/iwpmd/iwarp_pm_helper.c:318:12: branch_true: following ‘true’ branch...
rdma-core-57.0/iwpmd/iwarp_pm_helper.c:319:21: branch_true: ...to here
rdma-core-57.0/iwpmd/iwarp_pm_helper.c:319:21: call_function: calling ‘get_iwpm_tcp_port’ from ‘reopen_iwpm_mapped_port’
rdma-core-57.0/iwpmd/iwarp_pm_helper.c:319:21: return_function: returning to ‘reopen_iwpm_mapped_port’ from ‘get_iwpm_tcp_port’
rdma-core-57.0/iwpmd/iwarp_pm_helper.c:319:20: branch_false: following ‘false’ branch...
rdma-core-57.0/iwpmd/iwarp_pm_helper.c:322:21: branch_false: ...to here
rdma-core-57.0/iwpmd/iwarp_pm_helper.c:322:21: call_function: calling ‘get_iwpm_port’ from ‘reopen_iwpm_mapped_port’
rdma-core-57.0/iwpmd/iwarp_pm_helper.c:322:21: return_function: returning to ‘reopen_iwpm_mapped_port’ from ‘get_iwpm_port’
rdma-core-57.0/iwpmd/iwarp_pm_helper.c:323:16: danger: ‘new_sd’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-1341): [#def181]
rdma-core-57.0/iwpmd/iwarp_pm_helper.c:447:17: warning[-Wanalyzer-fd-double-close]: double ‘close’ of file descriptor ‘((iwpm_mapped_port)*((struct list_node *)iwpm_port)).sd’
rdma-core-57.0/iwpmd/iwarp_pm_helper.c:514:6: enter_function: entry to ‘free_iwpm_mapped_ports’
rdma-core-57.0/iwpmd/iwarp_pm_helper.c:518:29: call_function: inlined call to ‘list_pop_’ from ‘free_iwpm_mapped_ports’
rdma-core-57.0/iwpmd/iwarp_pm_helper.c:519:17: call_function: calling ‘free_iwpm_port’ from ‘free_iwpm_mapped_ports’
rdma-core-57.0/iwpmd/iwarp_pm_helper.c:519:17: return_function: returning to ‘free_iwpm_mapped_ports’ from ‘free_iwpm_port’
rdma-core-57.0/iwpmd/iwarp_pm_helper.c:518:29: call_function: inlined call to ‘list_pop_’ from ‘free_iwpm_mapped_ports’
rdma-core-57.0/iwpmd/iwarp_pm_helper.c:519:17: call_function: calling ‘free_iwpm_port’ from ‘free_iwpm_mapped_ports’
Error: CPPCHECK_WARNING (CWE-401): [#def182]
rdma-core-57.0/iwpmd/iwarp_pm_helper.c:508: error[memleak]: Memory leak: pending_msg
Error: GCC_ANALYZER_WARNING (CWE-476): [#def183]
rdma-core-57.0/libibmad/mad.c:132:31: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘drpath’
rdma-core-57.0/libibmad/mad.c:161:5: enter_function: entry to ‘mad_build_pkt’
rdma-core-57.0/libibmad/mad.c:192:13: branch_false: following ‘false’ branch...
rdma-core-57.0/libibmad/mad.c:192:13: branch_false: ...to here
rdma-core-57.0/libibmad/mad.c:192:13: call_function: calling ‘mad_encode’ from ‘mad_build_pkt’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def184]
rdma-core-57.0/libibmad/rpc.c:554:16: warning[-Wanalyzer-malloc-leak]: leak of ‘gsi’
rdma-core-57.0/libibmad/rpc.c:497:26: enter_function: entry to ‘mad_rpc_open_port2’
rdma-core-57.0/libibmad/rpc.c:505:12: branch_false: following ‘false’ branch (when ‘num_classes <= 255’)...
rdma-core-57.0/libibmad/rpc.c:511:13: branch_false: ...to here
rdma-core-57.0/libibmad/rpc.c:511:12: branch_false: following ‘false’ branch...
rdma-core-57.0/libibmad/rpc.c:517:27: branch_false: ...to here
rdma-core-57.0/libibmad/rpc.c:523:12: branch_false: following ‘false’ branch (when ‘smi’ is non-NULL)...
rdma-core-57.0/libibmad/rpc.c:527:9: branch_false: ...to here
rdma-core-57.0/libibmad/rpc.c:529:15: acquire_memory: allocated here
rdma-core-57.0/libibmad/rpc.c:530:12: branch_false: following ‘false’ branch (when ‘gsi’ is non-NULL)...
rdma-core-57.0/libibmad/rpc.c:534:9: branch_false: ...to here
rdma-core-57.0/libibmad/rpc.c:537:12: branch_false: following ‘false’ branch (when ‘ports_pair’ is non-NULL)...
rdma-core-57.0/libibmad/rpc.c:541:9: branch_false: ...to here
rdma-core-57.0/libibmad/rpc.c:545:13: call_function: calling ‘get_smi_gsi_pair’ from ‘mad_rpc_open_port2’
rdma-core-57.0/libibmad/rpc.c:545:13: return_function: returning to ‘mad_rpc_open_port2’ from ‘get_smi_gsi_pair’
rdma-core-57.0/libibmad/rpc.c:545:12: branch_false: following ‘false’ branch...
rdma-core-57.0/libibmad/rpc.c:552:16: branch_false: ...to here
rdma-core-57.0/libibmad/rpc.c:554:16: danger: ‘gsi’ leaks here; was allocated at [(8)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/7)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def185]
rdma-core-57.0/libibmad/rpc.c:554:16: warning[-Wanalyzer-malloc-leak]: leak of ‘smi’
rdma-core-57.0/libibmad/rpc.c:497:26: enter_function: entry to ‘mad_rpc_open_port2’
rdma-core-57.0/libibmad/rpc.c:505:12: branch_false: following ‘false’ branch (when ‘num_classes <= 255’)...
rdma-core-57.0/libibmad/rpc.c:511:13: branch_false: ...to here
rdma-core-57.0/libibmad/rpc.c:511:12: branch_false: following ‘false’ branch...
rdma-core-57.0/libibmad/rpc.c:517:27: branch_false: ...to here
rdma-core-57.0/libibmad/rpc.c:522:15: acquire_memory: allocated here
rdma-core-57.0/libibmad/rpc.c:523:12: branch_false: following ‘false’ branch (when ‘smi’ is non-NULL)...
rdma-core-57.0/libibmad/rpc.c:527:9: branch_false: ...to here
rdma-core-57.0/libibmad/rpc.c:530:12: branch_false: following ‘false’ branch (when ‘gsi’ is non-NULL)...
rdma-core-57.0/libibmad/rpc.c:534:9: branch_false: ...to here
rdma-core-57.0/libibmad/rpc.c:537:12: branch_false: following ‘false’ branch (when ‘ports_pair’ is non-NULL)...
rdma-core-57.0/libibmad/rpc.c:541:9: branch_false: ...to here
rdma-core-57.0/libibmad/rpc.c:545:13: call_function: calling ‘get_smi_gsi_pair’ from ‘mad_rpc_open_port2’
rdma-core-57.0/libibmad/rpc.c:545:13: return_function: returning to ‘mad_rpc_open_port2’ from ‘get_smi_gsi_pair’
rdma-core-57.0/libibmad/rpc.c:545:12: branch_false: following ‘false’ branch...
rdma-core-57.0/libibmad/rpc.c:552:16: branch_false: ...to here
rdma-core-57.0/libibmad/rpc.c:554:16: danger: ‘smi’ leaks here; was allocated at [(6)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/5)
Error: CPPCHECK_WARNING (CWE-476): [#def186]
rdma-core-57.0/libibnetdisc/ibnetdisc.c:263: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cbdata
Error: CPPCHECK_WARNING (CWE-476): [#def187]
rdma-core-57.0/libibnetdisc/ibnetdisc.c:264: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cbdata
Error: CPPCHECK_WARNING (CWE-476): [#def188]
rdma-core-57.0/libibnetdisc/ibnetdisc.c:312: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cbdata
Error: CPPCHECK_WARNING (CWE-476): [#def189]
rdma-core-57.0/libibnetdisc/ibnetdisc.c:313: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cbdata
Error: CPPCHECK_WARNING (CWE-476): [#def190]
rdma-core-57.0/libibnetdisc/ibnetdisc.c:423: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cbdata
Error: CPPCHECK_WARNING (CWE-476): [#def191]
rdma-core-57.0/libibnetdisc/ibnetdisc.c:424: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cbdata
Error: GCC_ANALYZER_WARNING (CWE-476): [#def192]
rdma-core-57.0/libibnetdisc/ibnetdisc.c:630:16: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
rdma-core-57.0/libibnetdisc/ibnetdisc.c:627:14: enter_function: entry to ‘ibnd_find_node_dr’
rdma-core-57.0/libibnetdisc/ibnetdisc.c:629:27: call_function: calling ‘ibnd_find_port_dr’ from ‘ibnd_find_node_dr’
rdma-core-57.0/libibnetdisc/ibnetdisc.c:629:27: return_function: returning to ‘ibnd_find_node_dr’ from ‘ibnd_find_port_dr’
rdma-core-57.0/libibnetdisc/ibnetdisc.c:630:16: danger: dereference of NULL ‘ibnd_find_port_dr(fabric, dr_str)’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def193]
rdma-core-57.0/libibnetdisc/tests/testleaks.c:110:32: warning[-Wanalyzer-malloc-leak]: leak of ‘from’
rdma-core-57.0/libibnetdisc/tests/testleaks.c:103:20: branch_false: following ‘false’ branch (when ‘ch != -1’)...
rdma-core-57.0/libibnetdisc/tests/testleaks.c:105:17: branch_false: ...to here
rdma-core-57.0/libibnetdisc/tests/testleaks.c:110:32: acquire_memory: allocated here
rdma-core-57.0/libibnetdisc/tests/testleaks.c:103:20: branch_false: following ‘false’ branch (when ‘ch != -1’)...
rdma-core-57.0/libibnetdisc/tests/testleaks.c:105:17: branch_false: ...to here
rdma-core-57.0/libibnetdisc/tests/testleaks.c:110:32: danger: ‘from’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: COMPILER_WARNING (CWE-126): [#def194]
rdma-core-57.0/libibverbs/cmd_fallback.c:296:13: warning[-Wstringop-overread]: ‘write’ reading 32 bytes from a region of size 24
rdma-core-57.0/libibverbs/kern-abi.h: scope_hint: In function ‘ibv_cmd_destroy_flow’
rdma-core-57.0/libibverbs/kern-abi.h:216:1: note: source object ‘hdr’ of size 24
/usr/include/unistd.h:378:16: note: in a call to function ‘write’ declared with attribute ‘access (read_only, 2, 3)’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def195]
rdma-core-57.0/libibverbs/cmd_qp.c:90:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘qp’
rdma-core-57.0/libibverbs/cmd_qp.c:422:5: enter_function: entry to ‘ibv_cmd_create_qp_ex2’
rdma-core-57.0/libibverbs/cmd_qp.c:434:12: branch_false: following ‘false’ branch...
rdma-core-57.0/libibverbs/cmd_qp.c:446:16: branch_false: ...to here
rdma-core-57.0/libibverbs/cmd_qp.c:446:16: call_function: calling ‘ibv_icmd_create_qp’ from ‘ibv_cmd_create_qp_ex2’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def196]
rdma-core-57.0/libibverbs/cmd_srq.c:40:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘vsrq’
rdma-core-57.0/libibverbs/cmd_srq.c:200:5: enter_function: entry to ‘ibv_cmd_create_srq’
rdma-core-57.0/libibverbs/cmd_srq.c:213:15: call_function: calling ‘ibv_icmd_create_srq’ from ‘ibv_cmd_create_srq’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def197]
rdma-core-57.0/libibverbs/cmd_srq.c:66:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘srq’
rdma-core-57.0/libibverbs/cmd_srq.c:222:5: enter_function: entry to ‘ibv_cmd_create_srq_ex’
rdma-core-57.0/libibverbs/cmd_srq.c:232:12: branch_false: following ‘false’ branch...
rdma-core-57.0/libibverbs/cmd_srq.c:237:14: branch_false: ...to here
rdma-core-57.0/libibverbs/cmd_srq.c:237:12: branch_false: following ‘false’ branch...
rdma-core-57.0/libibverbs/cmd_srq.c:242:16: branch_false: ...to here
rdma-core-57.0/libibverbs/cmd_srq.c:242:16: call_function: calling ‘ibv_icmd_create_srq’ from ‘ibv_cmd_create_srq_ex’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def198]
rdma-core-57.0/libibverbs/cmd_srq.c:168:52: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘vxrcd’
rdma-core-57.0/libibverbs/cmd_srq.c:165:28: branch_false: following ‘false’ branch...
rdma-core-57.0/libibverbs/cmd_srq.c:168:52: branch_false: ...to here
rdma-core-57.0/libibverbs/cmd_srq.c:168:52: danger: dereference of NULL ‘vxrcd’
Error: GCC_ANALYZER_WARNING (CWE-465): [#def199]
rdma-core-57.0/libibverbs/dynamic_driver.c:78:21: warning[-Wanalyzer-deref-before-check]: check of ‘config’ for NULL after already dereferencing it
rdma-core-57.0/libibverbs/dynamic_driver.c:212:6: enter_function: entry to ‘load_drivers’
rdma-core-57.0/libibverbs/dynamic_driver.c:218:9: call_function: calling ‘read_config’ from ‘load_drivers’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def200]
rdma-core-57.0/libibverbs/examples/devinfo.c:713:38: warning[-Wanalyzer-malloc-leak]: leak of ‘ib_devname’
rdma-core-57.0/libibverbs/examples/devinfo.c:708:20: branch_false: following ‘false’ branch (when ‘c != -1’)...
rdma-core-57.0/libibverbs/examples/devinfo.c:711:17: branch_false: ...to here
rdma-core-57.0/libibverbs/examples/devinfo.c:713:38: acquire_memory: allocated here
rdma-core-57.0/libibverbs/examples/devinfo.c:708:20: branch_false: following ‘false’ branch (when ‘c != -1’)...
rdma-core-57.0/libibverbs/examples/devinfo.c:711:17: branch_false: ...to here
rdma-core-57.0/libibverbs/examples/devinfo.c:713:38: danger: ‘ib_devname’ leaks here; was allocated at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def201]
rdma-core-57.0/libibverbs/examples/rc_pingpong.c:372:19: warning[-Wanalyzer-malloc-leak]: leak of ‘pp_init_ctx(ib_dev, (int)size, (int)rx_depth, ib_port, use_event)’
rdma-core-57.0/libibverbs/examples/rc_pingpong.c:792:5: enter_function: entry to ‘main’
rdma-core-57.0/libibverbs/examples/rc_pingpong.c:933:12: branch_true: following ‘true’ branch...
rdma-core-57.0/libibverbs/examples/rc_pingpong.c:934:30: branch_true: ...to here
rdma-core-57.0/libibverbs/examples/rc_pingpong.c:940:12: branch_false: following ‘false’ branch...
rdma-core-57.0/libibverbs/examples/rc_pingpong.c:945:12: branch_false: ...to here
rdma-core-57.0/libibverbs/examples/rc_pingpong.c:945:12: branch_true: following ‘true’ branch...
rdma-core-57.0/libibverbs/examples/rc_pingpong.c:945:22: branch_true: ...to here
rdma-core-57.0/libibverbs/examples/rc_pingpong.c:945:13: branch_false: following ‘false’ branch...
rdma-core-57.0/libibverbs/examples/rc_pingpong.c:950:13: branch_false: ...to here
rdma-core-57.0/libibverbs/examples/rc_pingpong.c:950:12: branch_false: following ‘false’ branch...
rdma-core-57.0/libibverbs/examples/rc_pingpong.c:959:21: branch_false: ...to here
rdma-core-57.0/libibverbs/examples/rc_pingpong.c:962:12: branch_false: following ‘false’ branch...
rdma-core-57.0/libibverbs/examples/rc_pingpong.c:967:12: branch_false: ...to here
rdma-core-57.0/libibverbs/examples/rc_pingpong.c:967:12: branch_true: following ‘true’ branch (when ‘ib_devname’ is NULL)...
rdma-core-57.0/libibverbs/examples/rc_pingpong.c:968:17: branch_true: ...to here
rdma-core-57.0/libibverbs/examples/rc_pingpong.c:969:20: branch_false: following ‘false’ branch (when ‘ib_dev’ is non-NULL)...
rdma-core-57.0/libibverbs/examples/rc_pingpong.c:985:15: branch_false: ...to here
rdma-core-57.0/libibverbs/examples/rc_pingpong.c:985:15: call_function: calling ‘pp_init_ctx’ from ‘main’
rdma-core-57.0/libibverbs/examples/rc_pingpong.c:985:15: return_function: returning to ‘main’ from ‘pp_init_ctx’
rdma-core-57.0/libibverbs/examples/rc_pingpong.c:986:12: branch_false: following ‘false’ branch...
rdma-core-57.0/libibverbs/examples/rc_pingpong.c:989:17: branch_false: ...to here
rdma-core-57.0/libibverbs/examples/rc_pingpong.c:989:17: call_function: calling ‘pp_post_recv’ from ‘main’
rdma-core-57.0/libibverbs/examples/rc_pingpong.c:989:17: return_function: returning to ‘main’ from ‘pp_post_recv’
rdma-core-57.0/libibverbs/examples/rc_pingpong.c:372:19: danger: ‘pp_init_ctx(ib_dev, (int)size, (int)rx_depth, ib_port, use_event)’ leaks here; was allocated at [(20)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/19)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def202]
rdma-core-57.0/libibverbs/examples/uc_pingpong.c:338:19: warning[-Wanalyzer-malloc-leak]: leak of ‘pp_init_ctx(ib_dev, (int)size, (int)rx_depth, ib_port, use_event)’
rdma-core-57.0/libibverbs/examples/uc_pingpong.c:531:5: enter_function: entry to ‘main’
rdma-core-57.0/libibverbs/examples/uc_pingpong.c:643:12: branch_false: following ‘false’ branch...
rdma-core-57.0/libibverbs/examples/uc_pingpong.c:645:17: branch_false: ...to here
rdma-core-57.0/libibverbs/examples/uc_pingpong.c:645:17: branch_false: following ‘false’ branch...
rdma-core-57.0/libibverbs/examples/uc_pingpong.c:650:21: branch_false: ...to here
rdma-core-57.0/libibverbs/examples/uc_pingpong.c:653:12: branch_false: following ‘false’ branch...
rdma-core-57.0/libibverbs/examples/uc_pingpong.c:658:12: branch_false: ...to here
rdma-core-57.0/libibverbs/examples/uc_pingpong.c:658:12: branch_true: following ‘true’ branch (when ‘ib_devname’ is NULL)...
rdma-core-57.0/libibverbs/examples/uc_pingpong.c:659:17: branch_true: ...to here
rdma-core-57.0/libibverbs/examples/uc_pingpong.c:660:20: branch_false: following ‘false’ branch (when ‘ib_dev’ is non-NULL)...
rdma-core-57.0/libibverbs/examples/uc_pingpong.c:676:15: branch_false: ...to here
rdma-core-57.0/libibverbs/examples/uc_pingpong.c:676:15: call_function: calling ‘pp_init_ctx’ from ‘main’
rdma-core-57.0/libibverbs/examples/uc_pingpong.c:676:15: return_function: returning to ‘main’ from ‘pp_init_ctx’
rdma-core-57.0/libibverbs/examples/uc_pingpong.c:677:12: branch_false: following ‘false’ branch...
rdma-core-57.0/libibverbs/examples/uc_pingpong.c:680:17: branch_false: ...to here
rdma-core-57.0/libibverbs/examples/uc_pingpong.c:680:17: call_function: calling ‘pp_post_recv’ from ‘main’
rdma-core-57.0/libibverbs/examples/uc_pingpong.c:680:17: return_function: returning to ‘main’ from ‘pp_post_recv’
rdma-core-57.0/libibverbs/examples/uc_pingpong.c:338:19: danger: ‘pp_init_ctx(ib_dev, (int)size, (int)rx_depth, ib_port, use_event)’ leaks here; was allocated at [(14)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/13)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def203]
rdma-core-57.0/libibverbs/memory.c:559:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
rdma-core-57.0/libibverbs/memory.c:624:12: enter_function: entry to ‘ibv_madvise_range’
rdma-core-57.0/libibverbs/memory.c:647:15: branch_true: following ‘true’ branch (when ‘advice == 10’)...
rdma-core-57.0/libibverbs/memory.c:649:16: branch_true: ...to here
rdma-core-57.0/libibverbs/memory.c:649:16: call_function: calling ‘get_start_node’ from ‘ibv_madvise_range’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def204]
rdma-core-57.0/libibverbs/sysfs.c:67:23: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘dup’ where non-null expected
rdma-core-57.0/libibverbs/sysfs.c:52:12: branch_false: following ‘false’ branch...
rdma-core-57.0/libibverbs/sysfs.c:59:13: branch_false: ...to here
rdma-core-57.0/libibverbs/sysfs.c:59:12: branch_true: following ‘true’ branch...
rdma-core-57.0/libibverbs/sysfs.c:60:23: branch_true: ...to here
rdma-core-57.0/libibverbs/sysfs.c:62:12: branch_true: following ‘true’ branch (when ‘env’ is non-NULL)...
rdma-core-57.0/libibverbs/sysfs.c:66:36: branch_true: ...to here
rdma-core-57.0/libibverbs/sysfs.c:66:36: acquire_memory: this call could return NULL
rdma-core-57.0/libibverbs/sysfs.c:67:23: danger: argument 1 (‘dup’) from [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6) could be NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-775): [#def205]
rdma-core-57.0/librdmacm/examples/cmtime.c:242:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor
rdma-core-57.0/librdmacm/examples/cmtime.c:914:5: enter_function: entry to ‘main’
rdma-core-57.0/librdmacm/examples/cmtime.c:976:12: branch_false: following ‘false’ branch...
rdma-core-57.0/librdmacm/examples/cmtime.c:981:19: branch_false: ...to here
rdma-core-57.0/librdmacm/examples/cmtime.c:982:12: branch_false: following ‘false’ branch...
rdma-core-57.0/librdmacm/examples/cmtime.c:987:15: branch_false: ...to here
rdma-core-57.0/librdmacm/examples/cmtime.c:988:12: branch_false: following ‘false’ branch (when ‘ret == 0’)...
rdma-core-57.0/librdmacm/examples/cmtime.c:993:17: branch_false: ...to here
rdma-core-57.0/librdmacm/examples/cmtime.c:994:12: branch_false: following ‘false’ branch...
rdma-core-57.0/librdmacm/examples/cmtime.c:999:15: branch_false: ...to here
rdma-core-57.0/librdmacm/examples/cmtime.c:1000:12: branch_false: following ‘false’ branch...
rdma-core-57.0/librdmacm/examples/cmtime.c:1003:13: call_function: inlined call to ‘is_client’ from ‘main’
rdma-core-57.0/librdmacm/examples/cmtime.c:1003:12: branch_false: following ‘false’ branch...
rdma-core-57.0/librdmacm/examples/cmtime.c:1009:20: branch_false: ...to here
rdma-core-57.0/librdmacm/examples/cmtime.c:1009:20: branch_true: following ‘true’ branch (when ‘socktest != 0’)...
rdma-core-57.0/librdmacm/examples/cmtime.c:1010:25: branch_true: ...to here
rdma-core-57.0/librdmacm/examples/cmtime.c:1010:25: call_function: calling ‘sock_server’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def206]
rdma-core-57.0/librdmacm/examples/common.c:256:15: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘*sock’
rdma-core-57.0/librdmacm/examples/common.c:244:12: branch_false: following ‘false’ branch...
rdma-core-57.0/librdmacm/examples/common.c:249:41: branch_false: ...to here
rdma-core-57.0/librdmacm/examples/common.c:250:12: branch_false: following ‘false’ branch...
rdma-core-57.0/librdmacm/examples/common.c:254:9: branch_false: ...to here
rdma-core-57.0/librdmacm/examples/common.c:256:15: acquire_resource: socket created here
rdma-core-57.0/librdmacm/examples/common.c:256:15: danger: ‘*sock’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-131): [#def207]
rdma-core-57.0/librdmacm/rsocket.c:4232:9: warning[-Wanalyzer-allocation-size]: allocated buffer size is not a multiple of the pointee's size
rdma-core-57.0/librdmacm/rsocket.c:4220:12: branch_false: following ‘false’ branch (when ‘set’ is non-NULL)...
rdma-core-57.0/librdmacm/rsocket.c:4223:9: branch_false: ...to here
rdma-core-57.0/librdmacm/rsocket.c:4226:12: branch_false: following ‘false’ branch...
rdma-core-57.0/librdmacm/rsocket.c:4231:14: branch_false: ...to here
rdma-core-57.0/librdmacm/rsocket.c:4232:9: danger: assigned to ‘struct rsocket **’ here; ‘sizeof (struct rsocket *)’ is ‘8’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def208]
rdma-core-57.0/librdmacm/rsocket.c:4417:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘&hdr’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def209]
rdma-core-57.0/librdmacm/rsocket.c:4458:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘dest’
rdma-core-57.0/librdmacm/rsocket.c:4478:14: enter_function: entry to ‘udp_svc_run’
rdma-core-57.0/librdmacm/rsocket.c:4484:15: call_function: calling ‘rs_svc_grow_sets’ from ‘udp_svc_run’
rdma-core-57.0/librdmacm/rsocket.c:4484:15: return_function: returning to ‘udp_svc_run’ from ‘rs_svc_grow_sets’
rdma-core-57.0/librdmacm/rsocket.c:4485:12: branch_false: following ‘false’ branch...
rdma-core-57.0/librdmacm/rsocket.c:4491:23: branch_false: ...to here
call_function: calling ‘udp_svc_run’ from ‘udp_svc_run’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def210]
rdma-core-57.0/librdmacm/rsocket.c:4464:18: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘dest’
rdma-core-57.0/librdmacm/rsocket.c:4478:14: enter_function: entry to ‘udp_svc_run’
rdma-core-57.0/librdmacm/rsocket.c:4484:15: call_function: calling ‘rs_svc_grow_sets’ from ‘udp_svc_run’
rdma-core-57.0/librdmacm/rsocket.c:4484:15: return_function: returning to ‘udp_svc_run’ from ‘rs_svc_grow_sets’
rdma-core-57.0/librdmacm/rsocket.c:4485:12: branch_false: following ‘false’ branch...
rdma-core-57.0/librdmacm/rsocket.c:4491:23: branch_false: ...to here
call_function: calling ‘udp_svc_run’ from ‘udp_svc_run’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def211]
rdma-core-57.0/providers/bnxt_re/main.c:311:16: warning[-Wanalyzer-malloc-leak]: leak of ‘rdev’
rdma-core-57.0/providers/bnxt_re/main.c:307:16: acquire_memory: allocated here
rdma-core-57.0/providers/bnxt_re/main.c:308:12: branch_false: following ‘false’ branch (when ‘rdev’ is non-NULL)...
rdma-core-57.0/providers/bnxt_re/main.c:311:16: branch_false: ...to here
rdma-core-57.0/providers/bnxt_re/main.c:311:16: danger: ‘rdev’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-457): [#def212]
rdma-core-57.0/providers/cxgb4/cq.c:59:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘&cqe’
rdma-core-57.0/providers/cxgb4/cq.c:929:6: enter_function: entry to ‘c4iw_flush_srqidx’
rdma-core-57.0/providers/cxgb4/cq.c:934:9: call_function: calling ‘insert_recv_cqe’ from ‘c4iw_flush_srqidx’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def213]
rdma-core-57.0/providers/cxgb4/qp.c:604:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘len16’
rdma-core-57.0/providers/cxgb4/qp.c:474:5: enter_function: entry to ‘c4iw_post_send’
rdma-core-57.0/providers/cxgb4/qp.c:495:12: branch_false: following ‘false’ branch...
rdma-core-57.0/providers/cxgb4/qp.c:510:13: branch_false: ...to here
rdma-core-57.0/providers/cxgb4/qp.c:524:16: branch_false: following ‘false’ branch (when ‘wr’ is NULL)...
rdma-core-57.0/providers/cxgb4/qp.c:603:13: call_function: inlined call to ‘t4_wq_db_enabled’ from ‘c4iw_post_send’
rdma-core-57.0/providers/cxgb4/qp.c:604:17: danger: use of uninitialized value ‘len16’ here
Error: GCC_ANALYZER_WARNING (CWE-401): [#def214]
rdma-core-57.0/providers/efa/efa.c:128:16: warning[-Wanalyzer-malloc-leak]: leak of ‘dev’
rdma-core-57.0/providers/efa/efa.c:122:15: acquire_memory: allocated here
rdma-core-57.0/providers/efa/efa.c:123:12: branch_false: following ‘false’ branch (when ‘dev’ is non-NULL)...
rdma-core-57.0/providers/efa/efa.c:126:22: branch_false: ...to here
rdma-core-57.0/providers/efa/efa.c:128:16: danger: ‘dev’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def215]
rdma-core-57.0/providers/erdma/erdma.c:109:16: warning[-Wanalyzer-malloc-leak]: leak of ‘dev’
rdma-core-57.0/providers/erdma/erdma.c:105:15: acquire_memory: allocated here
rdma-core-57.0/providers/erdma/erdma.c:106:12: branch_false: following ‘false’ branch (when ‘dev’ is non-NULL)...
rdma-core-57.0/providers/erdma/erdma.c:109:16: branch_false: ...to here
rdma-core-57.0/providers/erdma/erdma.c:109:16: danger: ‘dev’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def216]
rdma-core-57.0/providers/hfi1verbs/hfiverbs.c:200:16: warning[-Wanalyzer-malloc-leak]: leak of ‘dev’
rdma-core-57.0/providers/hfi1verbs/hfiverbs.c:194:15: acquire_memory: allocated here
rdma-core-57.0/providers/hfi1verbs/hfiverbs.c:195:12: branch_false: following ‘false’ branch (when ‘dev’ is non-NULL)...
rdma-core-57.0/providers/hfi1verbs/hfiverbs.c:198:28: branch_false: ...to here
rdma-core-57.0/providers/hfi1verbs/hfiverbs.c:200:16: danger: ‘dev’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def217]
rdma-core-57.0/providers/hns/hns_roce_u.c:267:16: warning[-Wanalyzer-malloc-leak]: leak of ‘dev’
rdma-core-57.0/providers/hns/hns_roce_u.c:260:15: acquire_memory: allocated here
rdma-core-57.0/providers/hns/hns_roce_u.c:261:12: branch_false: following ‘false’ branch (when ‘dev’ is non-NULL)...
rdma-core-57.0/providers/hns/hns_roce_u.c:264:21: branch_false: ...to here
rdma-core-57.0/providers/hns/hns_roce_u.c:267:16: danger: ‘dev’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def218]
rdma-core-57.0/providers/ipathverbs/ipathverbs.c:198:16: warning[-Wanalyzer-malloc-leak]: leak of ‘dev’
rdma-core-57.0/providers/ipathverbs/ipathverbs.c:192:15: acquire_memory: allocated here
rdma-core-57.0/providers/ipathverbs/ipathverbs.c:193:12: branch_false: following ‘false’ branch (when ‘dev’ is non-NULL)...
rdma-core-57.0/providers/ipathverbs/ipathverbs.c:196:28: branch_false: ...to here
rdma-core-57.0/providers/ipathverbs/ipathverbs.c:198:16: danger: ‘dev’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def219]
rdma-core-57.0/providers/irdma/umain.c:236:16: warning[-Wanalyzer-malloc-leak]: leak of ‘dev’
rdma-core-57.0/providers/irdma/umain.c:232:15: acquire_memory: allocated here
rdma-core-57.0/providers/irdma/umain.c:233:12: branch_false: following ‘false’ branch (when ‘dev’ is non-NULL)...
rdma-core-57.0/providers/irdma/umain.c:236:16: branch_false: ...to here
rdma-core-57.0/providers/irdma/umain.c:236:16: danger: ‘dev’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def220]
rdma-core-57.0/providers/mana/mana.c:133:16: warning[-Wanalyzer-malloc-leak]: leak of ‘mparent_domain’
rdma-core-57.0/providers/mana/mana.c:101:1: enter_function: entry to ‘mana_alloc_parent_domain’
rdma-core-57.0/providers/mana/mana.c:106:13: call_function: inlined call to ‘ibv_check_alloc_parent_domain’ from ‘mana_alloc_parent_domain’
rdma-core-57.0/providers/mana/mana.c:111:30: branch_false: ...to here
rdma-core-57.0/providers/mana/mana.c:111:12: branch_false: following ‘false’ branch...
rdma-core-57.0/providers/mana/mana.c:120:26: branch_false: ...to here
rdma-core-57.0/providers/mana/mana.c:120:26: acquire_memory: allocated here
rdma-core-57.0/providers/mana/mana.c:121:12: branch_false: following ‘false’ branch (when ‘mparent_domain’ is non-NULL)...
rdma-core-57.0/providers/mana/mana.c:126:9: branch_false: ...to here
rdma-core-57.0/providers/mana/mana.c:130:12: branch_false: following ‘false’ branch...
rdma-core-57.0/providers/mana/mana.c:133:16: branch_false: ...to here
rdma-core-57.0/providers/mana/mana.c:133:16: danger: ‘mparent_domain’ leaks here; was allocated at [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def221]
rdma-core-57.0/providers/mana/mana.c:296:16: warning[-Wanalyzer-malloc-leak]: leak of ‘dev’
rdma-core-57.0/providers/mana/mana.c:292:15: acquire_memory: allocated here
rdma-core-57.0/providers/mana/mana.c:293:12: branch_false: following ‘false’ branch (when ‘dev’ is non-NULL)...
rdma-core-57.0/providers/mana/mana.c:296:16: branch_false: ...to here
rdma-core-57.0/providers/mana/mana.c:296:16: danger: ‘dev’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def222]
rdma-core-57.0/providers/mlx4/mlx4.c:266:16: warning[-Wanalyzer-malloc-leak]: leak of ‘dev’
rdma-core-57.0/providers/mlx4/mlx4.c:259:15: acquire_memory: allocated here
rdma-core-57.0/providers/mlx4/mlx4.c:260:12: branch_false: following ‘false’ branch (when ‘dev’ is non-NULL)...
rdma-core-57.0/providers/mlx4/mlx4.c:263:28: branch_false: ...to here
rdma-core-57.0/providers/mlx4/mlx4.c:266:16: danger: ‘dev’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def223]
rdma-core-57.0/providers/mlx5/dbrec.c:97:22: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
rdma-core-57.0/providers/mlx5/dbrec.c:87:9: enter_function: entry to ‘mlx5_alloc_dbrec’
rdma-core-57.0/providers/mlx5/dbrec.c:94:12: branch_true: following ‘true’ branch...
rdma-core-57.0/providers/mlx5/dbrec.c:95:61: call_function: inlined call to ‘to_mparent_domain’ from ‘mlx5_alloc_dbrec’
branch_false: ...to here
rdma-core-57.0/providers/mlx5/dbrec.c:97:22: danger: dereference of NULL ‘<unknown>’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def224]
rdma-core-57.0/providers/mlx5/dbrec.c:153:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
rdma-core-57.0/providers/mlx5/dbrec.c:142:6: enter_function: entry to ‘mlx5_free_db’
rdma-core-57.0/providers/mlx5/dbrec.c:150:12: branch_true: following ‘true’ branch (when ‘custom_alloc != 0’)...
rdma-core-57.0/providers/mlx5/dbrec.c:151:61: call_function: inlined call to ‘to_mparent_domain’ from ‘mlx5_free_db’
branch_false: ...to here
rdma-core-57.0/providers/mlx5/dbrec.c:153:17: danger: dereference of NULL ‘<unknown>’
Error: GCC_ANALYZER_WARNING (CWE-416): [#def225]
rdma-core-57.0/providers/mlx5/dr_action.c:2942:9: warning[-Wanalyzer-use-after-free]: use after ‘free’ of ‘tmp’
rdma-core-57.0/providers/mlx5/dr_action.c:3053:1: enter_function: entry to ‘mlx5dv_dr_action_create_dest_array’
rdma-core-57.0/providers/mlx5/dr_action.c:3059:12: branch_false: following ‘false’ branch (when ‘num_dest > 1’)...
rdma-core-57.0/providers/mlx5/dr_action.c:3064:9: branch_false: ...to here
rdma-core-57.0/providers/mlx5/dr_action.c:3066:18: call_function: calling ‘dr_action_create_generic’ from ‘mlx5dv_dr_action_create_dest_array’
rdma-core-57.0/providers/mlx5/dr_action.c:3066:18: return_function: returning to ‘mlx5dv_dr_action_create_dest_array’ from ‘dr_action_create_generic’
rdma-core-57.0/providers/mlx5/dr_action.c:3067:12: branch_false: following ‘false’ branch...
rdma-core-57.0/providers/mlx5/dr_action.c:3070:9: branch_false: ...to here
rdma-core-57.0/providers/mlx5/dr_action.c:3073:13: call_function: calling ‘dr_action_create_dest_array_tbl’ from ‘mlx5dv_dr_action_create_dest_array’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def226]
rdma-core-57.0/providers/mlx5/dr_arg.c:71:27: warning[-Wanalyzer-malloc-leak]: leak of ‘arg_obj’
rdma-core-57.0/providers/mlx5/dr_arg.c:126:28: enter_function: entry to ‘dr_arg_pool_create’
rdma-core-57.0/providers/mlx5/dr_arg.c:132:12: branch_false: following ‘false’ branch (when ‘pool’ is non-NULL)...
rdma-core-57.0/providers/mlx5/dr_arg.c:137:9: branch_false: ...to here
rdma-core-57.0/providers/mlx5/dr_arg.c:143:13: call_function: calling ‘dr_arg_pool_alloc_objs’ from ‘dr_arg_pool_create’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def227]
rdma-core-57.0/providers/mlx5/dr_rule.c:58:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
rdma-core-57.0/providers/mlx5/dr_rule.c:1611:24: enter_function: entry to ‘mlx5dv_dr_rule_create’
rdma-core-57.0/providers/mlx5/dr_rule.c:1620:12: branch_false: following ‘false’ branch...
rdma-core-57.0/providers/mlx5/dr_rule.c:1623:24: branch_false: ...to here
rdma-core-57.0/providers/mlx5/dr_rule.c:1623:24: call_function: calling ‘dr_rule_create_rule’ from ‘mlx5dv_dr_rule_create’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def228]
rdma-core-57.0/providers/mlx5/dr_rule.c:791:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘last_ste’
rdma-core-57.0/providers/mlx5/dr_rule.c:1611:24: enter_function: entry to ‘mlx5dv_dr_rule_create’
rdma-core-57.0/providers/mlx5/dr_rule.c:1620:12: branch_false: following ‘false’ branch...
rdma-core-57.0/providers/mlx5/dr_rule.c:1623:24: branch_false: ...to here
rdma-core-57.0/providers/mlx5/dr_rule.c:1623:24: call_function: calling ‘dr_rule_create_rule’ from ‘mlx5dv_dr_rule_create’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def229]
rdma-core-57.0/providers/mlx5/dr_rule.c:811:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘last_ste’
rdma-core-57.0/providers/mlx5/dr_rule.c:1611:24: enter_function: entry to ‘mlx5dv_dr_rule_create’
rdma-core-57.0/providers/mlx5/dr_rule.c:1620:12: branch_false: following ‘false’ branch...
rdma-core-57.0/providers/mlx5/dr_rule.c:1623:24: branch_false: ...to here
rdma-core-57.0/providers/mlx5/dr_rule.c:1623:24: call_function: calling ‘dr_rule_create_rule’ from ‘mlx5dv_dr_rule_create’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def230]
rdma-core-57.0/providers/mlx5/dr_rule.c:837:32: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘cross_dmn_rule_ste’
rdma-core-57.0/providers/mlx5/dr_rule.c:1611:24: enter_function: entry to ‘mlx5dv_dr_rule_create’
rdma-core-57.0/providers/mlx5/dr_rule.c:1620:12: branch_false: following ‘false’ branch...
rdma-core-57.0/providers/mlx5/dr_rule.c:1623:24: branch_false: ...to here
rdma-core-57.0/providers/mlx5/dr_rule.c:1623:24: call_function: calling ‘dr_rule_create_rule’ from ‘mlx5dv_dr_rule_create’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def231]
rdma-core-57.0/providers/mlx5/dr_rule.c:848:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘last_ste’
rdma-core-57.0/providers/mlx5/dr_rule.c:1611:24: enter_function: entry to ‘mlx5dv_dr_rule_create’
rdma-core-57.0/providers/mlx5/dr_rule.c:1620:12: branch_false: following ‘false’ branch...
rdma-core-57.0/providers/mlx5/dr_rule.c:1623:24: branch_false: ...to here
rdma-core-57.0/providers/mlx5/dr_rule.c:1623:24: call_function: calling ‘dr_rule_create_rule’ from ‘mlx5dv_dr_rule_create’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def232]
rdma-core-57.0/providers/mlx5/dr_rule.c:900:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘last_ste’
rdma-core-57.0/providers/mlx5/dr_rule.c:1611:24: enter_function: entry to ‘mlx5dv_dr_rule_create’
rdma-core-57.0/providers/mlx5/dr_rule.c:1620:12: branch_false: following ‘false’ branch...
rdma-core-57.0/providers/mlx5/dr_rule.c:1623:24: branch_false: ...to here
rdma-core-57.0/providers/mlx5/dr_rule.c:1623:24: call_function: calling ‘dr_rule_create_rule’ from ‘mlx5dv_dr_rule_create’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def233]
rdma-core-57.0/providers/mlx5/dr_rule.c:916:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘last_ste’
rdma-core-57.0/providers/mlx5/dr_rule.c:1611:24: enter_function: entry to ‘mlx5dv_dr_rule_create’
rdma-core-57.0/providers/mlx5/dr_rule.c:1620:12: branch_false: following ‘false’ branch...
rdma-core-57.0/providers/mlx5/dr_rule.c:1623:24: branch_false: ...to here
rdma-core-57.0/providers/mlx5/dr_rule.c:1623:24: call_function: calling ‘dr_rule_create_rule’ from ‘mlx5dv_dr_rule_create’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def234]
rdma-core-57.0/providers/mlx5/dr_ste.c:345:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
rdma-core-57.0/providers/mlx5/dr_ste.c:332:13: enter_function: entry to ‘dr_ste_remove_middle_ste’
rdma-core-57.0/providers/mlx5/dr_ste.c:341:20: call_function: inlined call to ‘list_entry_or_null’ from ‘dr_ste_remove_middle_ste’
rdma-core-57.0/providers/mlx5/dr_ste.c:344:21: branch_true: ...to here
rdma-core-57.0/providers/mlx5/dr_ste.c:345:9: danger: dereference of NULL ‘<unknown>’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def235]
rdma-core-57.0/providers/mlx5/dr_ste.c:373:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
rdma-core-57.0/providers/mlx5/dr_ste.c:357:6: enter_function: entry to ‘dr_ste_free’
rdma-core-57.0/providers/mlx5/dr_ste.c:372:21: call_function: calling ‘dr_ste_get_miss_list_top’ from ‘dr_ste_free’
rdma-core-57.0/providers/mlx5/dr_ste.c:372:21: return_function: returning to ‘dr_ste_free’ from ‘dr_ste_get_miss_list_top’
rdma-core-57.0/providers/mlx5/dr_ste.c:373:9: danger: dereference of NULL ‘dr_ste_get_miss_list_top(ste)’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def236]
rdma-core-57.0/providers/mlx5/dr_ste_v1.c:3310:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘cross_dmn_arrays’
rdma-core-57.0/providers/mlx5/dr_ste_v1.c:3174:12: branch_false: following ‘false’ branch...
rdma-core-57.0/providers/mlx5/dr_ste_v1.c:3181:12: branch_false: ...to here
rdma-core-57.0/providers/mlx5/dr_ste_v1.c:3187:12: branch_false: following ‘false’ branch (when ‘action_hw_ste’ is non-NULL)...
rdma-core-57.0/providers/mlx5/dr_ste_v1.c:3193:24: branch_false: ...to here
rdma-core-57.0/providers/mlx5/dr_ste_v1.c:3194:12: branch_false: following ‘false’ branch (when ‘ste_info_arr’ is non-NULL)...
rdma-core-57.0/providers/mlx5/dr_ste_v1.c:3200:23: branch_false: ...to here
rdma-core-57.0/providers/mlx5/dr_ste_v1.c:3201:12: branch_false: following ‘false’ branch (when ‘action_htbl’ is non-NULL)...
rdma-core-57.0/providers/mlx5/dr_ste_v1.c:3207:21: branch_false: ...to here
rdma-core-57.0/providers/mlx5/dr_ste_v1.c:3208:12: branch_false: following ‘false’ branch (when ‘rule_htbl’ is non-NULL)...
branch_false: ...to here
rdma-core-57.0/providers/mlx5/dr_ste_v1.c:3214:21: branch_false: following ‘false’ branch...
rdma-core-57.0/providers/mlx5/dr_ste_v1.c:3296:15: branch_false: ...to here
rdma-core-57.0/providers/mlx5/dr_ste_v1.c:3297:12: branch_false: following ‘false’ branch...
rdma-core-57.0/providers/mlx5/dr_ste_v1.c:3302:15: branch_false: ...to here
rdma-core-57.0/providers/mlx5/dr_ste_v1.c:3303:12: branch_false: following ‘false’ branch...
rdma-core-57.0/providers/mlx5/dr_ste_v1.c:3308:63: branch_false: ...to here
rdma-core-57.0/providers/mlx5/dr_ste_v1.c:3308:63: acquire_memory: this call could return NULL
rdma-core-57.0/providers/mlx5/dr_ste_v1.c:3310:9: danger: ‘cross_dmn_arrays’ could be NULL: unchecked value from [(17)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/16)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def237]
rdma-core-57.0/providers/mlx5/mlx5.c:2752:16: warning[-Wanalyzer-malloc-leak]: leak of ‘dev’
rdma-core-57.0/providers/mlx5/mlx5.c:2744:15: acquire_memory: allocated here
rdma-core-57.0/providers/mlx5/mlx5.c:2745:12: branch_false: following ‘false’ branch (when ‘dev’ is non-NULL)...
rdma-core-57.0/providers/mlx5/mlx5.c:2748:28: branch_false: ...to here
rdma-core-57.0/providers/mlx5/mlx5.c:2752:16: danger: ‘dev’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def238]
rdma-core-57.0/providers/mlx5/mlx5_vfio.c:506:33: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
rdma-core-57.0/providers/mlx5/mlx5_vfio.c:1793:12: enter_function: entry to ‘mlx5_vfio_get_caps’
rdma-core-57.0/providers/mlx5/mlx5_vfio.c:1801:16: call_function: calling ‘mlx5_vfio_get_caps_mode’ from ‘mlx5_vfio_get_caps’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def239]
rdma-core-57.0/providers/mlx5/mlx5_vfio.c:508:33: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
rdma-core-57.0/providers/mlx5/mlx5_vfio.c:3549:5: enter_function: entry to ‘mlx5dv_vfio_process_events’
rdma-core-57.0/providers/mlx5/mlx5_vfio.c:3565:16: call_function: calling ‘mlx5_vfio_process_async_events’ from ‘mlx5dv_vfio_process_events’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def240]
rdma-core-57.0/providers/mlx5/verbs.c:7111:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
rdma-core-57.0/providers/mlx5/verbs.c:7000:1: enter_function: entry to ‘_mlx5dv_create_mkey’
rdma-core-57.0/providers/mlx5/verbs.c:7014:12: branch_false: following ‘false’ branch...
rdma-core-57.0/providers/mlx5/verbs.c:7015:14: branch_false: ...to here
rdma-core-57.0/providers/mlx5/verbs.c:7014:13: branch_false: following ‘false’ branch...
rdma-core-57.0/providers/mlx5/verbs.c:7026:16: branch_false: ...to here
rdma-core-57.0/providers/mlx5/verbs.c:7027:12: branch_false: following ‘false’ branch (when ‘mkey’ is non-NULL)...
rdma-core-57.0/providers/mlx5/verbs.c:7032:20: branch_false: ...to here
rdma-core-57.0/providers/mlx5/verbs.c:7035:12: branch_true: following ‘true’ branch...
rdma-core-57.0/providers/mlx5/verbs.c:7036:29: branch_true: ...to here
rdma-core-57.0/providers/mlx5/verbs.c:7036:29: call_function: calling ‘mlx5_create_sig_ctx’ from ‘_mlx5dv_create_mkey’
rdma-core-57.0/providers/mlx5/verbs.c:7036:29: return_function: returning to ‘_mlx5dv_create_mkey’ from ‘mlx5_create_sig_ctx’
rdma-core-57.0/providers/mlx5/verbs.c:7037:20: branch_false: following ‘false’ branch...
rdma-core-57.0/providers/mlx5/verbs.c:7043:23: branch_false: ...to here
rdma-core-57.0/providers/mlx5/verbs.c:7046:12: branch_true: following ‘true’ branch...
rdma-core-57.0/providers/mlx5/verbs.c:7047:23: branch_true: ...to here
rdma-core-57.0/providers/mlx5/verbs.c:7047:20: branch_true: following ‘true’ branch...
rdma-core-57.0/providers/mlx5/verbs.c:7050:25: branch_true: ...to here
rdma-core-57.0/providers/mlx5/verbs.c:7108:12: branch_false: following ‘false’ branch...
rdma-core-57.0/providers/mlx5/verbs.c:7110:1: branch_false: ...to here
rdma-core-57.0/providers/mlx5/verbs.c:7111:9: danger: ‘<unknown>’ leaks here; was allocated at [(14)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/13)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def241]
rdma-core-57.0/providers/mthca/mthca.c:232:16: warning[-Wanalyzer-malloc-leak]: leak of ‘dev’
rdma-core-57.0/providers/mthca/mthca.c:225:15: acquire_memory: allocated here
rdma-core-57.0/providers/mthca/mthca.c:226:12: branch_false: following ‘false’ branch (when ‘dev’ is non-NULL)...
rdma-core-57.0/providers/mthca/mthca.c:229:39: branch_false: ...to here
rdma-core-57.0/providers/mthca/mthca.c:232:16: danger: ‘dev’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def242]
rdma-core-57.0/providers/qedr/qelr_main.c:242:16: warning[-Wanalyzer-malloc-leak]: leak of ‘dev’
rdma-core-57.0/providers/qedr/qelr_main.c:238:15: acquire_memory: allocated here
rdma-core-57.0/providers/qedr/qelr_main.c:239:12: branch_false: following ‘false’ branch (when ‘dev’ is non-NULL)...
rdma-core-57.0/providers/qedr/qelr_main.c:242:16: branch_false: ...to here
rdma-core-57.0/providers/qedr/qelr_main.c:242:16: danger: ‘dev’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def243]
rdma-core-57.0/providers/qedr/qelr_verbs.c:2481:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
rdma-core-57.0/providers/qedr/qelr_verbs.c:2460:5: enter_function: entry to ‘qelr_poll_cq’
rdma-core-57.0/providers/qedr/qelr_verbs.c:2471:16: branch_true: following ‘true’ branch (when ‘num_entries != 0’)...
rdma-core-57.0/providers/qedr/qelr_verbs.c:2471:31: call_function: inlined call to ‘is_valid_cqe’ from ‘qelr_poll_cq’
rdma-core-57.0/providers/qedr/qelr_verbs.c:2471:16: branch_true: following ‘true’ branch...
rdma-core-57.0/providers/qedr/qelr_verbs.c:2476:17: branch_true: ...to here
rdma-core-57.0/providers/qedr/qelr_verbs.c:2479:20: branch_true: following ‘true’ branch...
rdma-core-57.0/providers/qedr/qelr_verbs.c:2480:21: call_function: inlined call to ‘cqe_get_type’ from ‘qelr_poll_cq’
rdma-core-57.0/providers/qedr/qelr_verbs.c:2479:21: branch_true: following ‘true’ branch...
rdma-core-57.0/providers/qedr/qelr_verbs.c:2481:25: branch_true: ...to here
rdma-core-57.0/providers/qedr/qelr_verbs.c:2481:25: danger: dereference of NULL ‘0’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def244]
rdma-core-57.0/providers/rxe/rxe.c:1911:16: warning[-Wanalyzer-malloc-leak]: leak of ‘dev’
rdma-core-57.0/providers/rxe/rxe.c:1905:15: acquire_memory: allocated here
rdma-core-57.0/providers/rxe/rxe.c:1906:12: branch_false: following ‘false’ branch (when ‘dev’ is non-NULL)...
rdma-core-57.0/providers/rxe/rxe.c:1909:28: branch_false: ...to here
rdma-core-57.0/providers/rxe/rxe.c:1911:16: danger: ‘dev’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def245]
rdma-core-57.0/providers/siw/siw.c:887:16: warning[-Wanalyzer-malloc-leak]: leak of ‘dev’
rdma-core-57.0/providers/siw/siw.c:883:15: acquire_memory: allocated here
rdma-core-57.0/providers/siw/siw.c:884:12: branch_false: following ‘false’ branch (when ‘dev’ is non-NULL)...
rdma-core-57.0/providers/siw/siw.c:887:16: branch_false: ...to here
rdma-core-57.0/providers/siw/siw.c:887:16: danger: ‘dev’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def246]
rdma-core-57.0/providers/vmw_pvrdma/pvrdma_main.c:196:16: warning[-Wanalyzer-malloc-leak]: leak of ‘dev’
rdma-core-57.0/providers/vmw_pvrdma/pvrdma_main.c:189:15: acquire_memory: allocated here
rdma-core-57.0/providers/vmw_pvrdma/pvrdma_main.c:190:12: branch_false: following ‘false’ branch (when ‘dev’ is non-NULL)...
rdma-core-57.0/providers/vmw_pvrdma/pvrdma_main.c:193:28: branch_false: ...to here
rdma-core-57.0/providers/vmw_pvrdma/pvrdma_main.c:196:16: danger: ‘dev’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-688): [#def247]
rdma-core-57.0/redhat-linux-build/CMakeFiles/CMakeScratch/TryCompile-1dg0YH/src.c:4:4: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-775): [#def248]
rdma-core-57.0/redhat-linux-build/CMakeFiles/CMakeScratch/TryCompile-f8pE5B/src.c:7:5: warning[-Wanalyzer-fd-leak]: leak of file descriptor
Error: GCC_ANALYZER_WARNING (CWE-775): [#def249]
rdma-core-57.0/redhat-linux-build/CMakeFiles/CMakeScratch/TryCompile-f8pE5B/src.c:8:5: warning[-Wanalyzer-fd-leak]: leak of file descriptor
Error: GCC_ANALYZER_WARNING (CWE-401): [#def250]
rdma-core-57.0/redhat-linux-build/include/ccan/list.h:185:9: warning[-Wanalyzer-malloc-leak]: leak of ‘create_range(astart + length, rend - astart - length)’
rdma-core-57.0/util/interval_set.c:155:5: enter_function: entry to ‘iset_alloc_range’
rdma-core-57.0/util/interval_set.c:169:9: branch_true: following ‘true’ branch...
rdma-core-57.0/util/interval_set.c:170:32: branch_true: ...to here
rdma-core-57.0/util/interval_set.c:178:12: branch_true: following ‘true’ branch (when ‘found != 0’)...
rdma-core-57.0/util/interval_set.c:184:13: branch_true: ...to here
rdma-core-57.0/util/interval_set.c:184:12: branch_false: following ‘false’ branch...
rdma-core-57.0/util/interval_set.c:192:35: branch_false: ...to here
rdma-core-57.0/util/interval_set.c:193:20: branch_true: following ‘true’ branch...
rdma-core-57.0/util/interval_set.c:195:45: branch_true: ...to here
rdma-core-57.0/util/interval_set.c:194:32: call_function: calling ‘create_range’ from ‘iset_alloc_range’
rdma-core-57.0/util/interval_set.c:194:32: return_function: returning to ‘iset_alloc_range’ from ‘create_range’
rdma-core-57.0/util/interval_set.c:196:28: branch_false: following ‘false’ branch...
rdma-core-57.0/util/interval_set.c:200:25: branch_false: ...to here
rdma-core-57.0/util/interval_set.c:200:25: call_function: inlined call to ‘list_add_after_’ from ‘iset_alloc_range’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def251]
rdma-core-57.0/redhat-linux-build/include/ccan/list.h:234:9: warning[-Wanalyzer-malloc-leak]: leak of ‘create_range(start, length)’
rdma-core-57.0/util/interval_set.c:103:5: enter_function: entry to ‘iset_insert_range’
rdma-core-57.0/util/interval_set.c:109:12: branch_false: following ‘false’ branch...
rdma-core-57.0/util/interval_set.c:130:20: call_function: calling ‘check_do_combine’ from ‘iset_insert_range’
rdma-core-57.0/util/interval_set.c:130:20: return_function: returning to ‘iset_insert_range’ from ‘check_do_combine’
rdma-core-57.0/util/interval_set.c:132:12: branch_false: following ‘false’ branch...
rdma-core-57.0/util/interval_set.c:133:24: branch_false: ...to here
rdma-core-57.0/util/interval_set.c:133:24: call_function: calling ‘create_range’ from ‘iset_insert_range’
rdma-core-57.0/util/interval_set.c:133:24: return_function: returning to ‘iset_insert_range’ from ‘create_range’
rdma-core-57.0/util/interval_set.c:134:20: branch_false: following ‘false’ branch...
rdma-core-57.0/util/interval_set.c:139:20: branch_false: ...to here
rdma-core-57.0/util/interval_set.c:139:20: branch_false: following ‘false’ branch (when ‘found == 0’)...
rdma-core-57.0/util/interval_set.c:140:25: branch_false: ...to here
rdma-core-57.0/util/interval_set.c:140:25: call_function: inlined call to ‘list_add_tail_’ from ‘iset_insert_range’
Error: GCC_ANALYZER_WARNING (CWE-416): [#def252]
rdma-core-57.0/redhat-linux-build/include/ccan/list.h:327:9: warning[-Wanalyzer-use-after-free]: use after ‘free’ of ‘mapped_ports.n.next’
rdma-core-57.0/iwpmd/iwarp_pm_helper.c:514:6: enter_function: entry to ‘free_iwpm_mapped_ports’
rdma-core-57.0/iwpmd/iwarp_pm_helper.c:518:29: call_function: inlined call to ‘list_pop_’ from ‘free_iwpm_mapped_ports’
rdma-core-57.0/iwpmd/iwarp_pm_helper.c:519:17: call_function: calling ‘free_iwpm_port’ from ‘free_iwpm_mapped_ports’
rdma-core-57.0/iwpmd/iwarp_pm_helper.c:519:17: return_function: returning to ‘free_iwpm_mapped_ports’ from ‘free_iwpm_port’
rdma-core-57.0/iwpmd/iwarp_pm_helper.c:518:29: call_function: inlined call to ‘list_pop_’ from ‘free_iwpm_mapped_ports’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def253]
rdma-core-57.0/redhat-linux-build/include/infiniband/verbs.h:2219:13: warning[-Wanalyzer-malloc-leak]: leak of ‘pp_init_ctx(ib_dev, (int)size, (int)rx_depth, ib_port, use_event)’
rdma-core-57.0/libibverbs/examples/ud_pingpong.c:554:5: enter_function: entry to ‘main’
rdma-core-57.0/libibverbs/examples/ud_pingpong.c:656:12: branch_false: following ‘false’ branch...
rdma-core-57.0/libibverbs/examples/ud_pingpong.c:658:17: branch_false: ...to here
rdma-core-57.0/libibverbs/examples/ud_pingpong.c:658:17: branch_false: following ‘false’ branch...
rdma-core-57.0/libibverbs/examples/ud_pingpong.c:663:21: branch_false: ...to here
rdma-core-57.0/libibverbs/examples/ud_pingpong.c:666:12: branch_false: following ‘false’ branch...
rdma-core-57.0/libibverbs/examples/ud_pingpong.c:671:12: branch_false: ...to here
rdma-core-57.0/libibverbs/examples/ud_pingpong.c:671:12: branch_true: following ‘true’ branch (when ‘ib_devname’ is NULL)...
rdma-core-57.0/libibverbs/examples/ud_pingpong.c:672:17: branch_true: ...to here
rdma-core-57.0/libibverbs/examples/ud_pingpong.c:673:20: branch_false: following ‘false’ branch (when ‘ib_dev’ is non-NULL)...
rdma-core-57.0/libibverbs/examples/ud_pingpong.c:689:15: branch_false: ...to here
rdma-core-57.0/libibverbs/examples/ud_pingpong.c:689:15: call_function: calling ‘pp_init_ctx’ from ‘main’
rdma-core-57.0/libibverbs/examples/ud_pingpong.c:689:15: return_function: returning to ‘main’ from ‘pp_init_ctx’
rdma-core-57.0/libibverbs/examples/ud_pingpong.c:690:12: branch_false: following ‘false’ branch...
rdma-core-57.0/libibverbs/examples/ud_pingpong.c:693:17: branch_false: ...to here
rdma-core-57.0/libibverbs/examples/ud_pingpong.c:693:17: call_function: calling ‘pp_post_recv’ from ‘main’
rdma-core-57.0/libibverbs/examples/ud_pingpong.c:693:17: return_function: returning to ‘main’ from ‘pp_post_recv’
rdma-core-57.0/redhat-linux-build/include/infiniband/verbs.h:2411:38: call_function: inlined call to ‘verbs_get_ctx’ from ‘___ibv_query_port’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def254]
rdma-core-57.0/redhat-linux-build/include/util/bitmap.h:59:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘bmp’
rdma-core-57.0/util/tests/bitmap_test.c:101:5: enter_function: entry to ‘main’
rdma-core-57.0/util/tests/bitmap_test.c:112:25: branch_true: following ‘true’ branch (when ‘i != 5’)...
rdma-core-57.0/util/tests/bitmap_test.c:113:21: branch_true: ...to here
rdma-core-57.0/util/tests/bitmap_test.c:114:38: call_function: inlined call to ‘bitmap_alloc0’ from ‘main’
rdma-core-57.0/util/tests/bitmap_test.c:125:17: call_function: calling ‘test_bitmap_empty’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def255]
rdma-core-57.0/redhat-linux-build/pyverbs/base.c:9651:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘base_vtables’
rdma-core-57.0/redhat-linux-build/pyverbs/base.c:9650:29: acquire_memory: this call could return NULL
rdma-core-57.0/redhat-linux-build/pyverbs/base.c:9651:5: danger: ‘base_vtables’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def256]
rdma-core-57.0/redhat-linux-build/pyverbs/dmabuf.c:6837:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘base_vtables’
rdma-core-57.0/redhat-linux-build/pyverbs/dmabuf.c:6836:29: acquire_memory: this call could return NULL
rdma-core-57.0/redhat-linux-build/pyverbs/dmabuf.c:6837:5: danger: ‘base_vtables’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def257]
rdma-core-57.0/redhat-linux-build/pyverbs/flow.c:10567:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘base_vtables’
rdma-core-57.0/redhat-linux-build/pyverbs/flow.c:10566:29: acquire_memory: this call could return NULL
rdma-core-57.0/redhat-linux-build/pyverbs/flow.c:10567:5: danger: ‘base_vtables’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def258]
rdma-core-57.0/redhat-linux-build/pyverbs/pd.c:15337:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘base_vtables’
rdma-core-57.0/redhat-linux-build/pyverbs/pd.c:15336:29: acquire_memory: this call could return NULL
rdma-core-57.0/redhat-linux-build/pyverbs/pd.c:15337:5: danger: ‘base_vtables’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def259]
rdma-core-57.0/redhat-linux-build/pyverbs/providers/mlx5/dr_domain.c:9909:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘base_vtables’
rdma-core-57.0/redhat-linux-build/pyverbs/providers/mlx5/dr_domain.c:9908:29: acquire_memory: this call could return NULL
rdma-core-57.0/redhat-linux-build/pyverbs/providers/mlx5/dr_domain.c:9909:5: danger: ‘base_vtables’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def260]
rdma-core-57.0/redhat-linux-build/pyverbs/providers/mlx5/dr_matcher.c:8178:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘base_vtables’
rdma-core-57.0/redhat-linux-build/pyverbs/providers/mlx5/dr_matcher.c:8177:29: acquire_memory: this call could return NULL
rdma-core-57.0/redhat-linux-build/pyverbs/providers/mlx5/dr_matcher.c:8178:5: danger: ‘base_vtables’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def261]
rdma-core-57.0/redhat-linux-build/pyverbs/providers/mlx5/dr_rule.c:9263:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘base_vtables’
rdma-core-57.0/redhat-linux-build/pyverbs/providers/mlx5/dr_rule.c:9262:29: acquire_memory: this call could return NULL
rdma-core-57.0/redhat-linux-build/pyverbs/providers/mlx5/dr_rule.c:9263:5: danger: ‘base_vtables’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def262]
rdma-core-57.0/redhat-linux-build/pyverbs/providers/mlx5/dr_table.c:9006:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘base_vtables’
rdma-core-57.0/redhat-linux-build/pyverbs/providers/mlx5/dr_table.c:9005:29: acquire_memory: this call could return NULL
rdma-core-57.0/redhat-linux-build/pyverbs/providers/mlx5/dr_table.c:9006:5: danger: ‘base_vtables’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-688): [#def263]
rdma-core-57.0/redhat-linux-build/pyverbs/providers/mlx5/mlx5_vfio.c:5125:9: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
rdma-core-57.0/redhat-linux-build/pyverbs/providers/mlx5/mlx5_vfio.c:7147:12: enter_function: entry to ‘__pyx_setprop_7pyverbs_9providers_4mlx5_9mlx5_vfio_12Mlx5VfioAttr_pci_name’
rdma-core-57.0/redhat-linux-build/pyverbs/providers/mlx5/mlx5_vfio.c:7148:6: branch_true: following ‘true’ branch (when ‘v’ is non-NULL)...
rdma-core-57.0/redhat-linux-build/pyverbs/providers/mlx5/mlx5_vfio.c:7149:12: call_function: inlined call to ‘__pyx_pw_7pyverbs_9providers_4mlx5_9mlx5_vfio_12Mlx5VfioAttr_8pci_name_3__set__’ from ‘__pyx_setprop_7pyverbs_9providers_4mlx5_9mlx5_vfio_12Mlx5VfioAttr_pci_name’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def264]
rdma-core-57.0/redhat-linux-build/pyverbs/providers/mlx5/mlx5_vfio.c:10329:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘base_vtables’
rdma-core-57.0/redhat-linux-build/pyverbs/providers/mlx5/mlx5_vfio.c:10328:29: acquire_memory: this call could return NULL
rdma-core-57.0/redhat-linux-build/pyverbs/providers/mlx5/mlx5_vfio.c:10329:5: danger: ‘base_vtables’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def265]
rdma-core-57.0/redhat-linux-build/pyverbs/providers/mlx5/mlx5dv_dmabuf.c:6716:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘base_vtables’
rdma-core-57.0/redhat-linux-build/pyverbs/providers/mlx5/mlx5dv_dmabuf.c:6715:29: acquire_memory: this call could return NULL
rdma-core-57.0/redhat-linux-build/pyverbs/providers/mlx5/mlx5dv_dmabuf.c:6716:5: danger: ‘base_vtables’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def266]
rdma-core-57.0/redhat-linux-build/pyverbs/providers/mlx5/mlx5dv_mkey.c:14346:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘base_vtables’
rdma-core-57.0/redhat-linux-build/pyverbs/providers/mlx5/mlx5dv_mkey.c:14345:29: acquire_memory: this call could return NULL
rdma-core-57.0/redhat-linux-build/pyverbs/providers/mlx5/mlx5dv_mkey.c:14346:5: danger: ‘base_vtables’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def267]
rdma-core-57.0/redhat-linux-build/pyverbs/providers/mlx5/mlx5dv_sched.c:10656:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘base_vtables’
rdma-core-57.0/redhat-linux-build/pyverbs/providers/mlx5/mlx5dv_sched.c:10655:29: acquire_memory: this call could return NULL
rdma-core-57.0/redhat-linux-build/pyverbs/providers/mlx5/mlx5dv_sched.c:10656:5: danger: ‘base_vtables’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def268]
rdma-core-57.0/redhat-linux-build/pyverbs/wr.c:16665:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘base_vtables’
rdma-core-57.0/redhat-linux-build/pyverbs/wr.c:16664:29: acquire_memory: this call could return NULL
rdma-core-57.0/redhat-linux-build/pyverbs/wr.c:16665:5: danger: ‘base_vtables’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def269]
rdma-core-57.0/redhat-linux-build/pyverbs/xrcd.c:8682:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘base_vtables’
rdma-core-57.0/redhat-linux-build/pyverbs/xrcd.c:8681:29: acquire_memory: this call could return NULL
rdma-core-57.0/redhat-linux-build/pyverbs/xrcd.c:8682:5: danger: ‘base_vtables’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-688): [#def270]
rdma-core-57.0/srp_daemon/srp_sync.c:270:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘target’ where non-null expected
rdma-core-57.0/srp_daemon/srp_sync.c:266:12: branch_false: following ‘false’ branch...
rdma-core-57.0/srp_daemon/srp_sync.c:269:18: branch_false: ...to here
rdma-core-57.0/srp_daemon/srp_sync.c:269:18: acquire_memory: this call could return NULL
rdma-core-57.0/srp_daemon/srp_sync.c:270:9: danger: argument 1 (‘target’) from [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2) could be NULL where non-null expected
Scan Properties
analyzer-version-clippy | 1.86.0 |
analyzer-version-cppcheck | 2.17.1 |
analyzer-version-gcc | 15.0.1 |
analyzer-version-gcc-analyzer | 15.0.1 |
analyzer-version-shellcheck | 0.10.0 |
analyzer-version-unicontrol | 0.0.2 |
enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
exit-code | 0 |
host | ip-172-16-1-30.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.20250425.124705.g1c7c448.main-1.el9.noarch |
mock-config | fedora-rawhide-x86_64 |
project-name | rdma-core-57.0-2.fc43 |
store-results-to | /tmp/tmpqd434krh/rdma-core-57.0-2.fc43.tar.xz |
time-created | 2025-04-25 15:37:58 |
time-finished | 2025-04-25 15:42:49 |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,cppcheck,gcc,clippy,shellcheck' '-o' '/tmp/tmpqd434krh/rdma-core-57.0-2.fc43.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpqd434krh/rdma-core-57.0-2.fc43.src.rpm' |
tool-version | csmock-3.8.1.20250422.172604.g26bc3d6-1.el9 |