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

Work around invalid XMP XML #359

Closed drewnoakes closed 7 months ago

drewnoakes commented 7 months ago

Fixes #356

Software that re-writes XMP can do so without changing the size of the XMP segment. If it overwrites the data with a shorter payload, there can be junk at the end which causes the XML parsing to fail.

This change adds a scan for known end-of-message markers, to avoid this problem.