SpotBugs Bug Detector Report

The following document contains the results of SpotBugs[1]

SpotBugs Version is 4.9.3

Threshold is medium

Effort is default

Summary

Classes Bugs Errors Missing Classes
26 16 0 0

Files

Class Bugs
org.metricshub.wmi.WqlQuery 2
org.metricshub.wmi.remotecommand.RemoteProcess 1
org.metricshub.wmi.wbem.CoAuthIdentity 4
org.metricshub.wmi.wbem.WmiCimTypeHandler 1
org.metricshub.wmi.wbem.WmiComHelper 1
org.metricshub.wmi.wbem.WmiWbemServices 5
org.metricshub.wmi.windows.remote.WindowsRemoteProcessUtils 2

org.metricshub.wmi.WqlQuery

Bug Category Details Line Priority
org.metricshub.wmi.WqlQuery.getSelectedProperties() may expose internal representation by returning WqlQuery.selectedProperties MALICIOUS_CODE EI_EXPOSE_REP[2] 230[3] Medium
org.metricshub.wmi.WqlQuery.getSubPropertiesMap() may expose internal representation by returning WqlQuery.subPropertiesMap MALICIOUS_CODE EI_EXPOSE_REP[2] 234[4] Medium

org.metricshub.wmi.remotecommand.RemoteProcess

Bug Category Details Line Priority
Possible null pointer dereference of returnCode in org.metricshub.wmi.remotecommand.RemoteProcess.killProcess(WmiWbemServices, long) CORRECTNESS NP_NULL_ON_SOME_PATH[5] 237[6] Medium

org.metricshub.wmi.wbem.CoAuthIdentity

Bug Category Details Line Priority
Unread public/protected field: org.metricshub.wmi.wbem.CoAuthIdentity.domainLength STYLE URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD[7] 76[8] Medium
Unread public/protected field: org.metricshub.wmi.wbem.CoAuthIdentity.flags STYLE URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD[7] 95[9] Medium
Unread public/protected field: org.metricshub.wmi.wbem.CoAuthIdentity.passwordLength STYLE URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD[7] 88[10] Medium
Unread public/protected field: org.metricshub.wmi.wbem.CoAuthIdentity.userLength STYLE URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD[7] 70[11] Medium

org.metricshub.wmi.wbem.WmiCimTypeHandler

Bug Category Details Line Priority
Check for sign of bitwise operation in org.metricshub.wmi.wbem.WmiCimTypeHandler.convert(Variant$VARIANT$ByReference, int, Map$Entry) BAD_PRACTICE BIT_SIGNED_CHECK[12] 356[13] Medium

org.metricshub.wmi.wbem.WmiComHelper

Bug Category Details Line Priority
Result of integer multiplication cast to long in org.metricshub.wmi.wbem.WmiComHelper.comInvokerInvokeNativeObject(Pointer, int, Object[], Class) STYLE ICAST_INTEGER_MULTIPLY_CAST_TO_LONG[14] 144[15] Medium

org.metricshub.wmi.wbem.WmiWbemServices

Bug Category Details Line Priority
org.metricshub.wmi.wbem.WmiWbemServices.getAuthIdent() may expose internal representation by returning WmiWbemServices.authIdent MALICIOUS_CODE EI_EXPOSE_REP[2] 1450[16] Medium
org.metricshub.wmi.wbem.WmiWbemServices.getContext() may expose internal representation by returning WmiWbemServices.context MALICIOUS_CODE EI_EXPOSE_REP[2] 1446[17] Medium
org.metricshub.wmi.wbem.WmiWbemServices.getPassword() may expose internal representation by returning WmiWbemServices.password MALICIOUS_CODE EI_EXPOSE_REP[2] 1434[18] Medium
org.metricshub.wmi.wbem.WmiWbemServices.getWbemLocator() may expose internal representation by returning WmiWbemServices.wbemLocator MALICIOUS_CODE EI_EXPOSE_REP[2] 1442[19] Medium
org.metricshub.wmi.wbem.WmiWbemServices.getWbemServices() may expose internal representation by returning WmiWbemServices.wbemServices MALICIOUS_CODE EI_EXPOSE_REP[2] 1438[20] Medium

org.metricshub.wmi.windows.remote.WindowsRemoteProcessUtils

Bug Category Details Line Priority
Possible null pointer dereference in org.metricshub.wmi.windows.remote.WindowsRemoteProcessUtils.copyToShare(Path, String, String) due to return value of called method STYLE NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE[21] 221[22] Medium
Possible null pointer dereference in org.metricshub.wmi.windows.remote.WindowsRemoteProcessUtils.copyToShare(Path, String, String) due to return value of called method STYLE NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE[21] 222[23] Medium
wmi
Links:
  • [1] https://spotbugs.github.io/
  • [2] https://spotbugs.readthedocs.io/en/latest/bugDescriptions.html#EI_EXPOSE_REP
  • [3] ./xref/org/metricshub/wmi/WqlQuery.html#L230
  • [4] ./xref/org/metricshub/wmi/WqlQuery.html#L234
  • [5] https://spotbugs.readthedocs.io/en/latest/bugDescriptions.html#NP_NULL_ON_SOME_PATH
  • [6] ./xref/org/metricshub/wmi/remotecommand/RemoteProcess.html#L237
  • [7] https://spotbugs.readthedocs.io/en/latest/bugDescriptions.html#URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD
  • [8] ./xref/org/metricshub/wmi/wbem/CoAuthIdentity.html#L76
  • [9] ./xref/org/metricshub/wmi/wbem/CoAuthIdentity.html#L95
  • [10] ./xref/org/metricshub/wmi/wbem/CoAuthIdentity.html#L88
  • [11] ./xref/org/metricshub/wmi/wbem/CoAuthIdentity.html#L70
  • [12] https://spotbugs.readthedocs.io/en/latest/bugDescriptions.html#BIT_SIGNED_CHECK
  • [13] ./xref/org/metricshub/wmi/wbem/WmiCimTypeHandler.html#L356
  • [14] https://spotbugs.readthedocs.io/en/latest/bugDescriptions.html#ICAST_INTEGER_MULTIPLY_CAST_TO_LONG
  • [15] ./xref/org/metricshub/wmi/wbem/WmiComHelper.html#L144
  • [16] ./xref/org/metricshub/wmi/wbem/WmiWbemServices.html#L1450
  • [17] ./xref/org/metricshub/wmi/wbem/WmiWbemServices.html#L1446
  • [18] ./xref/org/metricshub/wmi/wbem/WmiWbemServices.html#L1434
  • [19] ./xref/org/metricshub/wmi/wbem/WmiWbemServices.html#L1442
  • [20] ./xref/org/metricshub/wmi/wbem/WmiWbemServices.html#L1438
  • [21] https://spotbugs.readthedocs.io/en/latest/bugDescriptions.html#NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE
  • [22] ./xref/org/metricshub/wmi/windows/remote/WindowsRemoteProcessUtils.html#L221
  • [23] ./xref/org/metricshub/wmi/windows/remote/WindowsRemoteProcessUtils.html#L222
Searching...
No results.