FindBugs Bug Detector Report

The following document contains the results of FindBugs Report

FindBugs Version is 2.0.1

Threshold is

Effort is min

Summary

Classes Bugs Errors Missing Classes
423 49 0 0

Files

Class Bugs
org.apache.commons.imaging.common.BitArrayOutputStream 1
org.apache.commons.imaging.common.bytesource.ByteSourceArray 3
org.apache.commons.imaging.formats.bmp.pixelparsers.PixelParser 2
org.apache.commons.imaging.formats.gif.GifImageParser 1
org.apache.commons.imaging.formats.gif.ImageDescriptor 2
org.apache.commons.imaging.formats.icns.IcnsImageParser$IcnsElement 1
org.apache.commons.imaging.formats.jpeg.iptc.IptcBlock 2
org.apache.commons.imaging.formats.jpeg.iptc.IptcRecord 1
org.apache.commons.imaging.formats.jpeg.segments.DhtSegment$HuffmanTable 2
org.apache.commons.imaging.formats.jpeg.segments.DqtSegment$QuantizationTable 1
org.apache.commons.imaging.formats.jpeg.segments.GenericSegment 1
org.apache.commons.imaging.formats.jpeg.xmp.JpegRewriter$JFIFPieceImageData 2
org.apache.commons.imaging.formats.jpeg.xmp.JpegRewriter$JFIFPieceSegment 3
org.apache.commons.imaging.formats.pcx.PcxImageParser 1
org.apache.commons.imaging.formats.png.BitParser 1
org.apache.commons.imaging.formats.png.chunks.PngChunk 1
org.apache.commons.imaging.formats.png.transparencyfilters.TransparencyFilter 1
org.apache.commons.imaging.formats.psd.PsdHeaderInfo 1
org.apache.commons.imaging.formats.tiff.TiffElement$DataElement 2
org.apache.commons.imaging.formats.tiff.TiffField 1
org.apache.commons.imaging.formats.tiff.TiffImageData$Strips 2
org.apache.commons.imaging.formats.tiff.TiffImageData$Tiles 2
org.apache.commons.imaging.formats.tiff.datareaders.DataReader 1
org.apache.commons.imaging.formats.tiff.photometricinterpreters.PhotometricInterpreter 1
org.apache.commons.imaging.formats.tiff.write.TiffImageWriterLossless 2
org.apache.commons.imaging.formats.tiff.write.TiffOutputField 1
org.apache.commons.imaging.formats.tiff.write.TiffOutputItem$Value 1
org.apache.commons.imaging.icc.IccProfileInfo 3
org.apache.commons.imaging.icc.IccProfileParser 4
org.apache.commons.imaging.icc.IccTag 1
org.apache.commons.imaging.palette.SimplePalette 1

org.apache.commons.imaging.common.BitArrayOutputStream

Bug Category Details Line Priority
org.apache.commons.imaging.common.BitArrayOutputStream.toByteArray() may expose internal representation by returning BitArrayOutputStream.buffer MALICIOUS_CODE EI_EXPOSE_REP 46 Medium

org.apache.commons.imaging.common.bytesource.ByteSourceArray

Bug Category Details Line Priority
org.apache.commons.imaging.common.bytesource.ByteSourceArray.getAll() may expose internal representation by returning ByteSourceArray.bytes MALICIOUS_CODE EI_EXPOSE_REP 64 Medium
new org.apache.commons.imaging.common.bytesource.ByteSourceArray(String, byte[]) may expose internal representation by storing an externally mutable object into ByteSourceArray.bytes MALICIOUS_CODE EI_EXPOSE_REP2 28 Medium
new org.apache.commons.imaging.common.bytesource.ByteSourceArray(byte[]) may expose internal representation by storing an externally mutable object into ByteSourceArray.bytes MALICIOUS_CODE EI_EXPOSE_REP2 33 Medium

org.apache.commons.imaging.formats.bmp.pixelparsers.PixelParser

Bug Category Details Line Priority
new org.apache.commons.imaging.formats.bmp.pixelparsers.PixelParser(BmpHeaderInfo, byte[], byte[]) may expose internal representation by storing an externally mutable object into PixelParser.colorTable MALICIOUS_CODE EI_EXPOSE_REP2 37 Medium
new org.apache.commons.imaging.formats.bmp.pixelparsers.PixelParser(BmpHeaderInfo, byte[], byte[]) may expose internal representation by storing an externally mutable object into PixelParser.imageData MALICIOUS_CODE EI_EXPOSE_REP2 38 Medium

org.apache.commons.imaging.formats.gif.GifImageParser

Bug Category Details Line Priority
Vacuous ior operation on GifImageParser.java:[line 876] in org.apache.commons.imaging.formats.gif.GifImageParser.writeImage(BufferedImage, OutputStream, Map) STYLE INT_VACUOUS_BIT_OPERATION 876 Medium

org.apache.commons.imaging.formats.gif.ImageDescriptor

Bug Category Details Line Priority
new org.apache.commons.imaging.formats.gif.ImageDescriptor(int, int, int, int, int, byte, boolean, boolean, boolean, byte, byte[], byte[]) may expose internal representation by storing an externally mutable object into ImageDescriptor.imageData MALICIOUS_CODE EI_EXPOSE_REP2 53 Medium
new org.apache.commons.imaging.formats.gif.ImageDescriptor(int, int, int, int, int, byte, boolean, boolean, boolean, byte, byte[], byte[]) may expose internal representation by storing an externally mutable object into ImageDescriptor.localColorTable MALICIOUS_CODE EI_EXPOSE_REP2 52 Medium

org.apache.commons.imaging.formats.icns.IcnsImageParser$IcnsElement

Bug Category Details Line Priority
new org.apache.commons.imaging.formats.icns.IcnsImageParser$IcnsElement(int, int, byte[]) may expose internal representation by storing an externally mutable object into IcnsImageParser$IcnsElement.data MALICIOUS_CODE EI_EXPOSE_REP2 189 Medium

org.apache.commons.imaging.formats.jpeg.iptc.IptcBlock

Bug Category Details Line Priority
new org.apache.commons.imaging.formats.jpeg.iptc.IptcBlock(int, byte[], byte[]) may expose internal representation by storing an externally mutable object into IptcBlock.blockData MALICIOUS_CODE EI_EXPOSE_REP2 28 Medium
new org.apache.commons.imaging.formats.jpeg.iptc.IptcBlock(int, byte[], byte[]) may expose internal representation by storing an externally mutable object into IptcBlock.blockNameBytes MALICIOUS_CODE EI_EXPOSE_REP2 29 Medium

org.apache.commons.imaging.formats.jpeg.iptc.IptcRecord

Bug Category Details Line Priority
new org.apache.commons.imaging.formats.jpeg.iptc.IptcRecord(IptcType, byte[], String) may expose internal representation by storing an externally mutable object into IptcRecord.bytes MALICIOUS_CODE EI_EXPOSE_REP2 32 Medium

org.apache.commons.imaging.formats.jpeg.segments.DhtSegment$HuffmanTable

Bug Category Details Line Priority
new org.apache.commons.imaging.formats.jpeg.segments.DhtSegment$HuffmanTable(int, int, int[], int[]) may expose internal representation by storing an externally mutable object into DhtSegment$HuffmanTable.bits MALICIOUS_CODE EI_EXPOSE_REP2 46 Medium
new org.apache.commons.imaging.formats.jpeg.segments.DhtSegment$HuffmanTable(int, int, int[], int[]) may expose internal representation by storing an externally mutable object into DhtSegment$HuffmanTable.huffVal MALICIOUS_CODE EI_EXPOSE_REP2 47 Medium

org.apache.commons.imaging.formats.jpeg.segments.DqtSegment$QuantizationTable

Bug Category Details Line Priority
new org.apache.commons.imaging.formats.jpeg.segments.DqtSegment$QuantizationTable(int, int, int[]) may expose internal representation by storing an externally mutable object into DqtSegment$QuantizationTable.elements MALICIOUS_CODE EI_EXPOSE_REP2 38 Medium

org.apache.commons.imaging.formats.jpeg.segments.GenericSegment

Bug Category Details Line Priority
new org.apache.commons.imaging.formats.jpeg.segments.GenericSegment(int, byte[]) may expose internal representation by storing an externally mutable object into GenericSegment.bytes MALICIOUS_CODE EI_EXPOSE_REP2 37 Medium

org.apache.commons.imaging.formats.jpeg.xmp.JpegRewriter$JFIFPieceImageData

Bug Category Details Line Priority
new org.apache.commons.imaging.formats.jpeg.xmp.JpegRewriter$JFIFPieceImageData(byte[], byte[]) may expose internal representation by storing an externally mutable object into JpegRewriter$JFIFPieceImageData.imageData MALICIOUS_CODE EI_EXPOSE_REP2 151 Medium
new org.apache.commons.imaging.formats.jpeg.xmp.JpegRewriter$JFIFPieceImageData(byte[], byte[]) may expose internal representation by storing an externally mutable object into JpegRewriter$JFIFPieceImageData.markerBytes MALICIOUS_CODE EI_EXPOSE_REP2 150 Medium

org.apache.commons.imaging.formats.jpeg.xmp.JpegRewriter$JFIFPieceSegment

Bug Category Details Line Priority
new org.apache.commons.imaging.formats.jpeg.xmp.JpegRewriter$JFIFPieceSegment(int, byte[], byte[], byte[]) may expose internal representation by storing an externally mutable object into JpegRewriter$JFIFPieceSegment.markerBytes MALICIOUS_CODE EI_EXPOSE_REP2 85 Medium
new org.apache.commons.imaging.formats.jpeg.xmp.JpegRewriter$JFIFPieceSegment(int, byte[], byte[], byte[]) may expose internal representation by storing an externally mutable object into JpegRewriter$JFIFPieceSegment.segmentData MALICIOUS_CODE EI_EXPOSE_REP2 87 Medium
new org.apache.commons.imaging.formats.jpeg.xmp.JpegRewriter$JFIFPieceSegment(int, byte[], byte[], byte[]) may expose internal representation by storing an externally mutable object into JpegRewriter$JFIFPieceSegment.segmentLengthBytes MALICIOUS_CODE EI_EXPOSE_REP2 86 Medium

org.apache.commons.imaging.formats.pcx.PcxImageParser

Bug Category Details Line Priority
org.apache.commons.imaging.formats.pcx.PcxImageParser.read256ColorPaletteFromEndOfFile(ByteSource) might ignore java.io.IOException BAD_PRACTICE DE_MIGHT_IGNORE 374 Medium

org.apache.commons.imaging.formats.png.BitParser

Bug Category Details Line Priority
new org.apache.commons.imaging.formats.png.BitParser(byte[], int, int) may expose internal representation by storing an externally mutable object into BitParser.bytes MALICIOUS_CODE EI_EXPOSE_REP2 27 Medium

org.apache.commons.imaging.formats.png.chunks.PngChunk

Bug Category Details Line Priority
new org.apache.commons.imaging.formats.png.chunks.PngChunk(int, int, int, byte[]) may expose internal representation by storing an externally mutable object into PngChunk.bytes MALICIOUS_CODE EI_EXPOSE_REP2 36 Medium

org.apache.commons.imaging.formats.png.transparencyfilters.TransparencyFilter

Bug Category Details Line Priority
new org.apache.commons.imaging.formats.png.transparencyfilters.TransparencyFilter(byte[]) may expose internal representation by storing an externally mutable object into TransparencyFilter.bytes MALICIOUS_CODE EI_EXPOSE_REP2 28 Medium

org.apache.commons.imaging.formats.psd.PsdHeaderInfo

Bug Category Details Line Priority
new org.apache.commons.imaging.formats.psd.PsdHeaderInfo(int, byte[], int, int, int, int, int) may expose internal representation by storing an externally mutable object into PsdHeaderInfo.Reserved MALICIOUS_CODE EI_EXPOSE_REP2 35 Medium

org.apache.commons.imaging.formats.tiff.TiffElement$DataElement

Bug Category Details Line Priority
org.apache.commons.imaging.formats.tiff.TiffElement$DataElement.getData() may expose internal representation by returning TiffElement$DataElement.data MALICIOUS_CODE EI_EXPOSE_REP 58 Medium
new org.apache.commons.imaging.formats.tiff.TiffElement$DataElement(long, int, byte[]) may expose internal representation by storing an externally mutable object into TiffElement$DataElement.data MALICIOUS_CODE EI_EXPOSE_REP2 54 Medium

org.apache.commons.imaging.formats.tiff.TiffField

Bug Category Details Line Priority
new org.apache.commons.imaging.formats.tiff.TiffField(int, int, FieldType, long, long, byte[], ByteOrder, int) may expose internal representation by storing an externally mutable object into TiffField.value MALICIOUS_CODE EI_EXPOSE_REP2 63 Medium

org.apache.commons.imaging.formats.tiff.TiffImageData$Strips

Bug Category Details Line Priority
org.apache.commons.imaging.formats.tiff.TiffImageData$Strips.getImageData() may expose internal representation by returning TiffImageData$Strips.strips MALICIOUS_CODE EI_EXPOSE_REP 105 Medium
new org.apache.commons.imaging.formats.tiff.TiffImageData$Strips(TiffElement$DataElement[], int) may expose internal representation by storing an externally mutable object into TiffImageData$Strips.strips MALICIOUS_CODE EI_EXPOSE_REP2 99 Medium

org.apache.commons.imaging.formats.tiff.TiffImageData$Tiles

Bug Category Details Line Priority
org.apache.commons.imaging.formats.tiff.TiffImageData$Tiles.getImageData() may expose internal representation by returning TiffImageData$Tiles.tiles MALICIOUS_CODE EI_EXPOSE_REP 46 Medium
new org.apache.commons.imaging.formats.tiff.TiffImageData$Tiles(TiffElement$DataElement[], int, int) may expose internal representation by storing an externally mutable object into TiffImageData$Tiles.tiles MALICIOUS_CODE EI_EXPOSE_REP2 39 Medium

org.apache.commons.imaging.formats.tiff.datareaders.DataReader

Bug Category Details Line Priority
new org.apache.commons.imaging.formats.tiff.datareaders.DataReader(TiffDirectory, PhotometricInterpreter, int[], int, int, int, int) may expose internal representation by storing an externally mutable object into DataReader.bitsPerSample MALICIOUS_CODE EI_EXPOSE_REP2 53 Medium

org.apache.commons.imaging.formats.tiff.photometricinterpreters.PhotometricInterpreter

Bug Category Details Line Priority
new org.apache.commons.imaging.formats.tiff.photometricinterpreters.PhotometricInterpreter(int, int[], int, int, int) may expose internal representation by storing an externally mutable object into PhotometricInterpreter.bitsPerSample MALICIOUS_CODE EI_EXPOSE_REP2 34 Medium

org.apache.commons.imaging.formats.tiff.write.TiffImageWriterLossless

Bug Category Details Line Priority
new org.apache.commons.imaging.formats.tiff.write.TiffImageWriterLossless(ByteOrder, byte[]) may expose internal representation by storing an externally mutable object into TiffImageWriterLossless.exifBytes MALICIOUS_CODE EI_EXPOSE_REP2 53 Medium
new org.apache.commons.imaging.formats.tiff.write.TiffImageWriterLossless(byte[]) may expose internal representation by storing an externally mutable object into TiffImageWriterLossless.exifBytes MALICIOUS_CODE EI_EXPOSE_REP2 48 Medium

org.apache.commons.imaging.formats.tiff.write.TiffOutputField

Bug Category Details Line Priority
new org.apache.commons.imaging.formats.tiff.write.TiffOutputField(int, TagInfo, FieldType, int, byte[]) may expose internal representation by storing an externally mutable object into TiffOutputField.bytes MALICIOUS_CODE EI_EXPOSE_REP2 50 Medium

org.apache.commons.imaging.formats.tiff.write.TiffOutputItem$Value

Bug Category Details Line Priority
new org.apache.commons.imaging.formats.tiff.write.TiffOutputItem$Value(String, byte[]) may expose internal representation by storing an externally mutable object into TiffOutputItem$Value.bytes MALICIOUS_CODE EI_EXPOSE_REP2 51 Medium

org.apache.commons.imaging.icc.IccProfileInfo

Bug Category Details Line Priority
new org.apache.commons.imaging.icc.IccProfileInfo(byte[], int, int, int, int, int, int, int, int, int, int, int, int, int, byte[], IccTag[]) may expose internal representation by storing an externally mutable object into IccProfileInfo.ProfileID MALICIOUS_CODE EI_EXPOSE_REP2 66 Medium
new org.apache.commons.imaging.icc.IccProfileInfo(byte[], int, int, int, int, int, int, int, int, int, int, int, int, int, byte[], IccTag[]) may expose internal representation by storing an externally mutable object into IccProfileInfo.data MALICIOUS_CODE EI_EXPOSE_REP2 51 Medium
new org.apache.commons.imaging.icc.IccProfileInfo(byte[], int, int, int, int, int, int, int, int, int, int, int, int, int, byte[], IccTag[]) may expose internal representation by storing an externally mutable object into IccProfileInfo.tags MALICIOUS_CODE EI_EXPOSE_REP2 68 Medium

org.apache.commons.imaging.icc.IccProfileParser

Bug Category Details Line Priority
org.apache.commons.imaging.icc.IccProfileParser.issRGB(ICC_Profile) has Boolean return type and returns explicit null BAD_PRACTICE NP_BOOLEAN_RETURN_NULL 309 High
org.apache.commons.imaging.icc.IccProfileParser.issRGB(File) has Boolean return type and returns explicit null BAD_PRACTICE NP_BOOLEAN_RETURN_NULL 325 High
org.apache.commons.imaging.icc.IccProfileParser.issRGB(ByteSource) has Boolean return type and returns explicit null BAD_PRACTICE NP_BOOLEAN_RETURN_NULL 386 High
org.apache.commons.imaging.icc.IccProfileParser.issRGB(byte[]) has Boolean return type and returns explicit null BAD_PRACTICE NP_BOOLEAN_RETURN_NULL 317 High

org.apache.commons.imaging.icc.IccTag

Bug Category Details Line Priority
org.apache.commons.imaging.icc.IccTag.setData(byte[]) may expose internal representation by storing an externally mutable object into IccTag.data MALICIOUS_CODE EI_EXPOSE_REP2 49 Medium

org.apache.commons.imaging.palette.SimplePalette

Bug Category Details Line Priority
new org.apache.commons.imaging.palette.SimplePalette(int[]) may expose internal representation by storing an externally mutable object into SimplePalette.palette MALICIOUS_CODE EI_EXPOSE_REP2 25 Medium