SpotBugs Bug Detector Report

The following document contains the results of SpotBugs

SpotBugs Version is 4.7.3

Threshold is medium

Effort is default

Summary

Classes Bugs Errors Missing Classes
15 6 0 0

Files

Class Bugs
org.apache.shardingsphere.database.protocol.opengauss.packet.authentication.OpenGaussAuthenticationSCRAMSha256Packet 1
org.apache.shardingsphere.database.protocol.opengauss.packet.authentication.OpenGaussMacCalculator 1
org.apache.shardingsphere.database.protocol.opengauss.packet.command.bind.OpenGaussComBatchBindPacket 4

org.apache.shardingsphere.database.protocol.opengauss.packet.authentication.OpenGaussAuthenticationSCRAMSha256Packet

Bug Category Details Line Priority
Found reliance on default encoding in org.apache.shardingsphere.database.protocol.opengauss.packet.authentication.OpenGaussAuthenticationSCRAMSha256Packet.write(PostgreSQLPacketPayload): String.getBytes() I18N DM_DEFAULT_ENCODING 54 High

org.apache.shardingsphere.database.protocol.opengauss.packet.authentication.OpenGaussMacCalculator

Bug Category Details Line Priority
Found reliance on default encoding in org.apache.shardingsphere.database.protocol.opengauss.packet.authentication.OpenGaussMacCalculator.requestClientMac(String, String, int): String.getBytes() I18N DM_DEFAULT_ENCODING 74 High

org.apache.shardingsphere.database.protocol.opengauss.packet.command.bind.OpenGaussComBatchBindPacket

Bug Category Details Line Priority
org.apache.shardingsphere.database.protocol.opengauss.packet.command.bind.OpenGaussComBatchBindPacket.getParameterFormats() may expose internal representation by returning OpenGaussComBatchBindPacket.parameterFormats MALICIOUS_CODE EI_EXPOSE_REP 45 Medium
org.apache.shardingsphere.database.protocol.opengauss.packet.command.bind.OpenGaussComBatchBindPacket.getPayload() may expose internal representation by returning OpenGaussComBatchBindPacket.payload MALICIOUS_CODE EI_EXPOSE_REP 39 Medium
org.apache.shardingsphere.database.protocol.opengauss.packet.command.bind.OpenGaussComBatchBindPacket.getResultFormats() may expose internal representation by returning OpenGaussComBatchBindPacket.resultFormats MALICIOUS_CODE EI_EXPOSE_REP 47 Medium
new org.apache.shardingsphere.database.protocol.opengauss.packet.command.bind.OpenGaussComBatchBindPacket(PostgreSQLPacketPayload) may expose internal representation by storing an externally mutable object into OpenGaussComBatchBindPacket.payload MALICIOUS_CODE EI_EXPOSE_REP2 52 Medium