drewnoakes / metadata-extractor

Extracts Exif, IPTC, XMP, ICC and other metadata from image, video and audio files
Apache License 2.0
2.56k stars 480 forks source link

RiffReader.processChunks should have more error checking #415

Open kwhopper opened 5 years ago

kwhopper commented 5 years ago

The Java implementation of RiffReader.processChunks has almost no error condition checks for things like too short of a header (8 bytes) or tracking sizeLeft. The .NET implementation is apparently better and should be ported back to Java.

Noted in drewnoakes/metadata-extractor-dotnet#184

drewnoakes commented 5 years ago

Thanks Kevin for opening all these issues 👍