drewnoakes / metadata-extractor-dotnet

Extracts Exif, IPTC, XMP, ICC and other metadata from image, video and audio files
Other
922 stars 164 forks source link

Remove excessive bounds checking in IndexedReader #327

Closed drewnoakes closed 1 year ago

drewnoakes commented 1 year ago

Fixes #62

Adds a new abstract overload for reading a single byte. That method will not do any explicit bounds validation, so callers must do that beforehand. In cases where multiple bytes are read, the validation can be performed once per value, rather than once per byte.

drewnoakes commented 1 year ago

This has some failures in the (manual) regression tests that need to be investigated.