Apache Commons logo Commons Imaging™ logo

FindBugs Bug Detector Report

The following document contains the results of FindBugs

FindBugs Version is 2.0.3

Threshold is

Effort is min

Summary

Classes Bugs Errors Missing Classes
415 53 0 0

Files

Class Bugs
org.apache.commons.imaging.common.bytesource.ByteSourceArray 3
org.apache.commons.imaging.formats.gif.GifImageParser 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.App2Segment 1
org.apache.commons.imaging.formats.jpeg.segments.DhtSegment$HuffmanTable 9
org.apache.commons.imaging.formats.jpeg.segments.DqtSegment$QuantizationTable 2
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.png.chunks.PngChunk 2
org.apache.commons.imaging.formats.png.chunks.PngChunkIccp 1
org.apache.commons.imaging.formats.png.chunks.PngChunkPlte 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.constants.GpsTagConstants 1
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 6
org.apache.commons.imaging.icc.IccTag 1
org.apache.commons.imaging.palette.SimplePalette 1

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.gif.GifImageParser

Bug Category Details Line Priority
Vacuous ior operation on GifImageParser.java:[line 841] in org.apache.commons.imaging.formats.gif.GifImageParser.writeImage(BufferedImage, OutputStream, Map) STYLE INT_VACUOUS_BIT_OPERATION 841 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 29 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 30 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 37 Medium

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

Bug Category Details Line Priority
org.apache.commons.imaging.formats.jpeg.segments.App2Segment.getIccBytes() may expose internal representation by returning App2Segment.iccBytes MALICIOUS_CODE EI_EXPOSE_REP 86 Medium

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

Bug Category Details Line Priority
org.apache.commons.imaging.formats.jpeg.segments.DhtSegment$HuffmanTable.getBits() may expose internal representation by returning DhtSegment$HuffmanTable.bits MALICIOUS_CODE EI_EXPOSE_REP 119 Medium
org.apache.commons.imaging.formats.jpeg.segments.DhtSegment$HuffmanTable.getHuffCode() may expose internal representation by returning DhtSegment$HuffmanTable.huffCode MALICIOUS_CODE EI_EXPOSE_REP 131 Medium
org.apache.commons.imaging.formats.jpeg.segments.DhtSegment$HuffmanTable.getHuffSize() may expose internal representation by returning DhtSegment$HuffmanTable.huffSize MALICIOUS_CODE EI_EXPOSE_REP 127 Medium
org.apache.commons.imaging.formats.jpeg.segments.DhtSegment$HuffmanTable.getHuffVal() may expose internal representation by returning DhtSegment$HuffmanTable.huffVal MALICIOUS_CODE EI_EXPOSE_REP 123 Medium
org.apache.commons.imaging.formats.jpeg.segments.DhtSegment$HuffmanTable.getMaxCode() may expose internal representation by returning DhtSegment$HuffmanTable.maxCode MALICIOUS_CODE EI_EXPOSE_REP 139 Medium
org.apache.commons.imaging.formats.jpeg.segments.DhtSegment$HuffmanTable.getMinCode() may expose internal representation by returning DhtSegment$HuffmanTable.minCode MALICIOUS_CODE EI_EXPOSE_REP 135 Medium
org.apache.commons.imaging.formats.jpeg.segments.DhtSegment$HuffmanTable.getValPtr() may expose internal representation by returning DhtSegment$HuffmanTable.valPtr MALICIOUS_CODE EI_EXPOSE_REP 143 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.bits MALICIOUS_CODE EI_EXPOSE_REP2 49 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 50 Medium

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

Bug Category Details Line Priority
org.apache.commons.imaging.formats.jpeg.segments.DqtSegment$QuantizationTable.getElements() may expose internal representation by returning DqtSegment$QuantizationTable.elements MALICIOUS_CODE EI_EXPOSE_REP 47 Medium
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 40 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.segmentData MALICIOUS_CODE EI_EXPOSE_REP2 38 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 168 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 167 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 103 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 105 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 104 Medium

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

Bug Category Details Line Priority
org.apache.commons.imaging.formats.png.chunks.PngChunk.getBytes() may expose internal representation by returning PngChunk.bytes MALICIOUS_CODE EI_EXPOSE_REP 57 Medium
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 39 Medium

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

Bug Category Details Line Priority
org.apache.commons.imaging.formats.png.chunks.PngChunkIccp.getUncompressedProfile() may expose internal representation by returning PngChunkIccp.uncompressedProfile MALICIOUS_CODE EI_EXPOSE_REP 35 Medium

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

Bug Category Details Line Priority
org.apache.commons.imaging.formats.png.chunks.PngChunkPlte.getRgb() may expose internal representation by returning PngChunkPlte.rgb MALICIOUS_CODE EI_EXPOSE_REP 57 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 34 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 57 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 53 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 65 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 104 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 98 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.constants.GpsTagConstants

Bug Category Details Line Priority
org.apache.commons.imaging.formats.tiff.constants.GpsTagConstants.GPS_VERSION is a mutable array MALICIOUS_CODE MS_MUTABLE_ARRAY 35 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 55 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 65 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 60 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 51 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 50 Medium

org.apache.commons.imaging.icc.IccProfileInfo

Bug Category Details Line Priority
org.apache.commons.imaging.icc.IccProfileInfo.getData() may expose internal representation by returning IccProfileInfo.data MALICIOUS_CODE EI_EXPOSE_REP 72 Medium
org.apache.commons.imaging.icc.IccProfileInfo.getProfileId() may expose internal representation by returning IccProfileInfo.profileId MALICIOUS_CODE EI_EXPOSE_REP 76 Medium
org.apache.commons.imaging.icc.IccProfileInfo.getTags() may expose internal representation by returning IccProfileInfo.tags MALICIOUS_CODE EI_EXPOSE_REP 80 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.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.tags MALICIOUS_CODE EI_EXPOSE_REP2 68 Medium

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 51 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 23 Medium