mirror of
https://github.com/storytold/craft-libs.git
synced 2026-12-01 02:36:54 +01:00
The search of a packet for repeated property text was covered only by a timed call in craft-image-codecs' resolution tests. A test-only counter now records the bytes xmp_values searches for a key or a closing quote, and repeated_property_text_is_searched_once_for_each_property checks that 50,000 copies of " tiff:ResolutionUnit>" are searched at most once for each of the three resolution properties. With the search continuing past a value that never closes, it reads 26,250,525,000 bytes of the 1,050,000-byte packet and the test fails.