Apache Commons logo Commons Imaging™ logo

FindBugs Bug Detector Report

The following document contains the results of FindBugs

FindBugs Version is 3.0.1

Threshold is

Effort is min

Summary

Classes Bugs Errors Missing Classes
427 35 0 0

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 63 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

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 31 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 32 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 87 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.xmp.JpegRewriter$JFIFPieceSegment

Bug Category Details Line Priority
org.apache.commons.imaging.formats.jpeg.xmp.JpegRewriter$JFIFPieceSegment.getSegmentData() may expose internal representation by returning JpegRewriter$JFIFPieceSegment.segmentData MALICIOUS_CODE EI_EXPOSE_REP 163 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.pnm.PnmImageParser

Bug Category Details Line Priority
Useless condition: it's known that identifier2 == 54 at this point STYLE UC_USELESS_CONDITION 133 High

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 58 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.datareaders.ImageDataReader

Bug Category Details Line Priority
new org.apache.commons.imaging.formats.tiff.datareaders.ImageDataReader(TiffDirectory, PhotometricInterpreter, int[], int, int, int, int) may expose internal representation by storing an externally mutable object into ImageDataReader.bitsPerSample MALICIOUS_CODE EI_EXPOSE_REP2 65 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 69 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 64 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 50 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