Open alpire opened 5 years ago
Thank you very much for these! It's a goal of the library to always handle malformed inputs as gracefully as possible and never throw back to the public API caller.
@alpire are you willing for us to add these to the (public) image library for regression testing?
I've created an issue to also test these against the .NET implementation.
Thanks again!
@drewnoakes: Glad you're finding those helpful. Feel free to add those to the image library, and generally use them as you see fit :)
psd/AssertionError.PsdReader.extract
mp3/ArrayIndexOutOfBoundsException.Mp3Reader.setBitrate
mp3/ArrayIndexOutOfBoundsException.Mp3Reader.extract
mp3/ArithmeticException.Mp3Reader.extract
jpeg/NegativeArraySizeException.DuckyReader.extract
heif/NullPointerException.HeifPictureHandler.processBox
heif/NegativeArraySizeException.ItemInfoBox.init
heif/NegativeArraySizeException.HeifReader.processBoxes
heif/IllegalArgumentException.HeifReader.processBoxes
ImageMetadataReader.readMetadata
can lead to various unchecked exceptions when parsing malformed psd, mp3, heif, and jpeg files.Steps to repro
java -ea -cp metadata-extractor-2.12.0.jar com.drew.imaging.ImageMetadataReader <input>
to reproduce the exceptions.Stacktraces
The files were generated by fuzzing and are (probably) not valid file formats.