Skip to content

Commit a937323

Browse files
authored
Tests: widen PNG decoder Valgrind suppression (#1764)
Newer Rust builds may render the Cursor type in the PNG decoder stack as core::io::cursor::Cursor rather than std::io::cursor::Cursor. The existing fuzzy image hash suppression only matched the std::io spelling, so Debian 11 arm64 Valgrind jobs reported a known third-party PNG decoder warning instead of suppressing it. Use a wildcard for the leading module path so the suppression covers both symbol spellings while still requiring the fuzzy_hash_calculate_image stack.
1 parent 44ac42c commit a937323

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

unit_tests/valgrind.supp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@
380380
<image-fuzzy-hash-png-decoder>
381381
Memcheck:Cond
382382
...
383-
fun:read_header_info<std::io::cursor::Cursor<&[u8]>>
383+
fun:read_header_info<*::io::cursor::Cursor<&[u8]>>
384384
...
385385
fun:fuzzy_hash_calculate_image
386386
...

0 commit comments

Comments
 (0)