openwsman-2.8.1-10.fc44
List of Findings
Error: SHELLCHECK_WARNING (CWE-477): [#def1]
/etc/openwsman/owsmangencert.sh:9:24: warning[SC2166]: Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.
Error: SHELLCHECK_WARNING (CWE-88): [#def2]
/etc/openwsman/owsmangencert.sh:28:23: error[SC2068]: Double quote array expansions to avoid re-splitting elements.
Error: SHELLCHECK_WARNING (CWE-477): [#def3]
/etc/openwsman/owsmantestcert.sh:5:8: warning[SC2166]: Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.
Error: COMPILER_WARNING (CWE-686): [#def4]
openwsman-2.8.1/build/CMakeFiles/CMakeScratch/TryCompile-P2acqN/CheckFunctionExists.c:7:3: warning[-Wbuiltin-declaration-mismatch]: conflicting types for built-in function ‘alloca’; expected ‘void *(long unsigned int)’
Error: COMPILER_WARNING (CWE-686): [#def5]
openwsman-2.8.1/build/CMakeFiles/CMakeScratch/TryCompile-kGrIsQ/CheckFunctionExists.c:7:3: warning[-Wbuiltin-declaration-mismatch]: conflicting types for built-in function ‘bcopy’; expected ‘void(const void *, void *, long unsigned int)’
Error: CPPCHECK_WARNING (CWE-476): [#def6]
openwsman-2.8.1/build/bindings/perl/openwsman_wrap.c:1450: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: mg->mg_virtual
Error: CPPCHECK_WARNING (CWE-476): [#def7]
openwsman-2.8.1/build/bindings/perl/openwsman_wrap.c:2757: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: s
Error: CPPCHECK_WARNING (CWE-457): [#def8]
openwsman-2.8.1/build/bindings/perl/openwsman_wrap.c:10587: error[legacyUninitvar]: Uninitialized variable: arg1
Error: CPPCHECK_WARNING (CWE-457): [#def9]
openwsman-2.8.1/build/bindings/perl/openwsman_wrap.c:10647: error[legacyUninitvar]: Uninitialized variable: arg1
Error: GCC_ANALYZER_WARNING (CWE-476): [#def10]
openwsman-2.8.1/build/bindings/python/openwsman_wrap.c:724:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘iter’
openwsman-2.8.1/build/bindings/python/openwsman_wrap.c:14915:22: enter_function: entry to ‘_wrap_uri_prefix’
openwsman-2.8.1/build/bindings/python/openwsman_wrap.c:14925:6: branch_false: following ‘false’ branch (when ‘args’ is non-NULL)...
openwsman-2.8.1/build/bindings/python/openwsman_wrap.c:14927:10: branch_false: ...to here
openwsman-2.8.1/build/bindings/python/openwsman_wrap.c:14927:10: call_function: calling ‘SWIG_AsCharPtrAndSize’ from ‘_wrap_uri_prefix’
Error: CPPCHECK_WARNING (CWE-457): [#def11]
openwsman-2.8.1/build/bindings/python/openwsman_wrap.c:872: warning[uninitvar]: Uninitialized variable: buff
Error: CPPCHECK_WARNING (CWE-476): [#def12]
openwsman-2.8.1/build/bindings/python/openwsman_wrap.c:1901: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: data
Error: GCC_ANALYZER_WARNING (CWE-476): [#def13]
openwsman-2.8.1/build/bindings/python/openwsman_wrap.c:1901:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘data’
openwsman-2.8.1/build/bindings/python/openwsman_wrap.c:14775:22: enter_function: entry to ‘Client_swigregister’
openwsman-2.8.1/build/bindings/python/openwsman_wrap.c:14777:8: call_function: calling ‘SWIG_Python_UnpackTuple’ from ‘Client_swigregister’
openwsman-2.8.1/build/bindings/python/openwsman_wrap.c:14777:8: return_function: returning to ‘Client_swigregister’ from ‘SWIG_Python_UnpackTuple’
openwsman-2.8.1/build/bindings/python/openwsman_wrap.c:14777:6: branch_false: following ‘false’ branch...
openwsman-2.8.1/build/bindings/python/openwsman_wrap.c:14778:3: branch_false: ...to here
openwsman-2.8.1/build/bindings/python/openwsman_wrap.c:14778:51: call_function: calling ‘SwigPyClientData_New’ from ‘Client_swigregister’
Error: CPPCHECK_WARNING (CWE-476): [#def14]
openwsman-2.8.1/build/bindings/python/openwsman_wrap.c:1902: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: data
Error: GCC_ANALYZER_WARNING (CWE-401): [#def15]
openwsman-2.8.1/build/bindings/python/openwsman_wrap.c:1904:9: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
openwsman-2.8.1/build/bindings/python/openwsman_wrap.c:14775:22: enter_function: entry to ‘Client_swigregister’
openwsman-2.8.1/build/bindings/python/openwsman_wrap.c:14777:8: call_function: calling ‘SWIG_Python_UnpackTuple’ from ‘Client_swigregister’
openwsman-2.8.1/build/bindings/python/openwsman_wrap.c:14777:8: return_function: returning to ‘Client_swigregister’ from ‘SWIG_Python_UnpackTuple’
openwsman-2.8.1/build/bindings/python/openwsman_wrap.c:14777:6: branch_false: following ‘false’ branch...
openwsman-2.8.1/build/bindings/python/openwsman_wrap.c:14778:3: branch_false: ...to here
openwsman-2.8.1/build/bindings/python/openwsman_wrap.c:14778:51: call_function: calling ‘SwigPyClientData_New’ from ‘Client_swigregister’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def16]
openwsman-2.8.1/build/bindings/python/openwsman_wrap.c:1909:22: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
openwsman-2.8.1/build/bindings/python/openwsman_wrap.c:14775:22: enter_function: entry to ‘Client_swigregister’
openwsman-2.8.1/build/bindings/python/openwsman_wrap.c:14777:8: call_function: calling ‘SWIG_Python_UnpackTuple’ from ‘Client_swigregister’
openwsman-2.8.1/build/bindings/python/openwsman_wrap.c:14777:8: return_function: returning to ‘Client_swigregister’ from ‘SWIG_Python_UnpackTuple’
openwsman-2.8.1/build/bindings/python/openwsman_wrap.c:14777:6: branch_false: following ‘false’ branch...
openwsman-2.8.1/build/bindings/python/openwsman_wrap.c:14778:3: branch_false: ...to here
openwsman-2.8.1/build/bindings/python/openwsman_wrap.c:14778:51: call_function: calling ‘SwigPyClientData_New’ from ‘Client_swigregister’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def17]
openwsman-2.8.1/build/bindings/python/openwsman_wrap.c:1911:25: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
openwsman-2.8.1/build/bindings/python/openwsman_wrap.c:14775:22: enter_function: entry to ‘Client_swigregister’
openwsman-2.8.1/build/bindings/python/openwsman_wrap.c:14777:8: call_function: calling ‘SWIG_Python_UnpackTuple’ from ‘Client_swigregister’
openwsman-2.8.1/build/bindings/python/openwsman_wrap.c:14777:8: return_function: returning to ‘Client_swigregister’ from ‘SWIG_Python_UnpackTuple’
openwsman-2.8.1/build/bindings/python/openwsman_wrap.c:14777:6: branch_false: following ‘false’ branch...
openwsman-2.8.1/build/bindings/python/openwsman_wrap.c:14778:3: branch_false: ...to here
openwsman-2.8.1/build/bindings/python/openwsman_wrap.c:14778:51: call_function: calling ‘SwigPyClientData_New’ from ‘Client_swigregister’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def18]
openwsman-2.8.1/build/bindings/python/openwsman_wrap.c:1927:21: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
openwsman-2.8.1/build/bindings/python/openwsman_wrap.c:14775:22: enter_function: entry to ‘Client_swigregister’
openwsman-2.8.1/build/bindings/python/openwsman_wrap.c:14777:8: call_function: calling ‘SWIG_Python_UnpackTuple’ from ‘Client_swigregister’
openwsman-2.8.1/build/bindings/python/openwsman_wrap.c:14777:8: return_function: returning to ‘Client_swigregister’ from ‘SWIG_Python_UnpackTuple’
openwsman-2.8.1/build/bindings/python/openwsman_wrap.c:14777:6: branch_false: following ‘false’ branch...
openwsman-2.8.1/build/bindings/python/openwsman_wrap.c:14778:3: branch_false: ...to here
openwsman-2.8.1/build/bindings/python/openwsman_wrap.c:14778:51: call_function: calling ‘SwigPyClientData_New’ from ‘Client_swigregister’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def19]
openwsman-2.8.1/build/bindings/python/openwsman_wrap.c:1928:9: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
openwsman-2.8.1/build/bindings/python/openwsman_wrap.c:14775:22: enter_function: entry to ‘Client_swigregister’
openwsman-2.8.1/build/bindings/python/openwsman_wrap.c:14777:8: call_function: calling ‘SWIG_Python_UnpackTuple’ from ‘Client_swigregister’
openwsman-2.8.1/build/bindings/python/openwsman_wrap.c:14777:8: return_function: returning to ‘Client_swigregister’ from ‘SWIG_Python_UnpackTuple’
openwsman-2.8.1/build/bindings/python/openwsman_wrap.c:14777:6: branch_false: following ‘false’ branch...
openwsman-2.8.1/build/bindings/python/openwsman_wrap.c:14778:3: branch_false: ...to here
openwsman-2.8.1/build/bindings/python/openwsman_wrap.c:14778:51: call_function: calling ‘SwigPyClientData_New’ from ‘Client_swigregister’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def20]
openwsman-2.8.1/build/bindings/python/openwsman_wrap.c:1929:7: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
openwsman-2.8.1/build/bindings/python/openwsman_wrap.c:14775:22: enter_function: entry to ‘Client_swigregister’
openwsman-2.8.1/build/bindings/python/openwsman_wrap.c:14777:8: call_function: calling ‘SWIG_Python_UnpackTuple’ from ‘Client_swigregister’
openwsman-2.8.1/build/bindings/python/openwsman_wrap.c:14777:8: return_function: returning to ‘Client_swigregister’ from ‘SWIG_Python_UnpackTuple’
openwsman-2.8.1/build/bindings/python/openwsman_wrap.c:14777:6: branch_false: following ‘false’ branch...
openwsman-2.8.1/build/bindings/python/openwsman_wrap.c:14778:3: branch_false: ...to here
openwsman-2.8.1/build/bindings/python/openwsman_wrap.c:14778:51: call_function: calling ‘SwigPyClientData_New’ from ‘Client_swigregister’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def21]
openwsman-2.8.1/build/bindings/python/openwsman_wrap.c:4637:5: warning[-Wanalyzer-malloc-leak]: leak of ‘s’
openwsman-2.8.1/build/bindings/python/openwsman_wrap.c:9452:22: enter_function: entry to ‘_wrap_new_Status’
openwsman-2.8.1/build/bindings/python/openwsman_wrap.c:9468:8: call_function: calling ‘SWIG_Python_UnpackTuple’ from ‘_wrap_new_Status’
openwsman-2.8.1/build/bindings/python/openwsman_wrap.c:9468:8: return_function: returning to ‘_wrap_new_Status’ from ‘SWIG_Python_UnpackTuple’
openwsman-2.8.1/build/bindings/python/openwsman_wrap.c:9468:6: branch_false: following ‘false’ branch...
openwsman-2.8.1/build/bindings/python/openwsman_wrap.c:9469:7: branch_false: ...to here
openwsman-2.8.1/build/bindings/python/openwsman_wrap.c:9483:6: branch_false: following ‘false’ branch...
openwsman-2.8.1/build/bindings/python/openwsman_wrap.c:9490:12: branch_false: ...to here
openwsman-2.8.1/build/bindings/python/openwsman_wrap.c:9490:12: call_function: calling ‘new__WsmanStatus’ from ‘_wrap_new_Status’
Error: CPPCHECK_WARNING (CWE-476): [#def22]
openwsman-2.8.1/build/bindings/python/openwsman_wrap.c:4641: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: s
Error: CPPCHECK_WARNING (CWE-457): [#def23]
openwsman-2.8.1/build/bindings/python/openwsman_wrap.c:11552: error[legacyUninitvar]: Uninitialized variable: arg1
Error: CPPCHECK_WARNING (CWE-457): [#def24]
openwsman-2.8.1/build/bindings/python/openwsman_wrap.c:11606: error[legacyUninitvar]: Uninitialized variable: arg1
Error: COMPILER_WARNING (CWE-563): [#def25]
openwsman-2.8.1/include/wsman-soap.h:49: included_from: Included from here.
openwsman-2.8.1/examples/serialize.c:45: included_from: Included from here.
openwsman-2.8.1/examples/serialize.c: scope_hint: In function ‘example2’
openwsman-2.8.1/examples/serialize.c:225:23: warning[-Wunused-variable]: unused variable ‘Foo_TypeInfo’
openwsman-2.8.1/include/wsman-xml-serializer.h:631:19: note: in definition of macro ‘SER_END_ITEMS’
Error: COMPILER_WARNING (CWE-563): [#def26]
openwsman-2.8.1/examples/serialize.c: scope_hint: In function ‘example4’
openwsman-2.8.1/examples/serialize.c:374:67: warning[-Wunused-variable]: unused variable ‘Embed_TypeInfo’
openwsman-2.8.1/include/wsman-xml-serializer.h:631:19: note: in definition of macro ‘SER_END_ITEMS’
Error: COMPILER_WARNING (CWE-563): [#def27]
openwsman-2.8.1/examples/serialize.c: scope_hint: In function ‘example6’
openwsman-2.8.1/examples/serialize.c:575:27: warning[-Wunused-variable]: unused variable ‘Dummy_TypeInfo’
openwsman-2.8.1/include/wsman-xml-serializer.h:631:19: note: in definition of macro ‘SER_END_ITEMS’
Error: COMPILER_WARNING (CWE-563): [#def28]
openwsman-2.8.1/examples/serialize.c:691:58: warning[-Wunused-variable]: unused variable ‘SelectorSet_TypeInfo’
openwsman-2.8.1/include/wsman-xml-serializer.h:631:19: note: in definition of macro ‘SER_END_ITEMS’
Error: COMPILER_WARNING (CWE-563): [#def29]
openwsman-2.8.1/examples/serialize.c: scope_hint: In function ‘example7’
openwsman-2.8.1/examples/serialize.c:702:27: warning[-Wunused-variable]: unused variable ‘ReferenceParameters_TypeInfo’
openwsman-2.8.1/include/wsman-xml-serializer.h:631:19: note: in definition of macro ‘SER_END_ITEMS’
Error: COMPILER_WARNING (CWE-563): [#def30]
openwsman-2.8.1/examples/serialize.c: scope_hint: In function ‘example9’
openwsman-2.8.1/examples/serialize.c:861:23: warning[-Wunused-variable]: unused variable ‘empty_TypeInfo’
openwsman-2.8.1/include/wsman-xml-serializer.h:631:19: note: in definition of macro ‘SER_END_ITEMS’
Error: COMPILER_WARNING (CWE-563): [#def31]
openwsman-2.8.1/examples/serialize.c: scope_hint: In function ‘example11’
openwsman-2.8.1/examples/serialize.c:931:23: warning[-Wunused-variable]: unused variable ‘Foo_TypeInfo’
openwsman-2.8.1/include/wsman-xml-serializer.h:631:19: note: in definition of macro ‘SER_END_ITEMS’
Error: COMPILER_WARNING (CWE-563): [#def32]
openwsman-2.8.1/examples/serialize.c:1024:24: warning[-Wunused-variable]: unused variable ‘myshorts’
Error: COMPILER_WARNING (CWE-563): [#def33]
openwsman-2.8.1/examples/serialize.c:1065:23: warning[-Wunused-variable]: unused variable ‘empty_TypeInfo’
openwsman-2.8.1/include/wsman-xml-serializer.h:631:19: note: in definition of macro ‘SER_END_ITEMS’
Error: COMPILER_WARNING (CWE-563): [#def34]
openwsman-2.8.1/examples/serialize.c: scope_hint: In function ‘example14’
openwsman-2.8.1/examples/serialize.c:1075:11: warning[-Wunused-variable]: unused variable ‘a1’
Error: COMPILER_WARNING (CWE-563): [#def35]
openwsman-2.8.1/examples/serialize.c: scope_hint: In function ‘main’
openwsman-2.8.1/examples/serialize.c:1106:14: warning[-Wunused-but-set-variable]: variable ‘retval’ set but not used
Error: COMPILER_WARNING (CWE-563): [#def36]
openwsman-2.8.1/examples/serialize.c: scope_hint: In function ‘example13’
openwsman-2.8.1/include/wsman-xml-serializer.h:513:19: warning[-Wunused-variable]: unused variable ‘uint16_TypeInfo’
openwsman-2.8.1/examples/serialize.c:1031:9: note: in expansion of macro ‘SER_TYPEINFO_UINT16’
Error: COMPILER_WARNING (CWE-563): [#def37]
openwsman-2.8.1/include/wsman-xml-serializer.h:518:19: warning[-Wunused-variable]: unused variable ‘int16_TypeInfo’
openwsman-2.8.1/examples/serialize.c:1070:9: note: in expansion of macro ‘SER_TYPEINFO_INT16’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def38]
openwsman-2.8.1/src/authenticators/file/file_auth.c:120:17: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(filename, "r")’
openwsman-2.8.1/src/authenticators/file/file_auth.c:104:12: branch_false: following ‘false’ branch...
openwsman-2.8.1/src/authenticators/file/file_auth.c:109:22: branch_false: ...to here
openwsman-2.8.1/src/authenticators/file/file_auth.c:110:20: acquire_resource: opened here
openwsman-2.8.1/src/authenticators/file/file_auth.c:111:12: branch_false: following ‘false’ branch...
branch_false: ...to here
openwsman-2.8.1/src/authenticators/file/file_auth.c:117:16: branch_true: following ‘true’ branch...
openwsman-2.8.1/src/authenticators/file/file_auth.c:118:21: branch_true: ...to here
openwsman-2.8.1/src/authenticators/file/file_auth.c:120:17: danger: ‘fopen(filename, "r")’ leaks here; was opened at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def39]
openwsman-2.8.1/src/authenticators/file/file_auth.c:120:17: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(filename, "r")’
openwsman-2.8.1/src/authenticators/file/file_auth.c:104:12: branch_false: following ‘false’ branch...
openwsman-2.8.1/src/authenticators/file/file_auth.c:109:22: branch_false: ...to here
openwsman-2.8.1/src/authenticators/file/file_auth.c:110:20: acquire_memory: allocated here
openwsman-2.8.1/src/authenticators/file/file_auth.c:111:12: branch_false: following ‘false’ branch...
branch_false: ...to here
openwsman-2.8.1/src/authenticators/file/file_auth.c:117:16: branch_true: following ‘true’ branch...
openwsman-2.8.1/src/authenticators/file/file_auth.c:118:21: branch_true: ...to here
openwsman-2.8.1/src/authenticators/file/file_auth.c:120:17: danger: ‘fopen(filename, "r")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def40]
openwsman-2.8.1/src/authenticators/file/file_auth.c:133:25: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(filename, "r")’
openwsman-2.8.1/src/authenticators/file/file_auth.c:104:12: branch_false: following ‘false’ branch...
openwsman-2.8.1/src/authenticators/file/file_auth.c:109:22: branch_false: ...to here
openwsman-2.8.1/src/authenticators/file/file_auth.c:110:20: acquire_resource: opened here
openwsman-2.8.1/src/authenticators/file/file_auth.c:111:12: branch_false: following ‘false’ branch...
branch_false: ...to here
openwsman-2.8.1/src/authenticators/file/file_auth.c:117:16: branch_true: following ‘true’ branch...
openwsman-2.8.1/src/authenticators/file/file_auth.c:118:21: branch_true: ...to here
openwsman-2.8.1/src/authenticators/file/file_auth.c:133:25: danger: ‘fopen(filename, "r")’ leaks here; was opened at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def41]
openwsman-2.8.1/src/authenticators/file/file_auth.c:133:25: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(filename, "r")’
openwsman-2.8.1/src/authenticators/file/file_auth.c:104:12: branch_false: following ‘false’ branch...
openwsman-2.8.1/src/authenticators/file/file_auth.c:109:22: branch_false: ...to here
openwsman-2.8.1/src/authenticators/file/file_auth.c:110:20: acquire_memory: allocated here
openwsman-2.8.1/src/authenticators/file/file_auth.c:111:12: branch_false: following ‘false’ branch...
branch_false: ...to here
openwsman-2.8.1/src/authenticators/file/file_auth.c:117:16: branch_true: following ‘true’ branch...
openwsman-2.8.1/src/authenticators/file/file_auth.c:118:21: branch_true: ...to here
openwsman-2.8.1/src/authenticators/file/file_auth.c:133:25: danger: ‘fopen(filename, "r")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
Error: CPPCHECK_WARNING (CWE-476): [#def42]
openwsman-2.8.1/src/lib/test/test_string.c:51: warning[nullPointer]: Possible null pointer dereference: query
Error: GCC_ANALYZER_WARNING (CWE-457): [#def43]
openwsman-2.8.1/src/lib/u/base64.c:155:39: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘b[1]’
openwsman-2.8.1/src/lib/u/base64.c:134:12: branch_false: following ‘false’ branch...
openwsman-2.8.1/src/lib/u/base64.c:139:14: branch_false: ...to here
openwsman-2.8.1/src/lib/u/base64.c:139:12: branch_false: following ‘false’ branch...
branch_false: ...to here
openwsman-2.8.1/src/lib/u/base64.c:143:20: branch_false: following ‘false’ branch...
branch_false: ...to here
openwsman-2.8.1/src/lib/u/base64.c:146:29: branch_true: following ‘true’ branch (when ‘i != 4’)...
openwsman-2.8.1/src/lib/u/base64.c:147:30: branch_true: ...to here
openwsman-2.8.1/src/lib/u/base64.c:148:28: branch_false: following ‘false’ branch...
openwsman-2.8.1/src/lib/u/base64.c:152:25: branch_false: ...to here
openwsman-2.8.1/src/lib/u/base64.c:146:29: branch_false: following ‘false’ branch (when ‘i == 4’)...
openwsman-2.8.1/src/lib/u/base64.c:155:25: branch_false: ...to here
openwsman-2.8.1/src/lib/u/base64.c:155:39: danger: use of uninitialized value ‘b[1]’ here
Error: GCC_ANALYZER_WARNING (CWE-476): [#def44]
openwsman-2.8.1/src/lib/u/debug.c:67:52: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘n’
openwsman-2.8.1/src/lib/u/debug.c:52:12: branch_false: following ‘false’ branch...
openwsman-2.8.1/src/lib/u/debug.c:54:13: branch_false: ...to here
openwsman-2.8.1/src/lib/u/debug.c:65:12: branch_true: following ‘true’ branch...
openwsman-2.8.1/src/lib/u/debug.c:66:30: branch_true: ...to here
openwsman-2.8.1/src/lib/u/debug.c:66:30: branch_false: following ‘false’ branch...
openwsman-2.8.1/src/lib/u/debug.c:67:52: branch_false: ...to here
openwsman-2.8.1/src/lib/u/debug.c:67:52: danger: dereference of NULL ‘n’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def45]
openwsman-2.8.1/src/lib/u/debug.c:130:15: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
openwsman-2.8.1/src/lib/u/debug.c:125:12: branch_false: following ‘false’ branch...
openwsman-2.8.1/src/lib/u/debug.c:129:9: branch_false: ...to here
openwsman-2.8.1/src/lib/u/debug.c:129:9: acquire_resource: ‘va_start’ called here
openwsman-2.8.1/src/lib/u/debug.c:130:15: danger: missing call to ‘va_end’ to match ‘va_start’ at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def46]
openwsman-2.8.1/src/lib/u/debug.c:160:16: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
openwsman-2.8.1/src/lib/u/debug.c:155:12: branch_false: following ‘false’ branch...
openwsman-2.8.1/src/lib/u/debug.c:159:9: branch_false: ...to here
openwsman-2.8.1/src/lib/u/debug.c:159:9: acquire_resource: ‘va_start’ called here
openwsman-2.8.1/src/lib/u/debug.c:160:16: danger: missing call to ‘va_end’ to match ‘va_start’ at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def47]
openwsman-2.8.1/src/lib/u/hash.c:243:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘low_tail’
openwsman-2.8.1/src/lib/u/hash.c:659:10: enter_function: entry to ‘ow_hash_delete’
openwsman-2.8.1/src/lib/u/hash.c:664:5: call_function: calling ‘ow_hash_lookup’ from ‘ow_hash_delete’
openwsman-2.8.1/src/lib/u/hash.c:664:5: return_function: returning to ‘ow_hash_delete’ from ‘ow_hash_lookup’
openwsman-2.8.1/src/lib/u/hash.c:664:5: branch_true: following ‘true’ branch...
openwsman-2.8.1/src/lib/u/hash.c:665:5: branch_true: ...to here
openwsman-2.8.1/src/lib/u/hash.c:665:5: branch_true: following ‘true’ branch...
openwsman-2.8.1/src/lib/u/hash.c:667:9: branch_true: ...to here
openwsman-2.8.1/src/lib/u/hash.c:667:8: branch_true: following ‘true’ branch...
openwsman-2.8.1/src/lib/u/hash.c:667:9: branch_true: following ‘true’ branch...
openwsman-2.8.1/src/lib/u/hash.c:669:9: branch_true: ...to here
openwsman-2.8.1/src/lib/u/hash.c:669:9: call_function: calling ‘shrink_table’ from ‘ow_hash_delete’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def48]
openwsman-2.8.1/src/lib/u/iniparser.c:186:11: warning[-Wanalyzer-null-argument]: use of NULL ‘key’ where non-null expected
openwsman-2.8.1/src/lib/u/iniparser.c:707:8: enter_function: entry to ‘iniparser_getstring’
openwsman-2.8.1/src/lib/u/iniparser.c:713:12: call_function: calling ‘strlwc’ from ‘iniparser_getstring’
openwsman-2.8.1/src/lib/u/iniparser.c:713:12: return_function: returning to ‘iniparser_getstring’ from ‘strlwc’
openwsman-2.8.1/src/lib/u/iniparser.c:713:12: call_function: calling ‘dictionary_get’ from ‘iniparser_getstring’
Error: GCC_ANALYZER_WARNING (CWE-126): [#def49]
openwsman-2.8.1/src/lib/u/iniparser.c:506:9: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
openwsman-2.8.1/src/lib/u/iniparser.c:897:14: enter_function: entry to ‘iniparser_new’
openwsman-2.8.1/src/lib/u/iniparser.c:907:8: branch_false: following ‘false’ branch...
openwsman-2.8.1/src/lib/u/iniparser.c:911:5: branch_false: ...to here
openwsman-2.8.1/src/lib/u/iniparser.c:916:9: call_function: calling ‘dictionary_new’ from ‘iniparser_new’
openwsman-2.8.1/src/lib/u/iniparser.c:916:9: return_function: returning to ‘iniparser_new’ from ‘dictionary_new’
openwsman-2.8.1/src/lib/u/iniparser.c:917:8: branch_false: following ‘false’ branch...
branch_false: ...to here
openwsman-2.8.1/src/lib/u/iniparser.c:921:12: branch_true: following ‘true’ branch...
openwsman-2.8.1/src/lib/u/iniparser.c:922:17: branch_true: ...to here
openwsman-2.8.1/src/lib/u/iniparser.c:922:17: call_function: calling ‘strskp’ from ‘iniparser_new’
openwsman-2.8.1/src/lib/u/iniparser.c:922:17: return_function: returning to ‘iniparser_new’ from ‘strskp’
openwsman-2.8.1/src/lib/u/iniparser.c:928:16: branch_true: following ‘true’ branch...
openwsman-2.8.1/src/lib/u/iniparser.c:930:30: branch_true: ...to here
openwsman-2.8.1/src/lib/u/iniparser.c:930:30: call_function: calling ‘strlwc’ from ‘iniparser_new’
openwsman-2.8.1/src/lib/u/iniparser.c:930:30: return_function: returning to ‘iniparser_new’ from ‘strlwc’
openwsman-2.8.1/src/lib/u/iniparser.c:932:21: call_function: calling ‘iniparser_add_entry’ from ‘iniparser_new’
Error: GCC_ANALYZER_WARNING (CWE-674): [#def50]
openwsman-2.8.1/src/lib/u/list.c:395:9: warning[-Wanalyzer-infinite-recursion]: infinite recursion
openwsman-2.8.1/src/lib/u/list.c:376:6: enter_function: initial entry to ‘ow_list_sort’
openwsman-2.8.1/src/lib/u/list.c:382:8: branch_true: following ‘true’ branch...
openwsman-2.8.1/src/lib/u/list.c:383:9: branch_true: ...to here
openwsman-2.8.1/src/lib/u/list.c:386:9: call_function: inlined call to ‘ow_list_init’ from ‘ow_list_sort’
openwsman-2.8.1/src/lib/u/list.c:393:9: call_function: calling ‘ow_list_transfer’ from ‘ow_list_sort’
openwsman-2.8.1/src/lib/u/list.c:393:9: return_function: returning to ‘ow_list_sort’ from ‘ow_list_transfer’
openwsman-2.8.1/src/lib/u/list.c:395:9: call_function: calling ‘ow_list_sort’ from ‘ow_list_sort’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def51]
openwsman-2.8.1/src/lib/u/log.c:86:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
openwsman-2.8.1/src/lib/u/log.c:74:5: acquire_resource: ‘va_start’ called here
openwsman-2.8.1/src/lib/u/log.c:76:7: branch_false: following ‘false’ branch...
openwsman-2.8.1/src/lib/u/log.c:86:9: branch_false: ...to here
openwsman-2.8.1/src/lib/u/log.c:86:9: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def52]
openwsman-2.8.1/src/lib/u/uerr.c:53:29: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
openwsman-2.8.1/src/lib/u/uerr.c:43:12: branch_false: following ‘false’ branch (when ‘error’ is non-NULL)...
openwsman-2.8.1/src/lib/u/uerr.c:46:18: branch_false: ...to here
openwsman-2.8.1/src/lib/u/uerr.c:47:12: branch_false: following ‘false’ branch...
openwsman-2.8.1/src/lib/u/uerr.c:51:9: branch_false: ...to here
openwsman-2.8.1/src/lib/u/uerr.c:52:9: acquire_resource: ‘va_start’ called here
openwsman-2.8.1/src/lib/u/uerr.c:53:29: danger: missing call to ‘va_end’ to match ‘va_start’ at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def53]
openwsman-2.8.1/src/lib/u/uoption.c:72:22: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
openwsman-2.8.1/src/lib/u/uoption.c:665:6: enter_function: entry to ‘u_option_context_parse’
openwsman-2.8.1/src/lib/u/uoption.c:683:12: branch_false: following ‘false’ branch (when ‘ctx’ is non-NULL)...
openwsman-2.8.1/src/lib/u/uoption.c:686:46: branch_false: ...to here
openwsman-2.8.1/src/lib/u/uoption.c:688:12: branch_false: following ‘false’ branch...
openwsman-2.8.1/src/lib/u/uoption.c:692:18: branch_false: ...to here
openwsman-2.8.1/src/lib/u/uoption.c:698:12: branch_false: following ‘false’ branch (when ‘argptr’ is NULL)...
openwsman-2.8.1/src/lib/u/uoption.c:701:34: branch_false: ...to here
openwsman-2.8.1/src/lib/u/uoption.c:703:12: branch_false: following ‘false’ branch...
branch_false: ...to here
openwsman-2.8.1/src/lib/u/uoption.c:716:41: call_function: calling ‘context_get_number_entries’ from ‘u_option_context_parse’
openwsman-2.8.1/src/lib/u/uoption.c:716:41: return_function: returning to ‘u_option_context_parse’ from ‘context_get_number_entries’
openwsman-2.8.1/src/lib/u/uoption.c:717:12: branch_false: following ‘false’ branch...
branch_false: ...to here
openwsman-2.8.1/src/lib/u/uoption.c:722:20: branch_true: following ‘true’ branch...
openwsman-2.8.1/src/lib/u/uoption.c:723:27: branch_true: ...to here
openwsman-2.8.1/src/lib/u/uoption.c:723:20: branch_false: following ‘false’ branch...
openwsman-2.8.1/src/lib/u/uoption.c:730:20: branch_false: ...to here
openwsman-2.8.1/src/lib/u/uoption.c:730:20: branch_false: following ‘false’ branch (when ‘next_shopt == 0’)...
openwsman-2.8.1/src/lib/u/uoption.c:735:25: branch_false: ...to here
openwsman-2.8.1/src/lib/u/uoption.c:755:33: call_function: calling ‘find_short_opt’ from ‘u_option_context_parse’
Error: COMPILER_WARNING (CWE-1164): [#def54]
openwsman-2.8.1/src/lib/wsman-curl-client-transport.c:269:1: warning[-Wunused-function]: ‘sslctxfun’ defined but not used
Error: COMPILER_WARNING (CWE-9001): [#def55]
openwsman-2.8.1/src/lib/wsman-curl-client-transport.c:302:15: warning[-Wattribute-warning]: call to ‘Wcurl_easy_setopt_err_long’ declared with attribute warning: curl_easy_setopt expects a long argument
Error: COMPILER_WARNING (CWE-9001): [#def56]
openwsman-2.8.1/src/lib/wsman-curl-client-transport.c:302:15: warning[-Wattribute-warning]: call to ‘Wcurl_easy_setopt_err_long’ declared with attribute warning: curl_easy_setopt expects a long argument
Error: COMPILER_WARNING (CWE-9001): [#def57]
openwsman-2.8.1/src/lib/wsman-curl-client-transport.c:310:13: warning[-Wattribute-warning]: call to ‘Wcurl_easy_setopt_err_long’ declared with attribute warning: curl_easy_setopt expects a long argument
Error: COMPILER_WARNING (CWE-9001): [#def58]
openwsman-2.8.1/src/lib/wsman-curl-client-transport.c:310:13: warning[-Wattribute-warning]: call to ‘Wcurl_easy_setopt_err_long’ declared with attribute warning: curl_easy_setopt expects a long argument
Error: COMPILER_WARNING (CWE-9001): [#def59]
openwsman-2.8.1/src/lib/wsman-curl-client-transport.c:317:13: warning[-Wattribute-warning]: call to ‘Wcurl_easy_setopt_err_long’ declared with attribute warning: curl_easy_setopt expects a long argument
Error: COMPILER_WARNING (CWE-9001): [#def60]
openwsman-2.8.1/src/lib/wsman-curl-client-transport.c:317:13: warning[-Wattribute-warning]: call to ‘Wcurl_easy_setopt_err_long’ declared with attribute warning: curl_easy_setopt expects a long argument
Error: COMPILER_WARNING (CWE-9001): [#def61]
openwsman-2.8.1/src/lib/wsman-curl-client-transport.c: scope_hint: In function ‘wsmc_handler’
openwsman-2.8.1/src/lib/wsman-curl-client-transport.c:554:13: warning[-Wattribute-warning]: call to ‘Wcurl_easy_setopt_err_long’ declared with attribute warning: curl_easy_setopt expects a long argument
Error: COMPILER_WARNING (CWE-9001): [#def62]
openwsman-2.8.1/src/lib/wsman-curl-client-transport.c:597:25: warning[-Wattribute-warning]: call to ‘Wcurl_easy_setopt_err_long’ declared with attribute warning: curl_easy_setopt expects a long argument
Error: GCC_ANALYZER_WARNING (CWE-404): [#def63]
openwsman-2.8.1/src/lib/wsman-libxml2-binding.c:106:18: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
openwsman-2.8.1/src/lib/wsman-libxml2-binding.c:105:9: acquire_resource: ‘va_start’ called here
openwsman-2.8.1/src/lib/wsman-libxml2-binding.c:106:18: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def64]
openwsman-2.8.1/src/lib/wsman-server.c:204:34: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘node’
openwsman-2.8.1/src/lib/wsman-server.c:197:11: branch_false: following ‘false’ branch...
openwsman-2.8.1/src/lib/wsman-server.c:198:24: branch_false: ...to here
openwsman-2.8.1/src/lib/wsman-server.c:202:11: branch_true: following ‘true’ branch...
openwsman-2.8.1/src/lib/wsman-server.c:203:33: branch_true: ...to here
openwsman-2.8.1/src/lib/wsman-server.c:203:33: branch_false: following ‘false’ branch...
openwsman-2.8.1/src/lib/wsman-server.c:204:34: branch_false: ...to here
openwsman-2.8.1/src/lib/wsman-server.c:204:34: danger: dereference of NULL ‘node’
Error: COMPILER_WARNING: [#def65]
openwsman-2.8.1/src/lib/wsman-server.c: scope_hint: In function ‘wsman_repos_notification_dispatcher’
openwsman-2.8.1/src/lib/wsman-server.c:206:17: warning[-Wstringop-truncation]: ‘strncpy’ specified bound 64 equals destination size
Error: COMPILER_WARNING: [#def66]
openwsman-2.8.1/src/lib/wsman-soap.c: scope_hint: In function ‘wse_subscribe_stub’
openwsman-2.8.1/src/lib/wsman-soap.c:1812:17: warning[-Wstringop-truncation]: ‘strncpy’ specified bound 64 equals destination size
Error: GCC_ANALYZER_WARNING (CWE-476): [#def67]
openwsman-2.8.1/src/lib/wsman-soap.c:1991:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘t’
openwsman-2.8.1/src/lib/wsman-soap.c:1954:1: enter_function: entry to ‘wse_unsubscribe_stub’
openwsman-2.8.1/src/lib/wsman-soap.c:1962:32: call_function: calling ‘soap_get_op_soap’ from ‘wse_unsubscribe_stub’
openwsman-2.8.1/src/lib/wsman-soap.c:1962:32: return_function: returning to ‘wse_unsubscribe_stub’ from ‘soap_get_op_soap’
openwsman-2.8.1/src/lib/wsman-soap.c:1964:12: branch_false: following ‘false’ branch...
openwsman-2.8.1/src/lib/wsman-soap.c:1969:31: branch_false: ...to here
openwsman-2.8.1/src/lib/wsman-soap.c:1974:32: call_function: calling ‘soap_get_op_doc’ from ‘wse_unsubscribe_stub’
openwsman-2.8.1/src/lib/wsman-soap.c:1974:32: return_function: returning to ‘wse_unsubscribe_stub’ from ‘soap_get_op_doc’
openwsman-2.8.1/src/lib/wsman-soap.c:1977:18: call_function: calling ‘ws_create_ep_context’ from ‘wse_unsubscribe_stub’
openwsman-2.8.1/src/lib/wsman-soap.c:1977:18: return_function: returning to ‘wse_unsubscribe_stub’ from ‘ws_create_ep_context’
openwsman-2.8.1/src/lib/wsman-soap.c:1981:11: branch_false: following ‘false’ branch...
openwsman-2.8.1/src/lib/wsman-soap.c:1986:22: branch_false: ...to here
openwsman-2.8.1/src/lib/wsman-soap.c:1989:11: branch_true: following ‘true’ branch...
openwsman-2.8.1/src/lib/wsman-soap.c:1990:21: branch_false: following ‘false’ branch...
openwsman-2.8.1/src/lib/wsman-soap.c:1991:17: branch_false: ...to here
openwsman-2.8.1/src/lib/wsman-soap.c:1991:17: danger: dereference of NULL ‘t’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def68]
openwsman-2.8.1/src/lib/wsman-soap.c:2023:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ws_create_ep_context(soap_get_op_soap(op), soap_get_op_doc(op, 1))’
openwsman-2.8.1/src/lib/wsman-soap.c:1954:1: enter_function: entry to ‘wse_unsubscribe_stub’
openwsman-2.8.1/src/lib/wsman-soap.c:1962:32: call_function: calling ‘soap_get_op_soap’ from ‘wse_unsubscribe_stub’
openwsman-2.8.1/src/lib/wsman-soap.c:1962:32: return_function: returning to ‘wse_unsubscribe_stub’ from ‘soap_get_op_soap’
openwsman-2.8.1/src/lib/wsman-soap.c:1964:12: branch_false: following ‘false’ branch...
openwsman-2.8.1/src/lib/wsman-soap.c:1969:31: branch_false: ...to here
openwsman-2.8.1/src/lib/wsman-soap.c:1974:32: call_function: calling ‘soap_get_op_doc’ from ‘wse_unsubscribe_stub’
openwsman-2.8.1/src/lib/wsman-soap.c:1974:32: return_function: returning to ‘wse_unsubscribe_stub’ from ‘soap_get_op_doc’
openwsman-2.8.1/src/lib/wsman-soap.c:1977:18: call_function: calling ‘ws_create_ep_context’ from ‘wse_unsubscribe_stub’
openwsman-2.8.1/src/lib/wsman-soap.c:1977:18: return_function: returning to ‘wse_unsubscribe_stub’ from ‘ws_create_ep_context’
openwsman-2.8.1/src/lib/wsman-soap.c:1978:9: call_function: calling ‘wsman_status_init’ from ‘wse_unsubscribe_stub’
openwsman-2.8.1/src/lib/wsman-soap.c:1978:9: return_function: returning to ‘wse_unsubscribe_stub’ from ‘wsman_status_init’
openwsman-2.8.1/src/lib/wsman-soap.c:2023:9: danger: dereference of NULL ‘ws_create_ep_context(soap_get_op_soap(op), soap_get_op_doc(op, 1))’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def69]
openwsman-2.8.1/src/lib/wsman-soap.c:2078:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘t’
openwsman-2.8.1/src/lib/wsman-soap.c:2037:1: enter_function: entry to ‘wse_renew_stub’
openwsman-2.8.1/src/lib/wsman-soap.c:2046:32: call_function: calling ‘soap_get_op_soap’ from ‘wse_renew_stub’
openwsman-2.8.1/src/lib/wsman-soap.c:2046:32: return_function: returning to ‘wse_renew_stub’ from ‘soap_get_op_soap’
openwsman-2.8.1/src/lib/wsman-soap.c:2048:12: branch_false: following ‘false’ branch...
openwsman-2.8.1/src/lib/wsman-soap.c:2053:31: branch_false: ...to here
openwsman-2.8.1/src/lib/wsman-soap.c:2060:32: call_function: calling ‘soap_get_op_doc’ from ‘wse_renew_stub’
openwsman-2.8.1/src/lib/wsman-soap.c:2060:32: return_function: returning to ‘wse_renew_stub’ from ‘soap_get_op_doc’
openwsman-2.8.1/src/lib/wsman-soap.c:2062:18: call_function: calling ‘ws_create_ep_context’ from ‘wse_renew_stub’
openwsman-2.8.1/src/lib/wsman-soap.c:2062:18: return_function: returning to ‘wse_renew_stub’ from ‘ws_create_ep_context’
openwsman-2.8.1/src/lib/wsman-soap.c:2068:11: branch_false: following ‘false’ branch...
openwsman-2.8.1/src/lib/wsman-soap.c:2074:9: branch_false: ...to here
openwsman-2.8.1/src/lib/wsman-soap.c:2076:11: branch_true: following ‘true’ branch...
openwsman-2.8.1/src/lib/wsman-soap.c:2077:21: branch_false: following ‘false’ branch...
openwsman-2.8.1/src/lib/wsman-soap.c:2078:17: branch_false: ...to here
openwsman-2.8.1/src/lib/wsman-soap.c:2078:17: danger: dereference of NULL ‘t’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def70]
openwsman-2.8.1/src/lib/wsman-soap.c:2127:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ws_create_ep_context(soap_get_op_soap(op), soap_get_op_doc(op, 1))’
openwsman-2.8.1/src/lib/wsman-soap.c:2037:1: enter_function: entry to ‘wse_renew_stub’
openwsman-2.8.1/src/lib/wsman-soap.c:2046:32: call_function: calling ‘soap_get_op_soap’ from ‘wse_renew_stub’
openwsman-2.8.1/src/lib/wsman-soap.c:2046:32: return_function: returning to ‘wse_renew_stub’ from ‘soap_get_op_soap’
openwsman-2.8.1/src/lib/wsman-soap.c:2048:12: branch_false: following ‘false’ branch...
openwsman-2.8.1/src/lib/wsman-soap.c:2053:31: branch_false: ...to here
openwsman-2.8.1/src/lib/wsman-soap.c:2060:32: call_function: calling ‘soap_get_op_doc’ from ‘wse_renew_stub’
openwsman-2.8.1/src/lib/wsman-soap.c:2060:32: return_function: returning to ‘wse_renew_stub’ from ‘soap_get_op_doc’
openwsman-2.8.1/src/lib/wsman-soap.c:2062:18: call_function: calling ‘ws_create_ep_context’ from ‘wse_renew_stub’
openwsman-2.8.1/src/lib/wsman-soap.c:2062:18: return_function: returning to ‘wse_renew_stub’ from ‘ws_create_ep_context’
openwsman-2.8.1/src/lib/wsman-soap.c:2063:9: call_function: calling ‘wsman_status_init’ from ‘wse_renew_stub’
openwsman-2.8.1/src/lib/wsman-soap.c:2063:9: return_function: returning to ‘wse_renew_stub’ from ‘wsman_status_init’
openwsman-2.8.1/src/lib/wsman-soap.c:2127:9: danger: dereference of NULL ‘ws_create_ep_context(soap_get_op_soap(op), soap_get_op_doc(op, 1))’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def71]
openwsman-2.8.1/src/lib/wsman-subscription-repository.c:111:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(u_strdup_printf("%s/uuid:%s", uri_repository, uuid), "r")’
openwsman-2.8.1/src/lib/wsman-subscription-repository.c:102:12: branch_false: following ‘false’ branch...
openwsman-2.8.1/src/lib/wsman-subscription-repository.c:104:21: branch_false: ...to here
openwsman-2.8.1/src/lib/wsman-subscription-repository.c:105:14: acquire_resource: opened here
openwsman-2.8.1/src/lib/wsman-subscription-repository.c:106:12: branch_false: following ‘false’ branch...
openwsman-2.8.1/src/lib/wsman-subscription-repository.c:111:9: branch_false: ...to here
openwsman-2.8.1/src/lib/wsman-subscription-repository.c:111:9: danger: ‘fopen(u_strdup_printf("%s/uuid:%s", uri_repository, uuid), "r")’ leaks here; was opened at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def72]
openwsman-2.8.1/src/lib/wsman-subscription-repository.c:111:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(u_strdup_printf("%s/uuid:%s", uri_repository, uuid), "r")’
openwsman-2.8.1/src/lib/wsman-subscription-repository.c:102:12: branch_false: following ‘false’ branch...
openwsman-2.8.1/src/lib/wsman-subscription-repository.c:104:21: branch_false: ...to here
openwsman-2.8.1/src/lib/wsman-subscription-repository.c:105:14: acquire_memory: allocated here
openwsman-2.8.1/src/lib/wsman-subscription-repository.c:106:12: branch_false: following ‘false’ branch...
openwsman-2.8.1/src/lib/wsman-subscription-repository.c:111:9: branch_false: ...to here
openwsman-2.8.1/src/lib/wsman-subscription-repository.c:111:9: danger: ‘fopen(u_strdup_printf("%s/uuid:%s", uri_repository, uuid), "r")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def73]
openwsman-2.8.1/src/lib/wsman-subscription-repository.c:116:13: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(u_strdup_printf("%s/uuid:%s", uri_repository, uuid), "r")’
openwsman-2.8.1/src/lib/wsman-subscription-repository.c:102:12: branch_false: following ‘false’ branch...
openwsman-2.8.1/src/lib/wsman-subscription-repository.c:104:21: branch_false: ...to here
openwsman-2.8.1/src/lib/wsman-subscription-repository.c:105:14: acquire_resource: opened here
openwsman-2.8.1/src/lib/wsman-subscription-repository.c:106:12: branch_false: following ‘false’ branch...
openwsman-2.8.1/src/lib/wsman-subscription-repository.c:111:9: branch_false: ...to here
openwsman-2.8.1/src/lib/wsman-subscription-repository.c:112:16: branch_true: following ‘true’ branch...
openwsman-2.8.1/src/lib/wsman-subscription-repository.c:113:11: branch_true: ...to here
openwsman-2.8.1/src/lib/wsman-subscription-repository.c:116:13: danger: ‘fopen(u_strdup_printf("%s/uuid:%s", uri_repository, uuid), "r")’ leaks here; was opened at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def74]
openwsman-2.8.1/src/lib/wsman-subscription-repository.c:116:13: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(u_strdup_printf("%s/uuid:%s", uri_repository, uuid), "r")’
openwsman-2.8.1/src/lib/wsman-subscription-repository.c:102:12: branch_false: following ‘false’ branch...
openwsman-2.8.1/src/lib/wsman-subscription-repository.c:104:21: branch_false: ...to here
openwsman-2.8.1/src/lib/wsman-subscription-repository.c:105:14: acquire_memory: allocated here
openwsman-2.8.1/src/lib/wsman-subscription-repository.c:106:12: branch_false: following ‘false’ branch...
openwsman-2.8.1/src/lib/wsman-subscription-repository.c:111:9: branch_false: ...to here
openwsman-2.8.1/src/lib/wsman-subscription-repository.c:112:16: branch_true: following ‘true’ branch...
openwsman-2.8.1/src/lib/wsman-subscription-repository.c:113:11: branch_true: ...to here
openwsman-2.8.1/src/lib/wsman-subscription-repository.c:116:13: danger: ‘fopen(u_strdup_printf("%s/uuid:%s", uri_repository, uuid), "r")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def75]
openwsman-2.8.1/src/lib/wsman-subscription-repository.c:119:13: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(u_strdup_printf("%s/uuid:%s", uri_repository, uuid), "r")’
openwsman-2.8.1/src/lib/wsman-subscription-repository.c:102:12: branch_false: following ‘false’ branch...
openwsman-2.8.1/src/lib/wsman-subscription-repository.c:104:21: branch_false: ...to here
openwsman-2.8.1/src/lib/wsman-subscription-repository.c:105:14: acquire_resource: opened here
openwsman-2.8.1/src/lib/wsman-subscription-repository.c:106:12: branch_false: following ‘false’ branch...
openwsman-2.8.1/src/lib/wsman-subscription-repository.c:111:9: branch_false: ...to here
openwsman-2.8.1/src/lib/wsman-subscription-repository.c:112:16: branch_true: following ‘true’ branch...
openwsman-2.8.1/src/lib/wsman-subscription-repository.c:113:11: branch_true: ...to here
openwsman-2.8.1/src/lib/wsman-subscription-repository.c:119:13: danger: ‘fopen(u_strdup_printf("%s/uuid:%s", uri_repository, uuid), "r")’ leaks here; was opened at [(3)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def76]
openwsman-2.8.1/src/lib/wsman-subscription-repository.c:119:13: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(u_strdup_printf("%s/uuid:%s", uri_repository, uuid), "r")’
openwsman-2.8.1/src/lib/wsman-subscription-repository.c:102:12: branch_false: following ‘false’ branch...
openwsman-2.8.1/src/lib/wsman-subscription-repository.c:104:21: branch_false: ...to here
openwsman-2.8.1/src/lib/wsman-subscription-repository.c:105:14: acquire_memory: allocated here
openwsman-2.8.1/src/lib/wsman-subscription-repository.c:106:12: branch_false: following ‘false’ branch...
openwsman-2.8.1/src/lib/wsman-subscription-repository.c:111:9: branch_false: ...to here
openwsman-2.8.1/src/lib/wsman-subscription-repository.c:112:16: branch_true: following ‘true’ branch...
openwsman-2.8.1/src/lib/wsman-subscription-repository.c:113:11: branch_true: ...to here
openwsman-2.8.1/src/lib/wsman-subscription-repository.c:119:13: danger: ‘fopen(u_strdup_printf("%s/uuid:%s", uri_repository, uuid), "r")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def77]
openwsman-2.8.1/src/lib/wsman-subscription-repository.c:120:35: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(u_strdup_printf("%s/uuid:%s", uri_repository, uuid), "r")’
openwsman-2.8.1/src/lib/wsman-subscription-repository.c:102:12: branch_false: following ‘false’ branch...
openwsman-2.8.1/src/lib/wsman-subscription-repository.c:104:21: branch_false: ...to here
openwsman-2.8.1/src/lib/wsman-subscription-repository.c:105:14: acquire_resource: opened here
openwsman-2.8.1/src/lib/wsman-subscription-repository.c:106:12: branch_false: following ‘false’ branch...
openwsman-2.8.1/src/lib/wsman-subscription-repository.c:111:9: branch_false: ...to here
openwsman-2.8.1/src/lib/wsman-subscription-repository.c:112:16: branch_true: following ‘true’ branch...
openwsman-2.8.1/src/lib/wsman-subscription-repository.c:113:11: branch_true: ...to here
openwsman-2.8.1/src/lib/wsman-subscription-repository.c:120:35: danger: ‘fopen(u_strdup_printf("%s/uuid:%s", uri_repository, uuid), "r")’ leaks here; was opened at [(3)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def78]
openwsman-2.8.1/src/lib/wsman-subscription-repository.c:120:35: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(u_strdup_printf("%s/uuid:%s", uri_repository, uuid), "r")’
openwsman-2.8.1/src/lib/wsman-subscription-repository.c:102:12: branch_false: following ‘false’ branch...
openwsman-2.8.1/src/lib/wsman-subscription-repository.c:104:21: branch_false: ...to here
openwsman-2.8.1/src/lib/wsman-subscription-repository.c:105:14: acquire_memory: allocated here
openwsman-2.8.1/src/lib/wsman-subscription-repository.c:106:12: branch_false: following ‘false’ branch...
openwsman-2.8.1/src/lib/wsman-subscription-repository.c:111:9: branch_false: ...to here
openwsman-2.8.1/src/lib/wsman-subscription-repository.c:112:16: branch_true: following ‘true’ branch...
openwsman-2.8.1/src/lib/wsman-subscription-repository.c:113:11: branch_true: ...to here
openwsman-2.8.1/src/lib/wsman-subscription-repository.c:120:35: danger: ‘fopen(u_strdup_printf("%s/uuid:%s", uri_repository, uuid), "r")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def79]
openwsman-2.8.1/src/lib/wsman-subscription-repository.c:149:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(u_strdup_printf("%s/uuid:%s", uri_repository, uuid), "r")’
openwsman-2.8.1/src/lib/wsman-subscription-repository.c:140:12: branch_false: following ‘false’ branch...
openwsman-2.8.1/src/lib/wsman-subscription-repository.c:142:21: branch_false: ...to here
openwsman-2.8.1/src/lib/wsman-subscription-repository.c:143:14: acquire_resource: opened here
openwsman-2.8.1/src/lib/wsman-subscription-repository.c:144:12: branch_false: following ‘false’ branch...
openwsman-2.8.1/src/lib/wsman-subscription-repository.c:149:9: branch_false: ...to here
openwsman-2.8.1/src/lib/wsman-subscription-repository.c:149:9: danger: ‘fopen(u_strdup_printf("%s/uuid:%s", uri_repository, uuid), "r")’ leaks here; was opened at [(3)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def80]
openwsman-2.8.1/src/lib/wsman-subscription-repository.c:149:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(u_strdup_printf("%s/uuid:%s", uri_repository, uuid), "r")’
openwsman-2.8.1/src/lib/wsman-subscription-repository.c:140:12: branch_false: following ‘false’ branch...
openwsman-2.8.1/src/lib/wsman-subscription-repository.c:142:21: branch_false: ...to here
openwsman-2.8.1/src/lib/wsman-subscription-repository.c:143:14: acquire_memory: allocated here
openwsman-2.8.1/src/lib/wsman-subscription-repository.c:144:12: branch_false: following ‘false’ branch...
openwsman-2.8.1/src/lib/wsman-subscription-repository.c:149:9: branch_false: ...to here
openwsman-2.8.1/src/lib/wsman-subscription-repository.c:149:9: danger: ‘fopen(u_strdup_printf("%s/uuid:%s", uri_repository, uuid), "r")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def81]
openwsman-2.8.1/src/lib/wsman-subscription-repository.c:186:25: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(u_strdup_printf("%s/%s", uri_repository, &**_5.d_name), "r")’
openwsman-2.8.1/src/lib/wsman-subscription-repository.c:162:12: branch_false: following ‘false’ branch...
openwsman-2.8.1/src/lib/wsman-subscription-repository.c:164:12: branch_false: ...to here
openwsman-2.8.1/src/lib/wsman-subscription-repository.c:164:12: branch_false: following ‘false’ branch (when ‘subscription_list’ is non-NULL)...
openwsman-2.8.1/src/lib/wsman-subscription-repository.c:166:22: branch_false: ...to here
openwsman-2.8.1/src/lib/wsman-subscription-repository.c:166:12: branch_false: following ‘false’ branch...
branch_false: ...to here
openwsman-2.8.1/src/lib/wsman-subscription-repository.c:170:24: branch_true: following ‘true’ branch (when ‘n != 0’)...
openwsman-2.8.1/src/lib/wsman-subscription-repository.c:175:44: branch_true: ...to here
openwsman-2.8.1/src/lib/wsman-subscription-repository.c:175:28: branch_false: following ‘false’ branch...
openwsman-2.8.1/src/lib/wsman-subscription-repository.c:180:32: acquire_resource: opened here
openwsman-2.8.1/src/lib/wsman-subscription-repository.c:181:28: branch_false: following ‘false’ branch...
openwsman-2.8.1/src/lib/wsman-subscription-repository.c:186:25: branch_false: ...to here
openwsman-2.8.1/src/lib/wsman-subscription-repository.c:186:25: danger: ‘fopen(u_strdup_printf("%s/%s", uri_repository, &**_5.d_name), "r")’ leaks here; was opened at [(12)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/11)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def82]
openwsman-2.8.1/src/lib/wsman-subscription-repository.c:186:25: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(u_strdup_printf("%s/%s", uri_repository, &**_5.d_name), "r")’
openwsman-2.8.1/src/lib/wsman-subscription-repository.c:162:12: branch_false: following ‘false’ branch...
openwsman-2.8.1/src/lib/wsman-subscription-repository.c:164:12: branch_false: ...to here
openwsman-2.8.1/src/lib/wsman-subscription-repository.c:164:12: branch_false: following ‘false’ branch (when ‘subscription_list’ is non-NULL)...
openwsman-2.8.1/src/lib/wsman-subscription-repository.c:166:22: branch_false: ...to here
openwsman-2.8.1/src/lib/wsman-subscription-repository.c:166:12: branch_false: following ‘false’ branch...
branch_false: ...to here
openwsman-2.8.1/src/lib/wsman-subscription-repository.c:170:24: branch_true: following ‘true’ branch (when ‘n != 0’)...
openwsman-2.8.1/src/lib/wsman-subscription-repository.c:175:44: branch_true: ...to here
openwsman-2.8.1/src/lib/wsman-subscription-repository.c:175:28: branch_false: following ‘false’ branch...
openwsman-2.8.1/src/lib/wsman-subscription-repository.c:180:32: acquire_memory: allocated here
openwsman-2.8.1/src/lib/wsman-subscription-repository.c:181:28: branch_false: following ‘false’ branch...
openwsman-2.8.1/src/lib/wsman-subscription-repository.c:186:25: branch_false: ...to here
openwsman-2.8.1/src/lib/wsman-subscription-repository.c:186:25: danger: ‘fopen(u_strdup_printf("%s/%s", uri_repository, &**_5.d_name), "r")’ leaks here; was allocated at [(12)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/11)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def83]
openwsman-2.8.1/src/lib/wsman-subscription-repository.c:195:63: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(u_strdup_printf("%s/%s", uri_repository, &**_5.d_name), "r")’
openwsman-2.8.1/src/lib/wsman-subscription-repository.c:162:12: branch_false: following ‘false’ branch...
openwsman-2.8.1/src/lib/wsman-subscription-repository.c:164:12: branch_false: ...to here
openwsman-2.8.1/src/lib/wsman-subscription-repository.c:164:12: branch_false: following ‘false’ branch (when ‘subscription_list’ is non-NULL)...
openwsman-2.8.1/src/lib/wsman-subscription-repository.c:166:22: branch_false: ...to here
openwsman-2.8.1/src/lib/wsman-subscription-repository.c:166:12: branch_false: following ‘false’ branch...
branch_false: ...to here
openwsman-2.8.1/src/lib/wsman-subscription-repository.c:170:24: branch_true: following ‘true’ branch (when ‘n != 0’)...
openwsman-2.8.1/src/lib/wsman-subscription-repository.c:175:44: branch_true: ...to here
openwsman-2.8.1/src/lib/wsman-subscription-repository.c:175:28: branch_false: following ‘false’ branch...
openwsman-2.8.1/src/lib/wsman-subscription-repository.c:180:32: acquire_resource: opened here
openwsman-2.8.1/src/lib/wsman-subscription-repository.c:181:28: branch_false: following ‘false’ branch...
openwsman-2.8.1/src/lib/wsman-subscription-repository.c:186:25: branch_false: ...to here
openwsman-2.8.1/src/lib/wsman-subscription-repository.c:189:32: branch_true: following ‘true’ branch...
openwsman-2.8.1/src/lib/wsman-subscription-repository.c:190:33: branch_true: ...to here
openwsman-2.8.1/src/lib/wsman-subscription-repository.c:195:63: danger: ‘fopen(u_strdup_printf("%s/%s", uri_repository, &**_5.d_name), "r")’ leaks here; was opened at [(12)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/11)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def84]
openwsman-2.8.1/src/lib/wsman-subscription-repository.c:195:63: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(u_strdup_printf("%s/%s", uri_repository, &**_5.d_name), "r")’
openwsman-2.8.1/src/lib/wsman-subscription-repository.c:162:12: branch_false: following ‘false’ branch...
openwsman-2.8.1/src/lib/wsman-subscription-repository.c:164:12: branch_false: ...to here
openwsman-2.8.1/src/lib/wsman-subscription-repository.c:164:12: branch_false: following ‘false’ branch (when ‘subscription_list’ is non-NULL)...
openwsman-2.8.1/src/lib/wsman-subscription-repository.c:166:22: branch_false: ...to here
openwsman-2.8.1/src/lib/wsman-subscription-repository.c:166:12: branch_false: following ‘false’ branch...
branch_false: ...to here
openwsman-2.8.1/src/lib/wsman-subscription-repository.c:170:24: branch_true: following ‘true’ branch (when ‘n != 0’)...
openwsman-2.8.1/src/lib/wsman-subscription-repository.c:175:44: branch_true: ...to here
openwsman-2.8.1/src/lib/wsman-subscription-repository.c:175:28: branch_false: following ‘false’ branch...
openwsman-2.8.1/src/lib/wsman-subscription-repository.c:180:32: acquire_memory: allocated here
openwsman-2.8.1/src/lib/wsman-subscription-repository.c:181:28: branch_false: following ‘false’ branch...
openwsman-2.8.1/src/lib/wsman-subscription-repository.c:186:25: branch_false: ...to here
openwsman-2.8.1/src/lib/wsman-subscription-repository.c:189:32: branch_true: following ‘true’ branch...
openwsman-2.8.1/src/lib/wsman-subscription-repository.c:190:33: branch_true: ...to here
openwsman-2.8.1/src/lib/wsman-subscription-repository.c:195:63: danger: ‘fopen(u_strdup_printf("%s/%s", uri_repository, &**_5.d_name), "r")’ leaks here; was allocated at [(12)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/11)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def85]
openwsman-2.8.1/src/plugins/cim/cim_data_stubs.c:566:14: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘enumInfo’
openwsman-2.8.1/src/plugins/cim/cim_data_stubs.c:522:12: branch_true: following ‘true’ branch (when ‘enumInfo’ is NULL)...
openwsman-2.8.1/src/plugins/cim/cim_data_stubs.c:523:17: branch_true: ...to here
openwsman-2.8.1/src/plugins/cim/cim_data_stubs.c:566:14: danger: dereference of NULL ‘enumInfo’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def86]
openwsman-2.8.1/src/plugins/cim/sfcc-interface.c:601:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘argnode’
openwsman-2.8.1/src/plugins/cim/sfcc-interface.c:1784:1: enter_function: entry to ‘cim_invoke_method’
openwsman-2.8.1/src/plugins/cim/sfcc-interface.c:1801:20: branch_true: following ‘true’ branch...
openwsman-2.8.1/src/plugins/cim/sfcc-interface.c:1802:25: branch_true: ...to here
openwsman-2.8.1/src/plugins/cim/sfcc-interface.c:1802:25: call_function: inlined call to ‘cim_add_keys’ from ‘cim_invoke_method’
branch_true: ...to here
openwsman-2.8.1/src/plugins/cim/sfcc-interface.c:1805:12: branch_true: following ‘true’ branch (when ‘objectpath’ is non-NULL)...
openwsman-2.8.1/src/plugins/cim/sfcc-interface.c:1809:17: branch_true: ...to here
openwsman-2.8.1/src/plugins/cim/sfcc-interface.c:1815:20: branch_true: following ‘true’ branch...
openwsman-2.8.1/src/plugins/cim/sfcc-interface.c:1817:34: call_function: calling ‘cim_add_args’ from ‘cim_invoke_method’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def87]
openwsman-2.8.1/src/plugins/cim/sfcc-interface.c:618:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘argnode’
openwsman-2.8.1/src/plugins/cim/sfcc-interface.c:1784:1: enter_function: entry to ‘cim_invoke_method’
openwsman-2.8.1/src/plugins/cim/sfcc-interface.c:1801:20: branch_true: following ‘true’ branch...
openwsman-2.8.1/src/plugins/cim/sfcc-interface.c:1802:25: branch_true: ...to here
openwsman-2.8.1/src/plugins/cim/sfcc-interface.c:1802:25: call_function: inlined call to ‘cim_add_keys’ from ‘cim_invoke_method’
branch_true: ...to here
openwsman-2.8.1/src/plugins/cim/sfcc-interface.c:1805:12: branch_true: following ‘true’ branch (when ‘objectpath’ is non-NULL)...
openwsman-2.8.1/src/plugins/cim/sfcc-interface.c:1809:17: branch_true: ...to here
openwsman-2.8.1/src/plugins/cim/sfcc-interface.c:1815:20: branch_true: following ‘true’ branch...
openwsman-2.8.1/src/plugins/cim/sfcc-interface.c:1817:34: call_function: calling ‘cim_add_args’ from ‘cim_invoke_method’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def88]
openwsman-2.8.1/src/plugins/cim/sfcc-interface.c:629:51: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘t_anode’
openwsman-2.8.1/src/plugins/cim/sfcc-interface.c:1784:1: enter_function: entry to ‘cim_invoke_method’
openwsman-2.8.1/src/plugins/cim/sfcc-interface.c:1801:20: branch_true: following ‘true’ branch...
openwsman-2.8.1/src/plugins/cim/sfcc-interface.c:1802:25: branch_true: ...to here
openwsman-2.8.1/src/plugins/cim/sfcc-interface.c:1802:25: call_function: inlined call to ‘cim_add_keys’ from ‘cim_invoke_method’
branch_true: ...to here
openwsman-2.8.1/src/plugins/cim/sfcc-interface.c:1805:12: branch_true: following ‘true’ branch (when ‘objectpath’ is non-NULL)...
openwsman-2.8.1/src/plugins/cim/sfcc-interface.c:1809:17: branch_true: ...to here
openwsman-2.8.1/src/plugins/cim/sfcc-interface.c:1815:20: branch_true: following ‘true’ branch...
openwsman-2.8.1/src/plugins/cim/sfcc-interface.c:1817:34: call_function: calling ‘cim_add_args’ from ‘cim_invoke_method’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def89]
openwsman-2.8.1/src/plugins/cim/sfcc-interface.c:658:51: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘argnode’
openwsman-2.8.1/src/plugins/cim/sfcc-interface.c:1784:1: enter_function: entry to ‘cim_invoke_method’
openwsman-2.8.1/src/plugins/cim/sfcc-interface.c:1801:20: branch_true: following ‘true’ branch...
openwsman-2.8.1/src/plugins/cim/sfcc-interface.c:1802:25: branch_true: ...to here
openwsman-2.8.1/src/plugins/cim/sfcc-interface.c:1802:25: call_function: inlined call to ‘cim_add_keys’ from ‘cim_invoke_method’
branch_true: ...to here
openwsman-2.8.1/src/plugins/cim/sfcc-interface.c:1805:12: branch_true: following ‘true’ branch (when ‘objectpath’ is non-NULL)...
openwsman-2.8.1/src/plugins/cim/sfcc-interface.c:1809:17: branch_true: ...to here
openwsman-2.8.1/src/plugins/cim/sfcc-interface.c:1815:20: branch_true: following ‘true’ branch...
openwsman-2.8.1/src/plugins/cim/sfcc-interface.c:1817:34: call_function: calling ‘cim_add_args’ from ‘cim_invoke_method’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def90]
openwsman-2.8.1/src/plugins/cim/sfcc-interface.c:991:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘_class’
openwsman-2.8.1/src/plugins/cim/sfcc-interface.c:1344:1: enter_function: entry to ‘cim_getEprObjAt’
openwsman-2.8.1/src/plugins/cim/sfcc-interface.c:1363:15: call_function: calling ‘cim_find_namespace_for_class’ from ‘cim_getEprObjAt’
openwsman-2.8.1/src/plugins/cim/sfcc-interface.c:1363:15: return_function: returning to ‘cim_getEprObjAt’ from ‘cim_find_namespace_for_class’
openwsman-2.8.1/src/plugins/cim/sfcc-interface.c:1365:12: branch_true: following ‘true’ branch (when ‘retval != 0’)...
openwsman-2.8.1/src/plugins/cim/sfcc-interface.c:1367:25: branch_true: ...to here
openwsman-2.8.1/src/plugins/cim/sfcc-interface.c:1369:17: call_function: calling ‘instance2xml’ from ‘cim_getEprObjAt’
Error: COMPILER_WARNING (CWE-563): [#def91]
openwsman-2.8.1/src/plugins/redirect/redirect.c: scope_hint: In function ‘set_namespaces’
openwsman-2.8.1/src/plugins/redirect/redirect.c:65:9: warning[-Wunused-variable]: unused variable ‘i’
Error: COMPILER_WARNING (CWE-1164): [#def92]
openwsman-2.8.1/src/plugins/redirect/redirect.c:96:12: warning[-Wunused-function]: ‘init’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def93]
openwsman-2.8.1/src/plugins/redirect/redirect.c:144:13: warning[-Wunused-function]: ‘cleanup’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def94]
openwsman-2.8.1/src/plugins/redirect/redirect.c:150:13: warning[-Wunused-function]: ‘set_config’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def95]
openwsman-2.8.1/src/plugins/redirect/redirect.c:238:14: warning[-Wunused-function]: ‘get_remote_namespace’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def96]
openwsman-2.8.1/src/plugins/redirect/redirect.c: scope_hint: At top level
openwsman-2.8.1/src/plugins/redirect/redirect.c:249:14: warning[-Wunused-function]: ‘get_remote_cim_namespace’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def97]
openwsman-2.8.1/src/plugins/redirect/redirect_stubs.c:31: included_from: Included from here.
openwsman-2.8.1/src/plugins/redirect/redirect.h: scope_hint: At top level
openwsman-2.8.1/src/plugins/redirect/redirect.h:82:14: warning[-Wunused-function]: ‘get_remote_server’ declared ‘static’ but never defined
Error: COMPILER_WARNING (CWE-1164): [#def98]
openwsman-2.8.1/src/plugins/redirect/redirect.h:83:14: warning[-Wunused-function]: ‘get_remote_username’ declared ‘static’ but never defined
Error: COMPILER_WARNING (CWE-1164): [#def99]
openwsman-2.8.1/src/plugins/redirect/redirect.h:84:14: warning[-Wunused-function]: ‘get_remote_password’ declared ‘static’ but never defined
Error: COMPILER_WARNING (CWE-1164): [#def100]
openwsman-2.8.1/src/plugins/redirect/redirect.h:85:14: warning[-Wunused-function]: ‘get_remote_url_path’ declared ‘static’ but never defined
Error: COMPILER_WARNING (CWE-1164): [#def101]
openwsman-2.8.1/src/plugins/redirect/redirect.h:86:14: warning[-Wunused-function]: ‘get_remote_authentication_method’ declared ‘static’ but never defined
Error: COMPILER_WARNING (CWE-1164): [#def102]
openwsman-2.8.1/src/plugins/redirect/redirect.h:87:14: warning[-Wunused-function]: ‘get_remote_cim_namespace’ declared ‘static’ but never defined
Error: COMPILER_WARNING (CWE-1164): [#def103]
openwsman-2.8.1/src/plugins/redirect/redirect.h:88:14: warning[-Wunused-function]: ‘get_remote_cainfo’ declared ‘static’ but never defined
Error: COMPILER_WARNING (CWE-1164): [#def104]
openwsman-2.8.1/src/plugins/redirect/redirect.h:89:12: warning[-Wunused-function]: ‘get_remote_server_port’ declared ‘static’ but never defined
Error: COMPILER_WARNING (CWE-1164): [#def105]
openwsman-2.8.1/src/plugins/redirect/redirect.h:90:12: warning[-Wunused-function]: ‘get_remote_noverifypeer’ declared ‘static’ but never defined
Error: COMPILER_WARNING (CWE-1164): [#def106]
openwsman-2.8.1/src/plugins/redirect/redirect.h:91:12: warning[-Wunused-function]: ‘get_remote_noverifyhost’ declared ‘static’ but never defined
Error: COMPILER_WARNING (CWE-1164): [#def107]
openwsman-2.8.1/src/plugins/redirect/redirect.h:92:14: warning[-Wunused-function]: ‘get_remote_sslkey’ declared ‘static’ but never defined
Error: COMPILER_WARNING (CWE-1164): [#def108]
openwsman-2.8.1/src/plugins/redirect/redirect.h:93:14: warning[-Wunused-function]: ‘get_remote_cl_cert’ declared ‘static’ but never defined
Error: COMPILER_WARNING (CWE-563): [#def109]
openwsman-2.8.1/src/plugins/redirect/redirect_stubs.c:125:11: warning[-Wunused-variable]: unused variable ‘resource_uri’
Error: COMPILER_WARNING (CWE-563): [#def110]
openwsman-2.8.1/src/plugins/redirect/redirect_stubs.c: scope_hint: In function ‘Redirect_Enumerate_EP’
openwsman-2.8.1/src/plugins/redirect/redirect_stubs.c:126:9: warning[-Wunused-variable]: unused variable ‘op’
Error: COMPILER_WARNING: [#def111]
openwsman-2.8.1/src/plugins/redirect/redirect_stubs.c: scope_hint: In function ‘Redirect_Enumerate_EP’
openwsman-2.8.1/src/plugins/redirect/redirect_stubs.c:197:13: warning[-Wstringop-truncation]: ‘__strncpy_chk’ specified bound depends on the length of the source argument
openwsman-2.8.1/src/plugins/redirect/redirect_stubs.c:197:59: note: length computed here
Error: COMPILER_WARNING: [#def112]
openwsman-2.8.1/src/plugins/redirect/redirect_stubs.c:206:13: warning[-Wstringop-truncation]: ‘__strncpy_chk’ specified bound depends on the length of the source argument
openwsman-2.8.1/src/plugins/redirect/redirect_stubs.c:206:59: note: length computed here
Error: COMPILER_WARNING (CWE-563): [#def113]
openwsman-2.8.1/src/plugins/redirect/redirect_stubs.c: scope_hint: In function ‘Redirect_Pull_EP’
openwsman-2.8.1/src/plugins/redirect/redirect_stubs.c:247:15: warning[-Wunused-variable]: unused variable ‘doc’
Error: COMPILER_WARNING (CWE-1164): [#def114]
openwsman-2.8.1/src/plugins/redirect/redirect_stubs.c:304:13: warning[-Wunused-function]: ‘xml_print’ defined but not used
Error: CPPCHECK_WARNING (CWE-476): [#def115]
openwsman-2.8.1/src/plugins/redirect/redirect_stubs.c:330: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: fault_msg
Error: GCC_ANALYZER_WARNING (CWE-688): [#def116]
openwsman-2.8.1/src/plugins/redirect/redirect_stubs.c:330:5: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘fault_msg’ where non-null expected
openwsman-2.8.1/src/plugins/redirect/redirect_stubs.c:328:22: acquire_memory: this call could return NULL
openwsman-2.8.1/src/plugins/redirect/redirect_stubs.c:330:5: danger: argument 1 (‘fault_msg’) from [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0) could be NULL where non-null expected
Error: COMPILER_WARNING: [#def117]
openwsman-2.8.1/src/plugins/redirect/redirect_stubs.c: scope_hint: In function ‘redirect_fault_msg’
openwsman-2.8.1/src/plugins/redirect/redirect_stubs.c:330:5: warning[-Wstringop-truncation]: ‘strncpy’ output truncated before terminating nul copying 17 bytes from a string of the same length
Error: CPPCHECK_WARNING (CWE-476): [#def118]
openwsman-2.8.1/src/plugins/redirect/redirect_stubs.c:331: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: fault_msg
Error: COMPILER_WARNING: [#def119]
openwsman-2.8.1/src/plugins/redirect/redirect_stubs.c:331:5: note[note]: length computed here
Error: COMPILER_WARNING: [#def120]
openwsman-2.8.1/src/plugins/redirect/redirect_stubs.c: scope_hint: In function ‘redirect_fault_msg’
openwsman-2.8.1/src/plugins/redirect/redirect_stubs.c:331:5: warning[-Wstringop-overflow=]: ‘__builtin___strncat_chk’ specified bound depends on the length of the source argument
openwsman-2.8.1/src/plugins/redirect/redirect_stubs.c:331:43: note: length computed here
Error: COMPILER_WARNING: [#def121]
openwsman-2.8.1/src/plugins/redirect/redirect_stubs.c:331:5: warning[-Wstringop-overflow=]: ‘__strncat_chk’ specified bound depends on the length of the source argument
openwsman-2.8.1/src/plugins/redirect/redirect_stubs.c:331:43: note: length computed here
Error: COMPILER_WARNING: [#def122]
openwsman-2.8.1/src/plugins/redirect/redirect_stubs.c:331:5: warning[-Wstringop-overflow=]: ‘strncat’ specified bound depends on the length of the source argument
Error: GCC_ANALYZER_WARNING (CWE-775): [#def123]
openwsman-2.8.1/src/server/shttpd/auth.c:42:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(fname, "r")’
openwsman-2.8.1/src/server/shttpd/auth.c:420:1: enter_function: entry to ‘_shttpd_edit_passwords’
openwsman-2.8.1/src/server/shttpd/auth.c:435:19: acquire_resource: opened here
openwsman-2.8.1/src/server/shttpd/auth.c:435:12: branch_false: following ‘false’ branch...
openwsman-2.8.1/src/server/shttpd/auth.c:438:25: branch_false: ...to here
openwsman-2.8.1/src/server/shttpd/auth.c:438:17: branch_false: following ‘false’ branch...
openwsman-2.8.1/src/server/shttpd/auth.c:442:9: branch_false: ...to here
openwsman-2.8.1/src/server/shttpd/auth.c:469:12: branch_true: following ‘true’ branch (when ‘found == 0’)...
openwsman-2.8.1/src/server/shttpd/auth.c:470:17: branch_true: ...to here
openwsman-2.8.1/src/server/shttpd/auth.c:472:17: call_function: calling ‘md5’ from ‘_shttpd_edit_passwords’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def124]
openwsman-2.8.1/src/server/shttpd/auth.c:42:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘fp2’
openwsman-2.8.1/src/server/shttpd/auth.c:420:1: enter_function: entry to ‘_shttpd_edit_passwords’
openwsman-2.8.1/src/server/shttpd/auth.c:435:12: branch_false: following ‘false’ branch...
openwsman-2.8.1/src/server/shttpd/auth.c:438:25: branch_false: ...to here
openwsman-2.8.1/src/server/shttpd/auth.c:438:25: acquire_resource: opened here
openwsman-2.8.1/src/server/shttpd/auth.c:438:17: branch_false: following ‘false’ branch...
openwsman-2.8.1/src/server/shttpd/auth.c:442:9: branch_false: ...to here
openwsman-2.8.1/src/server/shttpd/auth.c:469:12: branch_true: following ‘true’ branch (when ‘found == 0’)...
openwsman-2.8.1/src/server/shttpd/auth.c:470:17: branch_true: ...to here
openwsman-2.8.1/src/server/shttpd/auth.c:472:17: call_function: calling ‘md5’ from ‘_shttpd_edit_passwords’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def125]
openwsman-2.8.1/src/server/shttpd/auth.c:42:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(fname, "r")’
openwsman-2.8.1/src/server/shttpd/auth.c:420:1: enter_function: entry to ‘_shttpd_edit_passwords’
openwsman-2.8.1/src/server/shttpd/auth.c:435:19: acquire_memory: allocated here
openwsman-2.8.1/src/server/shttpd/auth.c:435:12: branch_false: following ‘false’ branch...
openwsman-2.8.1/src/server/shttpd/auth.c:438:25: branch_false: ...to here
openwsman-2.8.1/src/server/shttpd/auth.c:438:17: branch_false: following ‘false’ branch...
openwsman-2.8.1/src/server/shttpd/auth.c:442:9: branch_false: ...to here
openwsman-2.8.1/src/server/shttpd/auth.c:469:12: branch_true: following ‘true’ branch (when ‘found == 0’)...
openwsman-2.8.1/src/server/shttpd/auth.c:470:17: branch_true: ...to here
openwsman-2.8.1/src/server/shttpd/auth.c:472:17: call_function: calling ‘md5’ from ‘_shttpd_edit_passwords’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def126]
openwsman-2.8.1/src/server/shttpd/auth.c:42:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fp2’
openwsman-2.8.1/src/server/shttpd/auth.c:420:1: enter_function: entry to ‘_shttpd_edit_passwords’
openwsman-2.8.1/src/server/shttpd/auth.c:435:12: branch_false: following ‘false’ branch...
openwsman-2.8.1/src/server/shttpd/auth.c:438:25: branch_false: ...to here
openwsman-2.8.1/src/server/shttpd/auth.c:438:25: acquire_memory: allocated here
openwsman-2.8.1/src/server/shttpd/auth.c:438:17: branch_false: following ‘false’ branch...
openwsman-2.8.1/src/server/shttpd/auth.c:442:9: branch_false: ...to here
openwsman-2.8.1/src/server/shttpd/auth.c:469:12: branch_true: following ‘true’ branch (when ‘found == 0’)...
openwsman-2.8.1/src/server/shttpd/auth.c:470:17: branch_true: ...to here
openwsman-2.8.1/src/server/shttpd/auth.c:472:17: call_function: calling ‘md5’ from ‘_shttpd_edit_passwords’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def127]
openwsman-2.8.1/src/server/shttpd/auth.c:50:25: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(fname, "r")’
openwsman-2.8.1/src/server/shttpd/auth.c:420:1: enter_function: entry to ‘_shttpd_edit_passwords’
openwsman-2.8.1/src/server/shttpd/auth.c:435:19: acquire_resource: opened here
openwsman-2.8.1/src/server/shttpd/auth.c:435:12: branch_false: following ‘false’ branch...
openwsman-2.8.1/src/server/shttpd/auth.c:438:25: branch_false: ...to here
openwsman-2.8.1/src/server/shttpd/auth.c:438:17: branch_true: following ‘true’ branch...
openwsman-2.8.1/src/server/shttpd/auth.c:440:57: branch_true: ...to here
openwsman-2.8.1/src/server/shttpd/auth.c:469:12: branch_true: following ‘true’ branch (when ‘found == 0’)...
openwsman-2.8.1/src/server/shttpd/auth.c:470:17: branch_true: ...to here
openwsman-2.8.1/src/server/shttpd/auth.c:472:17: call_function: calling ‘md5’ from ‘_shttpd_edit_passwords’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def128]
openwsman-2.8.1/src/server/shttpd/auth.c:50:25: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(fname, "r")’
openwsman-2.8.1/src/server/shttpd/auth.c:420:1: enter_function: entry to ‘_shttpd_edit_passwords’
openwsman-2.8.1/src/server/shttpd/auth.c:435:19: acquire_memory: allocated here
openwsman-2.8.1/src/server/shttpd/auth.c:435:12: branch_false: following ‘false’ branch...
openwsman-2.8.1/src/server/shttpd/auth.c:438:25: branch_false: ...to here
openwsman-2.8.1/src/server/shttpd/auth.c:438:17: branch_true: following ‘true’ branch...
openwsman-2.8.1/src/server/shttpd/auth.c:440:57: branch_true: ...to here
openwsman-2.8.1/src/server/shttpd/auth.c:469:12: branch_true: following ‘true’ branch (when ‘found == 0’)...
openwsman-2.8.1/src/server/shttpd/auth.c:470:17: branch_true: ...to here
openwsman-2.8.1/src/server/shttpd/auth.c:472:17: call_function: calling ‘md5’ from ‘_shttpd_edit_passwords’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def129]
openwsman-2.8.1/src/server/shttpd/auth.c:50:25: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
openwsman-2.8.1/src/server/shttpd/auth.c:420:1: enter_function: entry to ‘_shttpd_edit_passwords’
openwsman-2.8.1/src/server/shttpd/auth.c:435:12: branch_false: following ‘false’ branch...
openwsman-2.8.1/src/server/shttpd/auth.c:438:25: branch_false: ...to here
openwsman-2.8.1/src/server/shttpd/auth.c:438:17: branch_false: following ‘false’ branch...
openwsman-2.8.1/src/server/shttpd/auth.c:442:9: branch_false: ...to here
openwsman-2.8.1/src/server/shttpd/auth.c:469:12: branch_true: following ‘true’ branch (when ‘found == 0’)...
openwsman-2.8.1/src/server/shttpd/auth.c:470:17: branch_true: ...to here
openwsman-2.8.1/src/server/shttpd/auth.c:472:17: call_function: calling ‘md5’ from ‘_shttpd_edit_passwords’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def130]
openwsman-2.8.1/src/server/shttpd/auth.c:51:17: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(fname, "r")’
openwsman-2.8.1/src/server/shttpd/auth.c:420:1: enter_function: entry to ‘_shttpd_edit_passwords’
openwsman-2.8.1/src/server/shttpd/auth.c:435:19: acquire_resource: opened here
openwsman-2.8.1/src/server/shttpd/auth.c:435:12: branch_false: following ‘false’ branch...
openwsman-2.8.1/src/server/shttpd/auth.c:438:25: branch_false: ...to here
openwsman-2.8.1/src/server/shttpd/auth.c:438:17: branch_false: following ‘false’ branch...
openwsman-2.8.1/src/server/shttpd/auth.c:442:9: branch_false: ...to here
openwsman-2.8.1/src/server/shttpd/auth.c:469:12: branch_true: following ‘true’ branch (when ‘found == 0’)...
openwsman-2.8.1/src/server/shttpd/auth.c:470:17: branch_true: ...to here
openwsman-2.8.1/src/server/shttpd/auth.c:472:17: call_function: calling ‘md5’ from ‘_shttpd_edit_passwords’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def131]
openwsman-2.8.1/src/server/shttpd/auth.c:51:17: warning[-Wanalyzer-file-leak]: leak of FILE ‘fp2’
openwsman-2.8.1/src/server/shttpd/auth.c:420:1: enter_function: entry to ‘_shttpd_edit_passwords’
openwsman-2.8.1/src/server/shttpd/auth.c:435:12: branch_false: following ‘false’ branch...
openwsman-2.8.1/src/server/shttpd/auth.c:438:25: branch_false: ...to here
openwsman-2.8.1/src/server/shttpd/auth.c:438:25: acquire_resource: opened here
openwsman-2.8.1/src/server/shttpd/auth.c:438:17: branch_false: following ‘false’ branch...
openwsman-2.8.1/src/server/shttpd/auth.c:442:9: branch_false: ...to here
openwsman-2.8.1/src/server/shttpd/auth.c:469:12: branch_true: following ‘true’ branch (when ‘found == 0’)...
openwsman-2.8.1/src/server/shttpd/auth.c:470:17: branch_true: ...to here
openwsman-2.8.1/src/server/shttpd/auth.c:472:17: call_function: calling ‘md5’ from ‘_shttpd_edit_passwords’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def132]
openwsman-2.8.1/src/server/shttpd/auth.c:51:17: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(fname, "r")’
openwsman-2.8.1/src/server/shttpd/auth.c:420:1: enter_function: entry to ‘_shttpd_edit_passwords’
openwsman-2.8.1/src/server/shttpd/auth.c:435:19: acquire_memory: allocated here
openwsman-2.8.1/src/server/shttpd/auth.c:435:12: branch_false: following ‘false’ branch...
openwsman-2.8.1/src/server/shttpd/auth.c:438:25: branch_false: ...to here
openwsman-2.8.1/src/server/shttpd/auth.c:438:17: branch_false: following ‘false’ branch...
openwsman-2.8.1/src/server/shttpd/auth.c:442:9: branch_false: ...to here
openwsman-2.8.1/src/server/shttpd/auth.c:469:12: branch_true: following ‘true’ branch (when ‘found == 0’)...
openwsman-2.8.1/src/server/shttpd/auth.c:470:17: branch_true: ...to here
openwsman-2.8.1/src/server/shttpd/auth.c:472:17: call_function: calling ‘md5’ from ‘_shttpd_edit_passwords’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def133]
openwsman-2.8.1/src/server/shttpd/auth.c:51:17: warning[-Wanalyzer-malloc-leak]: leak of ‘fp2’
openwsman-2.8.1/src/server/shttpd/auth.c:420:1: enter_function: entry to ‘_shttpd_edit_passwords’
openwsman-2.8.1/src/server/shttpd/auth.c:435:12: branch_false: following ‘false’ branch...
openwsman-2.8.1/src/server/shttpd/auth.c:438:25: branch_false: ...to here
openwsman-2.8.1/src/server/shttpd/auth.c:438:25: acquire_memory: allocated here
openwsman-2.8.1/src/server/shttpd/auth.c:438:17: branch_false: following ‘false’ branch...
openwsman-2.8.1/src/server/shttpd/auth.c:442:9: branch_false: ...to here
openwsman-2.8.1/src/server/shttpd/auth.c:469:12: branch_true: following ‘true’ branch (when ‘found == 0’)...
openwsman-2.8.1/src/server/shttpd/auth.c:470:17: branch_true: ...to here
openwsman-2.8.1/src/server/shttpd/auth.c:472:17: call_function: calling ‘md5’ from ‘_shttpd_edit_passwords’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def134]
openwsman-2.8.1/src/server/shttpd/auth.c:51:17: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
openwsman-2.8.1/src/server/shttpd/auth.c:420:1: enter_function: entry to ‘_shttpd_edit_passwords’
openwsman-2.8.1/src/server/shttpd/auth.c:435:12: branch_false: following ‘false’ branch...
openwsman-2.8.1/src/server/shttpd/auth.c:438:25: branch_false: ...to here
openwsman-2.8.1/src/server/shttpd/auth.c:438:17: branch_false: following ‘false’ branch...
openwsman-2.8.1/src/server/shttpd/auth.c:442:9: branch_false: ...to here
openwsman-2.8.1/src/server/shttpd/auth.c:469:12: branch_true: following ‘true’ branch (when ‘found == 0’)...
openwsman-2.8.1/src/server/shttpd/auth.c:470:17: branch_true: ...to here
openwsman-2.8.1/src/server/shttpd/auth.c:472:17: call_function: calling ‘md5’ from ‘_shttpd_edit_passwords’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def135]
openwsman-2.8.1/src/server/shttpd/auth.c:55:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(fname, "r")’
openwsman-2.8.1/src/server/shttpd/auth.c:420:1: enter_function: entry to ‘_shttpd_edit_passwords’
openwsman-2.8.1/src/server/shttpd/auth.c:435:19: acquire_resource: opened here
openwsman-2.8.1/src/server/shttpd/auth.c:435:12: branch_false: following ‘false’ branch...
openwsman-2.8.1/src/server/shttpd/auth.c:438:25: branch_false: ...to here
openwsman-2.8.1/src/server/shttpd/auth.c:438:17: branch_true: following ‘true’ branch...
openwsman-2.8.1/src/server/shttpd/auth.c:440:57: branch_true: ...to here
openwsman-2.8.1/src/server/shttpd/auth.c:469:12: branch_true: following ‘true’ branch (when ‘found == 0’)...
openwsman-2.8.1/src/server/shttpd/auth.c:470:17: branch_true: ...to here
openwsman-2.8.1/src/server/shttpd/auth.c:472:17: call_function: calling ‘md5’ from ‘_shttpd_edit_passwords’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def136]
openwsman-2.8.1/src/server/shttpd/auth.c:55:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(fname, "r")’
openwsman-2.8.1/src/server/shttpd/auth.c:420:1: enter_function: entry to ‘_shttpd_edit_passwords’
openwsman-2.8.1/src/server/shttpd/auth.c:435:19: acquire_memory: allocated here
openwsman-2.8.1/src/server/shttpd/auth.c:435:12: branch_false: following ‘false’ branch...
openwsman-2.8.1/src/server/shttpd/auth.c:438:25: branch_false: ...to here
openwsman-2.8.1/src/server/shttpd/auth.c:438:17: branch_true: following ‘true’ branch...
openwsman-2.8.1/src/server/shttpd/auth.c:440:57: branch_true: ...to here
openwsman-2.8.1/src/server/shttpd/auth.c:469:12: branch_true: following ‘true’ branch (when ‘found == 0’)...
openwsman-2.8.1/src/server/shttpd/auth.c:470:17: branch_true: ...to here
openwsman-2.8.1/src/server/shttpd/auth.c:472:17: call_function: calling ‘md5’ from ‘_shttpd_edit_passwords’
Error: COMPILER_WARNING (CWE-1164): [#def137]
openwsman-2.8.1/src/server/shttpd/auth.c:174:1: warning[-Wunused-function]: ‘open_auth_file’ defined but not used
Error: GCC_ANALYZER_WARNING (CWE-775): [#def138]
openwsman-2.8.1/src/server/shttpd/auth.c:439:17: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(fname, "r")’
openwsman-2.8.1/src/server/shttpd/auth.c:435:19: acquire_resource: opened here
openwsman-2.8.1/src/server/shttpd/auth.c:435:12: branch_false: following ‘false’ branch...
openwsman-2.8.1/src/server/shttpd/auth.c:438:25: branch_false: ...to here
openwsman-2.8.1/src/server/shttpd/auth.c:438:17: branch_true: following ‘true’ branch...
openwsman-2.8.1/src/server/shttpd/auth.c:440:57: branch_true: ...to here
openwsman-2.8.1/src/server/shttpd/auth.c:439:17: danger: ‘fopen(fname, "r")’ leaks here; was opened at [(1)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def139]
openwsman-2.8.1/src/server/shttpd/auth.c:439:17: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(fname, "r")’
openwsman-2.8.1/src/server/shttpd/auth.c:435:19: acquire_memory: allocated here
openwsman-2.8.1/src/server/shttpd/auth.c:435:12: branch_false: following ‘false’ branch...
openwsman-2.8.1/src/server/shttpd/auth.c:438:25: branch_false: ...to here
openwsman-2.8.1/src/server/shttpd/auth.c:438:17: branch_true: following ‘true’ branch...
openwsman-2.8.1/src/server/shttpd/auth.c:440:57: branch_true: ...to here
openwsman-2.8.1/src/server/shttpd/auth.c:439:17: danger: ‘fopen(fname, "r")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-688): [#def140]
openwsman-2.8.1/src/server/shttpd/auth.c:446:16: warning[-Wanalyzer-null-argument]: use of NULL ‘fopen(fname, "r")’ where non-null expected
openwsman-2.8.1/src/server/shttpd/auth.c:435:19: acquire_memory: allocated here
openwsman-2.8.1/src/server/shttpd/auth.c:435:12: release_memory: assuming ‘fopen(fname, "r")’ is NULL
openwsman-2.8.1/src/server/shttpd/auth.c:435:12: branch_true: following ‘true’ branch...
openwsman-2.8.1/src/server/shttpd/auth.c:437:59: branch_true: ...to here
openwsman-2.8.1/src/server/shttpd/auth.c:446:16: danger: argument 3 (‘fopen(fname, "r")’) NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-688): [#def141]
openwsman-2.8.1/src/server/shttpd/auth.c:462:32: warning[-Wanalyzer-null-argument]: use of NULL ‘fp2’ where non-null expected
openwsman-2.8.1/src/server/shttpd/auth.c:420:1: enter_function: entry to ‘_shttpd_edit_passwords’
openwsman-2.8.1/src/server/shttpd/auth.c:435:12: branch_false: following ‘false’ branch...
openwsman-2.8.1/src/server/shttpd/auth.c:438:25: branch_false: ...to here
openwsman-2.8.1/src/server/shttpd/auth.c:438:17: branch_true: following ‘true’ branch...
openwsman-2.8.1/src/server/shttpd/auth.c:440:57: branch_true: ...to here
openwsman-2.8.1/src/server/shttpd/auth.c:446:16: branch_true: following ‘true’ branch...
openwsman-2.8.1/src/server/shttpd/auth.c:447:17: branch_true: ...to here
openwsman-2.8.1/src/server/shttpd/auth.c:448:20: branch_false: following ‘false’ branch...
openwsman-2.8.1/src/server/shttpd/auth.c:450:25: branch_false: ...to here
openwsman-2.8.1/src/server/shttpd/auth.c:452:20: branch_false: following ‘false’ branch...
openwsman-2.8.1/src/server/shttpd/auth.c:454:25: branch_false: ...to here
openwsman-2.8.1/src/server/shttpd/auth.c:456:20: branch_true: following ‘true’ branch...
openwsman-2.8.1/src/server/shttpd/auth.c:457:22: branch_true: ...to here
openwsman-2.8.1/src/server/shttpd/auth.c:456:21: branch_true: following ‘true’ branch...
openwsman-2.8.1/src/server/shttpd/auth.c:458:27: branch_true: ...to here
openwsman-2.8.1/src/server/shttpd/auth.c:456:21: branch_true: following ‘true’ branch...
openwsman-2.8.1/src/server/shttpd/auth.c:459:22: branch_true: ...to here
openwsman-2.8.1/src/server/shttpd/auth.c:456:21: branch_true: following ‘true’ branch...
openwsman-2.8.1/src/server/shttpd/auth.c:460:25: branch_true: ...to here
openwsman-2.8.1/src/server/shttpd/auth.c:461:25: call_function: calling ‘md5’ from ‘_shttpd_edit_passwords’
openwsman-2.8.1/src/server/shttpd/auth.c:461:25: return_function: returning to ‘_shttpd_edit_passwords’ from ‘md5’
openwsman-2.8.1/src/server/shttpd/auth.c:462:32: danger: argument 1 (‘fp2’) NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-688): [#def142]
openwsman-2.8.1/src/server/shttpd/auth.c:464:32: warning[-Wanalyzer-null-argument]: use of NULL ‘fp2’ where non-null expected
openwsman-2.8.1/src/server/shttpd/auth.c:435:12: branch_false: following ‘false’ branch...
openwsman-2.8.1/src/server/shttpd/auth.c:438:25: branch_false: ...to here
openwsman-2.8.1/src/server/shttpd/auth.c:438:17: branch_true: following ‘true’ branch...
openwsman-2.8.1/src/server/shttpd/auth.c:440:57: branch_true: ...to here
openwsman-2.8.1/src/server/shttpd/auth.c:446:16: branch_true: following ‘true’ branch...
openwsman-2.8.1/src/server/shttpd/auth.c:447:17: branch_true: ...to here
openwsman-2.8.1/src/server/shttpd/auth.c:448:20: branch_false: following ‘false’ branch...
openwsman-2.8.1/src/server/shttpd/auth.c:450:25: branch_false: ...to here
openwsman-2.8.1/src/server/shttpd/auth.c:452:20: branch_false: following ‘false’ branch...
openwsman-2.8.1/src/server/shttpd/auth.c:454:25: branch_false: ...to here
openwsman-2.8.1/src/server/shttpd/auth.c:464:32: danger: argument 2 (‘fp2’) NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-688): [#def143]
openwsman-2.8.1/src/server/shttpd/auth.c:473:24: warning[-Wanalyzer-null-argument]: use of NULL ‘fp2’ where non-null expected
openwsman-2.8.1/src/server/shttpd/auth.c:420:1: enter_function: entry to ‘_shttpd_edit_passwords’
openwsman-2.8.1/src/server/shttpd/auth.c:435:12: branch_false: following ‘false’ branch...
openwsman-2.8.1/src/server/shttpd/auth.c:438:25: branch_false: ...to here
openwsman-2.8.1/src/server/shttpd/auth.c:438:17: branch_true: following ‘true’ branch...
openwsman-2.8.1/src/server/shttpd/auth.c:440:57: branch_true: ...to here
openwsman-2.8.1/src/server/shttpd/auth.c:469:12: branch_true: following ‘true’ branch (when ‘found == 0’)...
openwsman-2.8.1/src/server/shttpd/auth.c:470:17: branch_true: ...to here
openwsman-2.8.1/src/server/shttpd/auth.c:472:17: call_function: calling ‘md5’ from ‘_shttpd_edit_passwords’
openwsman-2.8.1/src/server/shttpd/auth.c:472:17: return_function: returning to ‘_shttpd_edit_passwords’ from ‘md5’
openwsman-2.8.1/src/server/shttpd/auth.c:473:24: danger: argument 1 (‘fp2’) NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-401): [#def144]
openwsman-2.8.1/src/server/shttpd/io_emb.c:178:43: warning[-Wanalyzer-malloc-leak]: leak of ‘e’
openwsman-2.8.1/src/server/shttpd/io_emb.c:177:18: acquire_memory: allocated here
openwsman-2.8.1/src/server/shttpd/io_emb.c:177:12: branch_true: following ‘true’ branch (when ‘e’ is non-NULL)...
openwsman-2.8.1/src/server/shttpd/io_emb.c:178:43: branch_true: ...to here
openwsman-2.8.1/src/server/shttpd/io_emb.c:178:43: danger: ‘e’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-401): [#def145]
openwsman-2.8.1/src/server/shttpd/io_emb.c:211: error[memleak]: Memory leak: auth.file_name
Error: CPPCHECK_WARNING (CWE-401): [#def146]
openwsman-2.8.1/src/server/shttpd/io_emb.c:211: error[memleak]: Memory leak: auth.uri
Error: COMPILER_WARNING (CWE-1164): [#def147]
openwsman-2.8.1/src/server/shttpd/shttpd.c:500:1: warning[-Wunused-function]: ‘find_index_file’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def148]
openwsman-2.8.1/src/server/shttpd/shttpd.c: scope_hint: At top level
openwsman-2.8.1/src/server/shttpd/shttpd.c:525:1: warning[-Wunused-function]: ‘get_path_info’ defined but not used
Error: COMPILER_WARNING (CWE-563): [#def149]
openwsman-2.8.1/src/server/shttpd/shttpd.c:553:40: warning[-Wunused-variable]: unused variable ‘buf’
Error: COMPILER_WARNING (CWE-563): [#def150]
openwsman-2.8.1/src/server/shttpd/shttpd.c:555:25: warning[-Wunused-variable]: unused variable ‘st’
Error: COMPILER_WARNING (CWE-563): [#def151]
openwsman-2.8.1/src/server/shttpd/shttpd.c: scope_hint: In function ‘decide_what_to_do’
openwsman-2.8.1/src/server/shttpd/shttpd.c:556:25: warning[-Wunused-variable]: unused variable ‘rc’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def152]
openwsman-2.8.1/src/server/shttpd/shttpd.c:825:17: warning[-Wanalyzer-malloc-leak]: leak of ‘c’
openwsman-2.8.1/src/server/shttpd/shttpd.c:1424:1: enter_function: entry to ‘set_inetd’
openwsman-2.8.1/src/server/shttpd/shttpd.c:1429:17: call_function: calling ‘shttpd_set_option’ from ‘set_inetd’
openwsman-2.8.1/src/server/shttpd/shttpd.c:1429:17: return_function: returning to ‘set_inetd’ from ‘shttpd_set_option’
openwsman-2.8.1/src/server/shttpd/shttpd.c:1431:17: call_function: calling ‘add_socket’ from ‘set_inetd’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def153]
openwsman-2.8.1/src/server/shttpd/shttpd.c:842:25: warning[-Wanalyzer-malloc-leak]: leak of ‘c’
openwsman-2.8.1/src/server/shttpd/shttpd.c:1660:1: enter_function: entry to ‘poll_worker’
openwsman-2.8.1/src/server/shttpd/shttpd.c:1665:9: branch_true: following ‘true’ branch (when ‘__i != 16’)...
openwsman-2.8.1/src/server/shttpd/shttpd.c:1665:9: branch_true: ...to here
openwsman-2.8.1/src/server/shttpd/shttpd.c:1666:9: branch_true: following ‘true’ branch (when ‘__i != 16’)...
openwsman-2.8.1/src/server/shttpd/shttpd.c:1666:9: branch_true: ...to here
openwsman-2.8.1/src/server/shttpd/shttpd.c:1671:12: branch_false: following ‘false’ branch...
openwsman-2.8.1/src/server/shttpd/shttpd.c:1674:9: branch_false: ...to here
openwsman-2.8.1/src/server/shttpd/shttpd.c:1674:9: call_function: calling ‘process_worker_sockets’ from ‘poll_worker’
Error: CPPCHECK_WARNING (CWE-476): [#def154]
openwsman-2.8.1/src/server/shttpd/shttpd.c:858: error[ctunullpointer]: Null pointer dereference: ctx
Error: CPPCHECK_WARNING (CWE-476): [#def155]
openwsman-2.8.1/src/server/shttpd/shttpd.c:858: warning[nullPointer]: Possible null pointer dereference: ctx
Error: GCC_ANALYZER_WARNING (CWE-775): [#def156]
openwsman-2.8.1/src/server/shttpd/shttpd.c:1404:32: warning[-Wanalyzer-fd-leak]: leak of file descriptor
openwsman-2.8.1/src/server/shttpd/shttpd.c:1690:1: enter_function: entry to ‘set_workers’
openwsman-2.8.1/src/server/shttpd/shttpd.c:1701:12: branch_true: following ‘true’ branch...
openwsman-2.8.1/src/server/shttpd/shttpd.c:1702:20: branch_true: ...to here
openwsman-2.8.1/src/server/shttpd/shttpd.c:1710:24: call_function: calling ‘add_worker’ from ‘set_workers’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def157]
openwsman-2.8.1/src/server/shttpd/shttpd.c:1404:32: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘sock’
openwsman-2.8.1/src/server/shttpd/shttpd.c:1690:1: enter_function: entry to ‘set_workers’
openwsman-2.8.1/src/server/shttpd/shttpd.c:1701:12: branch_true: following ‘true’ branch...
openwsman-2.8.1/src/server/shttpd/shttpd.c:1702:20: branch_true: ...to here
openwsman-2.8.1/src/server/shttpd/shttpd.c:1710:24: call_function: calling ‘add_worker’ from ‘set_workers’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def158]
openwsman-2.8.1/src/server/shttpd/shttpd.c:1404:32: warning[-Wanalyzer-malloc-leak]: leak of ‘worker’
openwsman-2.8.1/src/server/shttpd/shttpd.c:1690:1: enter_function: entry to ‘set_workers’
openwsman-2.8.1/src/server/shttpd/shttpd.c:1701:12: branch_true: following ‘true’ branch...
openwsman-2.8.1/src/server/shttpd/shttpd.c:1702:20: branch_true: ...to here
openwsman-2.8.1/src/server/shttpd/shttpd.c:1710:24: call_function: calling ‘add_worker’ from ‘set_workers’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def159]
openwsman-2.8.1/src/server/shttpd/shttpd.c:1409:16: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘sock’
openwsman-2.8.1/src/server/shttpd/shttpd.c:1690:1: enter_function: entry to ‘set_workers’
openwsman-2.8.1/src/server/shttpd/shttpd.c:1701:12: branch_true: following ‘true’ branch...
openwsman-2.8.1/src/server/shttpd/shttpd.c:1702:20: branch_true: ...to here
openwsman-2.8.1/src/server/shttpd/shttpd.c:1710:24: call_function: calling ‘add_worker’ from ‘set_workers’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def160]
openwsman-2.8.1/src/server/shttpd/shttpd.c:1409:16: warning[-Wanalyzer-malloc-leak]: leak of ‘worker’
openwsman-2.8.1/src/server/shttpd/shttpd.c:1690:1: enter_function: entry to ‘set_workers’
openwsman-2.8.1/src/server/shttpd/shttpd.c:1701:12: branch_true: following ‘true’ branch...
openwsman-2.8.1/src/server/shttpd/shttpd.c:1702:20: branch_true: ...to here
openwsman-2.8.1/src/server/shttpd/shttpd.c:1710:24: call_function: calling ‘add_worker’ from ‘set_workers’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def161]
openwsman-2.8.1/src/server/shttpd/shttpd.c:1410:16: warning[-Wanalyzer-malloc-leak]: leak of ‘worker’
openwsman-2.8.1/src/server/shttpd/shttpd.c:1690:1: enter_function: entry to ‘set_workers’
openwsman-2.8.1/src/server/shttpd/shttpd.c:1701:12: branch_true: following ‘true’ branch...
openwsman-2.8.1/src/server/shttpd/shttpd.c:1702:20: branch_true: ...to here
openwsman-2.8.1/src/server/shttpd/shttpd.c:1710:24: call_function: calling ‘add_worker’ from ‘set_workers’
Error: COMPILER_WARNING (CWE-252): [#def162]
openwsman-2.8.1/src/server/shttpd/shttpd.c: scope_hint: In function ‘set_inetd’
openwsman-2.8.1/src/server/shttpd/shttpd.c:1430:24: warning[-Wunused-result]: ignoring return value of ‘freopen’ declared with attribute ‘warn_unused_result’
Error: COMPILER_WARNING (CWE-563): [#def163]
openwsman-2.8.1/src/server/shttpd/shttpd.c:1506:26: warning[-Wunused-variable]: unused variable ‘lib’
Error: COMPILER_WARNING (CWE-563): [#def164]
openwsman-2.8.1/src/server/shttpd/shttpd.c: scope_hint: In function ‘set_ssl’
openwsman-2.8.1/src/server/shttpd/shttpd.c:1507:26: warning[-Wunused-variable]: unused variable ‘fp’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def165]
openwsman-2.8.1/src/server/shttpd/shttpd.c:1651:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘worker’
openwsman-2.8.1/src/server/shttpd/shttpd.c:1690:1: enter_function: entry to ‘set_workers’
openwsman-2.8.1/src/server/shttpd/shttpd.c:1701:12: branch_true: following ‘true’ branch...
openwsman-2.8.1/src/server/shttpd/shttpd.c:1702:20: branch_true: ...to here
openwsman-2.8.1/src/server/shttpd/shttpd.c:1710:24: call_function: calling ‘add_worker’ from ‘set_workers’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def166]
openwsman-2.8.1/src/server/shttpd/shttpd.c:1780:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(config_file, "r")’
openwsman-2.8.1/src/server/shttpd/shttpd.c:1889:1: enter_function: entry to ‘process_command_line_arguments’
openwsman-2.8.1/src/server/shttpd/shttpd.c:1902:13: branch_false: following ‘false’ branch...
openwsman-2.8.1/src/server/shttpd/shttpd.c:1905:19: branch_false: ...to here
openwsman-2.8.1/src/server/shttpd/shttpd.c:1917:14: acquire_resource: opened here
openwsman-2.8.1/src/server/shttpd/shttpd.c:1920:12: branch_false: following ‘false’ branch...
openwsman-2.8.1/src/server/shttpd/shttpd.c:1926:17: branch_false: ...to here
openwsman-2.8.1/src/server/shttpd/shttpd.c:1929:24: branch_true: following ‘true’ branch...
openwsman-2.8.1/src/server/shttpd/shttpd.c:1931:25: branch_true: ...to here
openwsman-2.8.1/src/server/shttpd/shttpd.c:1934:28: branch_false: following ‘false’ branch...
openwsman-2.8.1/src/server/shttpd/shttpd.c:1937:29: branch_false: ...to here
openwsman-2.8.1/src/server/shttpd/shttpd.c:1941:25: call_function: calling ‘set_opt’ from ‘process_command_line_arguments’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def167]
openwsman-2.8.1/src/server/shttpd/shttpd.c:1780:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(config_file, "r")’
openwsman-2.8.1/src/server/shttpd/shttpd.c:1889:1: enter_function: entry to ‘process_command_line_arguments’
openwsman-2.8.1/src/server/shttpd/shttpd.c:1902:13: branch_false: following ‘false’ branch...
openwsman-2.8.1/src/server/shttpd/shttpd.c:1905:19: branch_false: ...to here
openwsman-2.8.1/src/server/shttpd/shttpd.c:1917:14: acquire_memory: allocated here
openwsman-2.8.1/src/server/shttpd/shttpd.c:1920:12: branch_false: following ‘false’ branch...
openwsman-2.8.1/src/server/shttpd/shttpd.c:1926:17: branch_false: ...to here
openwsman-2.8.1/src/server/shttpd/shttpd.c:1929:24: branch_true: following ‘true’ branch...
openwsman-2.8.1/src/server/shttpd/shttpd.c:1931:25: branch_true: ...to here
openwsman-2.8.1/src/server/shttpd/shttpd.c:1934:28: branch_false: following ‘false’ branch...
openwsman-2.8.1/src/server/shttpd/shttpd.c:1937:29: branch_false: ...to here
openwsman-2.8.1/src/server/shttpd/shttpd.c:1941:25: call_function: calling ‘set_opt’ from ‘process_command_line_arguments’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def168]
openwsman-2.8.1/src/server/shttpd/shttpd.c:1793:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
openwsman-2.8.1/src/server/shttpd/shttpd.c:1787:1: enter_function: entry to ‘shttpd_set_option’
openwsman-2.8.1/src/server/shttpd/shttpd.c:1789:38: call_function: calling ‘find_opt’ from ‘shttpd_set_option’
openwsman-2.8.1/src/server/shttpd/shttpd.c:1789:38: return_function: returning to ‘shttpd_set_option’ from ‘find_opt’
openwsman-2.8.1/src/server/shttpd/shttpd.c:1793:13: danger: dereference of NULL ‘find_opt(opt)’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def169]
openwsman-2.8.1/src/server/shttpd/shttpd.c:1883:26: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
openwsman-2.8.1/src/server/shttpd/shttpd.c:1878:1: enter_function: entry to ‘set_opt’
openwsman-2.8.1/src/server/shttpd/shttpd.c:1882:13: call_function: calling ‘find_opt’ from ‘set_opt’
openwsman-2.8.1/src/server/shttpd/shttpd.c:1882:13: return_function: returning to ‘set_opt’ from ‘find_opt’
openwsman-2.8.1/src/server/shttpd/shttpd.c:1883:26: danger: dereference of NULL ‘find_opt(opt)’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def170]
openwsman-2.8.1/src/server/shttpd/shttpd.c:1885:34: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(config_file, "r")’
openwsman-2.8.1/src/server/shttpd/shttpd.c:1889:1: enter_function: entry to ‘process_command_line_arguments’
openwsman-2.8.1/src/server/shttpd/shttpd.c:1902:13: branch_false: following ‘false’ branch...
openwsman-2.8.1/src/server/shttpd/shttpd.c:1905:19: branch_false: ...to here
openwsman-2.8.1/src/server/shttpd/shttpd.c:1917:14: acquire_resource: opened here
openwsman-2.8.1/src/server/shttpd/shttpd.c:1920:12: branch_false: following ‘false’ branch...
openwsman-2.8.1/src/server/shttpd/shttpd.c:1926:17: branch_false: ...to here
openwsman-2.8.1/src/server/shttpd/shttpd.c:1929:24: branch_true: following ‘true’ branch...
openwsman-2.8.1/src/server/shttpd/shttpd.c:1931:25: branch_true: ...to here
openwsman-2.8.1/src/server/shttpd/shttpd.c:1934:28: branch_false: following ‘false’ branch...
openwsman-2.8.1/src/server/shttpd/shttpd.c:1937:29: branch_false: ...to here
openwsman-2.8.1/src/server/shttpd/shttpd.c:1941:25: call_function: calling ‘set_opt’ from ‘process_command_line_arguments’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def171]
openwsman-2.8.1/src/server/shttpd/shttpd.c:1885:34: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(config_file, "r")’
openwsman-2.8.1/src/server/shttpd/shttpd.c:1889:1: enter_function: entry to ‘process_command_line_arguments’
openwsman-2.8.1/src/server/shttpd/shttpd.c:1902:13: branch_false: following ‘false’ branch...
openwsman-2.8.1/src/server/shttpd/shttpd.c:1905:19: branch_false: ...to here
openwsman-2.8.1/src/server/shttpd/shttpd.c:1917:14: acquire_memory: allocated here
openwsman-2.8.1/src/server/shttpd/shttpd.c:1920:12: branch_false: following ‘false’ branch...
openwsman-2.8.1/src/server/shttpd/shttpd.c:1926:17: branch_false: ...to here
openwsman-2.8.1/src/server/shttpd/shttpd.c:1929:24: branch_true: following ‘true’ branch...
openwsman-2.8.1/src/server/shttpd/shttpd.c:1931:25: branch_true: ...to here
openwsman-2.8.1/src/server/shttpd/shttpd.c:1934:28: branch_false: following ‘false’ branch...
openwsman-2.8.1/src/server/shttpd/shttpd.c:1937:29: branch_false: ...to here
openwsman-2.8.1/src/server/shttpd/shttpd.c:1941:25: call_function: calling ‘set_opt’ from ‘process_command_line_arguments’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def172]
openwsman-2.8.1/src/server/shttpd/shttpd.c:1926:17: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(config_file, "r")’
openwsman-2.8.1/src/server/shttpd/shttpd.c:1902:13: branch_false: following ‘false’ branch...
openwsman-2.8.1/src/server/shttpd/shttpd.c:1905:19: branch_false: ...to here
openwsman-2.8.1/src/server/shttpd/shttpd.c:1917:14: acquire_resource: opened here
openwsman-2.8.1/src/server/shttpd/shttpd.c:1920:12: branch_false: following ‘false’ branch...
openwsman-2.8.1/src/server/shttpd/shttpd.c:1926:17: branch_false: ...to here
openwsman-2.8.1/src/server/shttpd/shttpd.c:1926:17: danger: ‘fopen(config_file, "r")’ leaks here; was opened at [(3)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def173]
openwsman-2.8.1/src/server/shttpd/shttpd.c:1926:17: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(config_file, "r")’
openwsman-2.8.1/src/server/shttpd/shttpd.c:1902:13: branch_false: following ‘false’ branch...
openwsman-2.8.1/src/server/shttpd/shttpd.c:1905:19: branch_false: ...to here
openwsman-2.8.1/src/server/shttpd/shttpd.c:1917:14: acquire_memory: allocated here
openwsman-2.8.1/src/server/shttpd/shttpd.c:1920:12: branch_false: following ‘false’ branch...
openwsman-2.8.1/src/server/shttpd/shttpd.c:1926:17: branch_false: ...to here
openwsman-2.8.1/src/server/shttpd/shttpd.c:1926:17: danger: ‘fopen(config_file, "r")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def174]
openwsman-2.8.1/src/server/shttpd/shttpd.c:1938:33: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(config_file, "r")’
openwsman-2.8.1/src/server/shttpd/shttpd.c:1902:13: branch_false: following ‘false’ branch...
openwsman-2.8.1/src/server/shttpd/shttpd.c:1905:19: branch_false: ...to here
openwsman-2.8.1/src/server/shttpd/shttpd.c:1917:14: acquire_resource: opened here
openwsman-2.8.1/src/server/shttpd/shttpd.c:1920:12: branch_false: following ‘false’ branch...
openwsman-2.8.1/src/server/shttpd/shttpd.c:1926:17: branch_false: ...to here
openwsman-2.8.1/src/server/shttpd/shttpd.c:1929:24: branch_true: following ‘true’ branch...
openwsman-2.8.1/src/server/shttpd/shttpd.c:1931:25: branch_true: ...to here
openwsman-2.8.1/src/server/shttpd/shttpd.c:1934:28: branch_false: following ‘false’ branch...
openwsman-2.8.1/src/server/shttpd/shttpd.c:1937:29: branch_false: ...to here
openwsman-2.8.1/src/server/shttpd/shttpd.c:1937:28: branch_true: following ‘true’ branch...
openwsman-2.8.1/src/server/shttpd/shttpd.c:1938:33: branch_true: ...to here
openwsman-2.8.1/src/server/shttpd/shttpd.c:1938:33: danger: ‘fopen(config_file, "r")’ leaks here; was opened at [(3)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def175]
openwsman-2.8.1/src/server/shttpd/shttpd.c:1938:33: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(config_file, "r")’
openwsman-2.8.1/src/server/shttpd/shttpd.c:1902:13: branch_false: following ‘false’ branch...
openwsman-2.8.1/src/server/shttpd/shttpd.c:1905:19: branch_false: ...to here
openwsman-2.8.1/src/server/shttpd/shttpd.c:1917:14: acquire_memory: allocated here
openwsman-2.8.1/src/server/shttpd/shttpd.c:1920:12: branch_false: following ‘false’ branch...
openwsman-2.8.1/src/server/shttpd/shttpd.c:1926:17: branch_false: ...to here
openwsman-2.8.1/src/server/shttpd/shttpd.c:1929:24: branch_true: following ‘true’ branch...
openwsman-2.8.1/src/server/shttpd/shttpd.c:1931:25: branch_true: ...to here
openwsman-2.8.1/src/server/shttpd/shttpd.c:1934:28: branch_false: following ‘false’ branch...
openwsman-2.8.1/src/server/shttpd/shttpd.c:1937:29: branch_false: ...to here
openwsman-2.8.1/src/server/shttpd/shttpd.c:1937:28: branch_true: following ‘true’ branch...
openwsman-2.8.1/src/server/shttpd/shttpd.c:1938:33: branch_true: ...to here
openwsman-2.8.1/src/server/shttpd/shttpd.c:1938:33: danger: ‘fopen(config_file, "r")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/2)
Error: COMPILER_WARNING (CWE-563): [#def176]
openwsman-2.8.1/src/server/shttpd/shttpd.c: scope_hint: In function ‘shttpd_init’
openwsman-2.8.1/src/server/shttpd/shttpd.c:1956:34: warning[-Wunused-but-set-variable]: variable ‘tm’ set but not used
Error: GCC_ANALYZER_WARNING (CWE-401): [#def177]
openwsman-2.8.1/src/server/shttpd/shttpd.c:1973:25: warning[-Wanalyzer-malloc-leak]: leak of ‘ctx’
openwsman-2.8.1/src/server/shttpd/shttpd.c:1959:20: acquire_memory: allocated here
openwsman-2.8.1/src/server/shttpd/shttpd.c:1959:12: branch_false: following ‘false’ branch (when ‘ctx’ is non-NULL)...
openwsman-2.8.1/src/server/shttpd/shttpd.c:1962:9: branch_false: ...to here
openwsman-2.8.1/src/server/shttpd/shttpd.c:1971:33: branch_true: following ‘true’ branch...
openwsman-2.8.1/src/server/shttpd/shttpd.c:1972:42: branch_true: ...to here
openwsman-2.8.1/src/server/shttpd/shttpd.c:1972:42: branch_true: following ‘true’ branch...
openwsman-2.8.1/src/server/shttpd/shttpd.c:1973:25: branch_true: ...to here
openwsman-2.8.1/src/server/shttpd/shttpd.c:1973:25: danger: ‘ctx’ leaks here; was allocated at [(1)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/0)
Error: COMPILER_WARNING (CWE-563): [#def178]
openwsman-2.8.1/src/server/wsmand-listener.c: scope_hint: At top level
openwsman-2.8.1/src/server/wsmand-listener.c:96:26: warning[-Wunused-variable]: ‘threads’ defined but not used
Error: CPPCHECK_WARNING (CWE-476): [#def179]
openwsman-2.8.1/src/server/wsmand-listener.c:179: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: state
Error: CPPCHECK_WARNING (CWE-476): [#def180]
openwsman-2.8.1/src/server/wsmand-listener.c:482: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: tmps
Error: GCC_ANALYZER_WARNING (CWE-401): [#def181]
openwsman-2.8.1/src/server/wsmand-listener.c:482:45: warning[-Wanalyzer-malloc-leak]: leak of ‘tmps’
openwsman-2.8.1/src/server/wsmand-listener.c:473:12: branch_false: following ‘false’ branch...
openwsman-2.8.1/src/server/wsmand-listener.c:476:13: branch_false: ...to here
openwsman-2.8.1/src/server/wsmand-listener.c:481:16: acquire_memory: allocated here
openwsman-2.8.1/src/server/wsmand-listener.c:482:45: danger: ‘tmps’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: CPPCHECK_WARNING (CWE-758): [#def182]
openwsman-2.8.1/src/server/wsmand-listener.c:638: error[missingReturn]: Found an exit path from function with non-void return type that has missing return statement
Error: COMPILER_WARNING (CWE-563): [#def183]
openwsman-2.8.1/src/server/wsmand-listener.c:644:13: warning[-Wunused-variable]: unused variable ‘lsn’
Error: COMPILER_WARNING (CWE-563): [#def184]
openwsman-2.8.1/src/server/wsmand-listener.c:644:24: warning[-Wunused-variable]: unused variable ‘sock’
Error: COMPILER_WARNING (CWE-563): [#def185]
openwsman-2.8.1/src/server/wsmand-listener.c:645:30: warning[-Wunused-variable]: unused variable ‘thread’
Error: COMPILER_WARNING (CWE-563): [#def186]
openwsman-2.8.1/src/server/wsmand-listener.c:651:13: warning[-Wunused-variable]: unused variable ‘use_ssl’
Error: COMPILER_WARNING (CWE-563): [#def187]
openwsman-2.8.1/src/server/wsmand-listener.c: scope_hint: In function ‘wsmand_start_server’
openwsman-2.8.1/src/server/wsmand-listener.c:657:13: warning[-Wunused-variable]: unused variable ‘num_threads’
Error: GCC_ANALYZER_WARNING (CWE-910): [#def188]
openwsman-2.8.1/src/server/wsmand.c:156:22: warning[-Wanalyzer-fd-use-after-close]: ‘dup’ on closed file descriptor ‘1’
openwsman-2.8.1/src/server/wsmand.c:147:17: release_resource: closed here
openwsman-2.8.1/src/server/wsmand.c:152:17: branch_true: following ‘true’ branch...
openwsman-2.8.1/src/server/wsmand.c:154:17: branch_true: ...to here
openwsman-2.8.1/src/server/wsmand.c:156:22: danger: ‘dup’ on closed file descriptor ‘1’; ‘close’ was at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def189]
openwsman-2.8.1/src/server/wsmand.c:172:33: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
openwsman-2.8.1/src/server/wsmand.c:194:13: enter_function: entry to ‘daemonize’
openwsman-2.8.1/src/server/wsmand.c:203:9: branch_true: following ‘true’ branch (when ‘i == 0’)...
openwsman-2.8.1/src/server/wsmand.c:205:13: branch_true: ...to here
openwsman-2.8.1/src/server/wsmand.c:205:12: branch_false: following ‘false’ branch...
openwsman-2.8.1/src/server/wsmand.c:209:19: branch_false: ...to here
openwsman-2.8.1/src/server/wsmand.c:214:12: branch_false: following ‘false’ branch (when ‘fork_rv <= 0’)...
openwsman-2.8.1/src/server/wsmand.c:218:9: branch_false: ...to here
openwsman-2.8.1/src/server/wsmand.c:226:9: branch_true: following ‘true’ branch...
openwsman-2.8.1/src/server/wsmand.c:230:14: branch_true: ...to here
openwsman-2.8.1/src/server/wsmand.c:232:9: branch_true: following ‘true’ branch...
openwsman-2.8.1/src/server/wsmand.c:234:14: branch_true: ...to here
openwsman-2.8.1/src/server/wsmand.c:234:14: acquire_resource: opened here
openwsman-2.8.1/src/server/wsmand.c:235:9: branch_true: following ‘true’ branch (when ‘fd == 2’)...
openwsman-2.8.1/src/server/wsmand.c:237:19: branch_true: ...to here
openwsman-2.8.1/src/server/wsmand.c:240:9: call_function: calling ‘rc_write’ from ‘daemonize’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def190]
openwsman-2.8.1/src/server/wsmand.c:237:14: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
openwsman-2.8.1/src/server/wsmand.c:203:9: branch_true: following ‘true’ branch (when ‘i == 0’)...
openwsman-2.8.1/src/server/wsmand.c:205:13: branch_true: ...to here
openwsman-2.8.1/src/server/wsmand.c:205:12: branch_false: following ‘false’ branch...
openwsman-2.8.1/src/server/wsmand.c:209:19: branch_false: ...to here
openwsman-2.8.1/src/server/wsmand.c:214:12: branch_false: following ‘false’ branch (when ‘fork_rv <= 0’)...
openwsman-2.8.1/src/server/wsmand.c:218:9: branch_false: ...to here
openwsman-2.8.1/src/server/wsmand.c:226:9: branch_true: following ‘true’ branch...
openwsman-2.8.1/src/server/wsmand.c:230:14: branch_true: ...to here
openwsman-2.8.1/src/server/wsmand.c:232:9: branch_true: following ‘true’ branch...
openwsman-2.8.1/src/server/wsmand.c:234:14: branch_true: ...to here
openwsman-2.8.1/src/server/wsmand.c:234:14: acquire_resource: opened here
openwsman-2.8.1/src/server/wsmand.c:235:9: branch_true: following ‘true’ branch (when ‘fd == 2’)...
openwsman-2.8.1/src/server/wsmand.c:237:19: branch_true: ...to here
openwsman-2.8.1/src/server/wsmand.c:237:14: danger: ‘fd’ leaks here; was opened at [(11)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def191]
openwsman-2.8.1/src/server/wsmand.c:237:19: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
openwsman-2.8.1/src/server/wsmand.c:203:9: branch_true: following ‘true’ branch (when ‘i == 0’)...
openwsman-2.8.1/src/server/wsmand.c:205:13: branch_true: ...to here
openwsman-2.8.1/src/server/wsmand.c:205:12: branch_false: following ‘false’ branch...
openwsman-2.8.1/src/server/wsmand.c:209:19: branch_false: ...to here
openwsman-2.8.1/src/server/wsmand.c:214:12: branch_false: following ‘false’ branch (when ‘fork_rv <= 0’)...
openwsman-2.8.1/src/server/wsmand.c:218:9: branch_false: ...to here
openwsman-2.8.1/src/server/wsmand.c:226:9: branch_true: following ‘true’ branch...
openwsman-2.8.1/src/server/wsmand.c:230:14: branch_true: ...to here
openwsman-2.8.1/src/server/wsmand.c:232:9: branch_true: following ‘true’ branch...
openwsman-2.8.1/src/server/wsmand.c:234:14: branch_true: ...to here
openwsman-2.8.1/src/server/wsmand.c:234:14: acquire_resource: opened here
openwsman-2.8.1/src/server/wsmand.c:235:9: branch_true: following ‘true’ branch (when ‘fd == 2’)...
openwsman-2.8.1/src/server/wsmand.c:237:19: branch_true: ...to here
openwsman-2.8.1/src/server/wsmand.c:237:19: danger: ‘fd’ leaks here; was opened at [(11)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def192]
openwsman-2.8.1/src/server/wsmand.c:239:15: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
openwsman-2.8.1/src/server/wsmand.c:203:9: branch_true: following ‘true’ branch (when ‘i == 0’)...
openwsman-2.8.1/src/server/wsmand.c:205:13: branch_true: ...to here
openwsman-2.8.1/src/server/wsmand.c:205:12: branch_false: following ‘false’ branch...
openwsman-2.8.1/src/server/wsmand.c:209:19: branch_false: ...to here
openwsman-2.8.1/src/server/wsmand.c:214:12: branch_false: following ‘false’ branch (when ‘fork_rv <= 0’)...
openwsman-2.8.1/src/server/wsmand.c:218:9: branch_false: ...to here
openwsman-2.8.1/src/server/wsmand.c:226:9: branch_true: following ‘true’ branch...
openwsman-2.8.1/src/server/wsmand.c:230:14: branch_true: ...to here
openwsman-2.8.1/src/server/wsmand.c:232:9: branch_true: following ‘true’ branch...
openwsman-2.8.1/src/server/wsmand.c:234:14: branch_true: ...to here
openwsman-2.8.1/src/server/wsmand.c:234:14: acquire_resource: opened here
openwsman-2.8.1/src/server/wsmand.c:235:9: branch_true: following ‘true’ branch (when ‘fd == 2’)...
openwsman-2.8.1/src/server/wsmand.c:237:19: branch_true: ...to here
openwsman-2.8.1/src/server/wsmand.c:239:15: danger: ‘fd’ leaks here; was opened at [(11)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def193]
openwsman-2.8.1/src/server/wsmand.c:241:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
openwsman-2.8.1/src/server/wsmand.c:194:13: enter_function: entry to ‘daemonize’
openwsman-2.8.1/src/server/wsmand.c:203:9: branch_true: following ‘true’ branch (when ‘i == 0’)...
openwsman-2.8.1/src/server/wsmand.c:205:13: branch_true: ...to here
openwsman-2.8.1/src/server/wsmand.c:205:12: branch_false: following ‘false’ branch...
openwsman-2.8.1/src/server/wsmand.c:209:19: branch_false: ...to here
openwsman-2.8.1/src/server/wsmand.c:214:12: branch_false: following ‘false’ branch (when ‘fork_rv <= 0’)...
openwsman-2.8.1/src/server/wsmand.c:218:9: branch_false: ...to here
openwsman-2.8.1/src/server/wsmand.c:226:9: branch_true: following ‘true’ branch...
openwsman-2.8.1/src/server/wsmand.c:230:14: branch_true: ...to here
openwsman-2.8.1/src/server/wsmand.c:232:9: branch_true: following ‘true’ branch...
openwsman-2.8.1/src/server/wsmand.c:234:14: branch_true: ...to here
openwsman-2.8.1/src/server/wsmand.c:234:14: acquire_resource: opened here
openwsman-2.8.1/src/server/wsmand.c:235:9: branch_true: following ‘true’ branch (when ‘fd == 2’)...
openwsman-2.8.1/src/server/wsmand.c:237:19: branch_true: ...to here
openwsman-2.8.1/src/server/wsmand.c:240:9: call_function: calling ‘rc_write’ from ‘daemonize’
openwsman-2.8.1/src/server/wsmand.c:240:9: return_function: returning to ‘daemonize’ from ‘rc_write’
openwsman-2.8.1/src/server/wsmand.c:241:9: danger: ‘fd’ leaks here; was opened at [(12)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/11)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def194]
openwsman-2.8.1/src/server/wsmand.c:242:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
openwsman-2.8.1/src/server/wsmand.c:194:13: enter_function: entry to ‘daemonize’
openwsman-2.8.1/src/server/wsmand.c:203:9: branch_true: following ‘true’ branch (when ‘i == 0’)...
openwsman-2.8.1/src/server/wsmand.c:205:13: branch_true: ...to here
openwsman-2.8.1/src/server/wsmand.c:205:12: branch_false: following ‘false’ branch...
openwsman-2.8.1/src/server/wsmand.c:209:19: branch_false: ...to here
openwsman-2.8.1/src/server/wsmand.c:214:12: branch_false: following ‘false’ branch (when ‘fork_rv <= 0’)...
openwsman-2.8.1/src/server/wsmand.c:218:9: branch_false: ...to here
openwsman-2.8.1/src/server/wsmand.c:226:9: branch_true: following ‘true’ branch...
openwsman-2.8.1/src/server/wsmand.c:230:14: branch_true: ...to here
openwsman-2.8.1/src/server/wsmand.c:232:9: branch_true: following ‘true’ branch...
openwsman-2.8.1/src/server/wsmand.c:234:14: branch_true: ...to here
openwsman-2.8.1/src/server/wsmand.c:234:14: acquire_resource: opened here
openwsman-2.8.1/src/server/wsmand.c:235:9: branch_true: following ‘true’ branch (when ‘fd == 2’)...
openwsman-2.8.1/src/server/wsmand.c:237:19: branch_true: ...to here
openwsman-2.8.1/src/server/wsmand.c:240:9: call_function: calling ‘rc_write’ from ‘daemonize’
openwsman-2.8.1/src/server/wsmand.c:240:9: return_function: returning to ‘daemonize’ from ‘rc_write’
openwsman-2.8.1/src/server/wsmand.c:242:9: danger: ‘fd’ leaks here; was opened at [(12)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/11)
Scan Properties
| analyzer-version-clippy | 1.90.0 |
| analyzer-version-cppcheck | 2.18.3 |
| analyzer-version-gcc | 15.2.1 |
| analyzer-version-gcc-analyzer | 16.0.0 |
| analyzer-version-shellcheck | 0.11.0 |
| analyzer-version-unicontrol | 0.0.2 |
| enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| exit-code | 0 |
| host | ip-172-16-1-206.us-west-2.compute.internal |
| known-false-positives | /usr/share/csmock/known-false-positives.js |
| known-false-positives-rpm | known-false-positives-0.0.0.20250521.132812.g8eff701.main-1.el9.noarch |
| mock-config | fedora-rawhide-gcc-latest-x86_64 |
| project-name | openwsman-2.8.1-10.fc44 |
| store-results-to | /tmp/tmpoxx0zlz3/openwsman-2.8.1-10.fc44.tar.xz |
| time-created | 2025-10-28 19:33:15 |
| time-finished | 2025-10-28 19:36:32 |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'gcc,cppcheck,shellcheck,clippy,unicontrol' '-o' '/tmp/tmpoxx0zlz3/openwsman-2.8.1-10.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmpoxx0zlz3/openwsman-2.8.1-10.fc44.src.rpm' |
| tool-version | csmock-3.8.3.20251027.143044.ge6b947b-1.el9 |