Files
craft-libs/crates/metadata/src
dotCooCoo 6fc0cf1884 metadata: count the bytes the XMP resolution search reads
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.
2026-11-27 19:19:18 -08:00
..