SpotBugs Bug Detector Report

The following document contains the results of SpotBugs

SpotBugs Version is 4.7.1

Threshold is medium

Effort is default

Summary

Classes Bugs Errors Missing Classes
83 26 0 0

Files

Class Bugs
org.waarp.compress.zlib.ZlibCodec 1
org.waarp.compress.zstdsafe.BitInputStream 1
org.waarp.compress.zstdsafe.FiniteStateEntropy$Table 3
org.waarp.compress.zstdsafe.HuffmanCompressionTable 1
org.waarp.compress.zstdsafe.HuffmanCompressor 2
org.waarp.compress.zstdsafe.ZstdFrameCompressor 2
org.waarp.compress.zstdsafe.ZstdFrameDecompressor 3
org.waarp.compress.zstdunsafe.BitInputStream 1
org.waarp.compress.zstdunsafe.FiniteStateEntropy$Table 3
org.waarp.compress.zstdunsafe.HuffmanCompressionTable 1
org.waarp.compress.zstdunsafe.HuffmanCompressor 2
org.waarp.compress.zstdunsafe.UnsafeUtil 1
org.waarp.compress.zstdunsafe.ZstdFrameCompressor 2
org.waarp.compress.zstdunsafe.ZstdFrameDecompressor 3

org.waarp.compress.zlib.ZlibCodec

Bug Category Details Line Priority
Synchronisation incohérente de org.waarp.compress.zlib.ZlibCodec.byteArrayOutputStream; verrouillée à 92% MT_CORRECTNESS IS2_INCONSISTENT_SYNC 174 Medium

org.waarp.compress.zstdsafe.BitInputStream

Bug Category Details Line Priority
Switch statement found in org.waarp.compress.zstdsafe.BitInputStream.readTail(byte[], int, int) where default case is missing STYLE SF_SWITCH_NO_DEFAULT 61-73 Medium

org.waarp.compress.zstdsafe.FiniteStateEntropy$Table

Bug Category Details Line Priority
La méthode new org.waarp.compress.zstdsafe.FiniteStateEntropy$Table(int, int[], byte[], byte[]) risque d'exposer sa représentation interne en stockant un objet externe modifiable dans org.waarp.compress.zstdsafe.FiniteStateEntropy$Table.newState MALICIOUS_CODE EI_EXPOSE_REP2 587 Medium
La méthode new org.waarp.compress.zstdsafe.FiniteStateEntropy$Table(int, int[], byte[], byte[]) risque d'exposer sa représentation interne en stockant un objet externe modifiable dans org.waarp.compress.zstdsafe.FiniteStateEntropy$Table.numberOfBits MALICIOUS_CODE EI_EXPOSE_REP2 589 Medium
La méthode new org.waarp.compress.zstdsafe.FiniteStateEntropy$Table(int, int[], byte[], byte[]) risque d'exposer sa représentation interne en stockant un objet externe modifiable dans org.waarp.compress.zstdsafe.FiniteStateEntropy$Table.symbol MALICIOUS_CODE EI_EXPOSE_REP2 588 Medium

org.waarp.compress.zstdsafe.HuffmanCompressionTable

Bug Category Details Line Priority
Décalage à droite non signé et transtypage vers un short/byte dans org.waarp.compress.zstdsafe.HuffmanCompressionTable.initialize(int[], int, int, HuffmanCompressionTableWorkspace) STYLE ICAST_QUESTIONABLE_UNSIGNED_RIGHT_SHIFT 112 Medium

org.waarp.compress.zstdsafe.HuffmanCompressor

Bug Category Details Line Priority
Un switch de org.waarp.compress.zstdsafe.HuffmanCompressor.compressSingleStream(byte[], int, int, byte[], int, int, HuffmanCompressionTable) comporte un cas qui déborde sur le suivant STYLE SF_SWITCH_FALLTHROUGH 135-138 Medium
Switch statement found in org.waarp.compress.zstdsafe.HuffmanCompressor.compressSingleStream(byte[], int, int, byte[], int, int, HuffmanCompressionTable) where default case is missing STYLE SF_SWITCH_NO_DEFAULT 133-142 Medium

org.waarp.compress.zstdsafe.ZstdFrameCompressor

Bug Category Details Line Priority
Décalage à droite non signé et transtypage vers un short/byte dans org.waarp.compress.zstdsafe.ZstdFrameCompressor.encodeLiterals(HuffmanCompressionContext, CompressionParameters, byte[], int, int, byte[], int) STYLE ICAST_QUESTIONABLE_UNSIGNED_RIGHT_SHIFT 446 Medium
Vacuous ior operation on lastBlockFlag in org.waarp.compress.zstdsafe.ZstdFrameCompressor.compressFrame(byte[], int, int, byte[], int, int, CompressionParameters) STYLE INT_VACUOUS_BIT_OPERATION 212 Medium

org.waarp.compress.zstdsafe.ZstdFrameDecompressor

Bug Category Details Line Priority
Un switch de org.waarp.compress.zstdsafe.ZstdFrameDecompressor.decodeCompressedBlock(byte[], int, int, byte[], int, int, int, int) comporte un cas qui déborde sur le suivant STYLE SF_SWITCH_FALLTHROUGH 317-319 Medium
Un switch de org.waarp.compress.zstdsafe.ZstdFrameDecompressor.decodeCompressedLiterals(byte[], int, int, int) comporte un cas qui déborde sur le suivant STYLE SF_SWITCH_FALLTHROUGH 811-813 Medium
Switch statement found in org.waarp.compress.zstdsafe.ZstdFrameDecompressor.readFrameHeader(byte[], int, int) where default case is missing STYLE SF_SWITCH_NO_DEFAULT 989-1000 Medium

org.waarp.compress.zstdunsafe.BitInputStream

Bug Category Details Line Priority
Switch statement found in org.waarp.compress.zstdunsafe.BitInputStream.readTail(Object, long, int) where default case is missing STYLE SF_SWITCH_NO_DEFAULT 57-80 Medium

org.waarp.compress.zstdunsafe.FiniteStateEntropy$Table

Bug Category Details Line Priority
La méthode new org.waarp.compress.zstdunsafe.FiniteStateEntropy$Table(int, int[], byte[], byte[]) risque d'exposer sa représentation interne en stockant un objet externe modifiable dans org.waarp.compress.zstdunsafe.FiniteStateEntropy$Table.newState MALICIOUS_CODE EI_EXPOSE_REP2 593 Medium
La méthode new org.waarp.compress.zstdunsafe.FiniteStateEntropy$Table(int, int[], byte[], byte[]) risque d'exposer sa représentation interne en stockant un objet externe modifiable dans org.waarp.compress.zstdunsafe.FiniteStateEntropy$Table.numberOfBits MALICIOUS_CODE EI_EXPOSE_REP2 595 Medium
La méthode new org.waarp.compress.zstdunsafe.FiniteStateEntropy$Table(int, int[], byte[], byte[]) risque d'exposer sa représentation interne en stockant un objet externe modifiable dans org.waarp.compress.zstdunsafe.FiniteStateEntropy$Table.symbol MALICIOUS_CODE EI_EXPOSE_REP2 594 Medium

org.waarp.compress.zstdunsafe.HuffmanCompressionTable

Bug Category Details Line Priority
Décalage à droite non signé et transtypage vers un short/byte dans org.waarp.compress.zstdunsafe.HuffmanCompressionTable.initialize(int[], int, int, HuffmanCompressionTableWorkspace) STYLE ICAST_QUESTIONABLE_UNSIGNED_RIGHT_SHIFT 112 Medium

org.waarp.compress.zstdunsafe.HuffmanCompressor

Bug Category Details Line Priority
Un switch de org.waarp.compress.zstdunsafe.HuffmanCompressor.compressSingleStream(Object, long, int, Object, long, int, HuffmanCompressionTable) comporte un cas qui déborde sur le suivant STYLE SF_SWITCH_FALLTHROUGH 138-143 Medium
Switch statement found in org.waarp.compress.zstdunsafe.HuffmanCompressor.compressSingleStream(Object, long, int, Object, long, int, HuffmanCompressionTable) where default case is missing STYLE SF_SWITCH_NO_DEFAULT 136-151 Medium

org.waarp.compress.zstdunsafe.UnsafeUtil

Bug Category Details Line Priority
La méthode org.waarp.compress.zstdunsafe.UnsafeUtil.initAccessor() intercepte Exception, mais Exception n'est pas lancé dans le bloc try/catch et RuntimeException n'est pas appelé STYLE REC_CATCH_EXCEPTION 120 Medium

org.waarp.compress.zstdunsafe.ZstdFrameCompressor

Bug Category Details Line Priority
Décalage à droite non signé et transtypage vers un short/byte dans org.waarp.compress.zstdunsafe.ZstdFrameCompressor.encodeLiterals(HuffmanCompressionContext, CompressionParameters, Object, long, int, byte[], int) STYLE ICAST_QUESTIONABLE_UNSIGNED_RIGHT_SHIFT 449 Medium
Vacuous ior operation on lastBlockFlag in org.waarp.compress.zstdunsafe.ZstdFrameCompressor.compressFrame(Object, long, long, Object, long, long, CompressionParameters) STYLE INT_VACUOUS_BIT_OPERATION 214 Medium

org.waarp.compress.zstdunsafe.ZstdFrameDecompressor

Bug Category Details Line Priority
Un switch de org.waarp.compress.zstdunsafe.ZstdFrameDecompressor.decodeCompressedBlock(Object, long, int, Object, long, long, int, long) comporte un cas qui déborde sur le suivant STYLE SF_SWITCH_FALLTHROUGH 322-324 Medium
Un switch de org.waarp.compress.zstdunsafe.ZstdFrameDecompressor.decodeCompressedLiterals(Object, long, int, int) comporte un cas qui déborde sur le suivant STYLE SF_SWITCH_FALLTHROUGH 828-830 Medium
Switch statement found in org.waarp.compress.zstdunsafe.ZstdFrameDecompressor.readFrameHeader(Object, long, long) where default case is missing STYLE SF_SWITCH_NO_DEFAULT 1009-1020 Medium