mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 12:37:44 +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
1 changed files with 2 additions and 1 deletions
|
@ -984,7 +984,8 @@ ErrorOr<void> Profile::check_tag_types()
|
||||||
|
|
||||||
// ICC v4, 9.2.17 cicpTag
|
// ICC v4, 9.2.17 cicpTag
|
||||||
// "Permitted tag types: cicpType"
|
// "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
|
// ICC v4, 9.2.18 colorantOrderTag
|
||||||
// "Permitted tag types: colorantOrderType"
|
// "Permitted tag types: colorantOrderType"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue