mirror of
https://github.com/SerenityOS/serenity
synced 2024-07-23 02:55:15 +00:00
LibGfx: Validate type of cicpTag in ICC Profile
This should've really been part of e8bbb3d915
.
This commit is contained in:
parent
cb3216cb45
commit
839bec14af
|
@ -984,7 +984,8 @@ ErrorOr<void> Profile::check_tag_types()
|
|||
|
||||
// ICC v4, 9.2.17 cicpTag
|
||||
// "Permitted tag types: cicpType"
|
||||
// FIXME
|
||||
if (!has_type(cicpTag, { CicpTagData::Type }, {}))
|
||||
return Error::from_string_literal("ICC::Profile: cicpTag has unexpected type");
|
||||
|
||||
// ICC v4, 9.2.18 colorantOrderTag
|
||||
// "Permitted tag types: colorantOrderType"
|
||||
|
|
Loading…
Reference in a new issue