mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-14 21:36:13 +01:00
fcd2f7e639
This code was added for use by the G_FILE_ATTRIBUTE_THUMBNAIL_IS_VALID
file attribute, but may end up being used elsewhere (e.g. in GVfs) as well.
As it’s dealing with untrusted external files, and the non-trivial PNG file
format, this commit adds several test cases to cover valid and invalid PNG
files.
The security model for the thumbnail verification code is that the user’s
cache directory is untrusted, and potentially any PNG file which is passed
to the verifier has been manipulated arbitrarily by an attacker.
This is a follow-up to commit
|
||
---|---|---|
.. | ||
bad-header.png | ||
empty-key.png | ||
header-and-chunk-size.png | ||
header-only.png | ||
huge-chunk-size.png | ||
mtime-zero.png | ||
no-text-data.png | ||
overlong-value.png | ||
uri-mismatch.png | ||
valid-no-size.png | ||
valid.png |