mirror of
https://github.com/storytold/photocraft.git
synced 2026-11-21 17:37:14 +00:00
xmp_values advanced its cursor only past the matched key, so the value-closing search (find(close)) rescanned the remaining packet for every property-like substring. Repeating text such as ' tiff:ResolutionUnit>' inside the packet produced quadratic CPU work even when no real resolution property existed. Advance the cursor past each located value; a missing close delimiter means the value is unterminated, so no later value can parse and the scan stops. Valid multi-value extraction is unchanged. Finding: 6ce55e33-27f0-4fb9-a22f-737382e1d328 (CWE-407)