LibGfx: Validate type of cicpTag in ICC Profile

This should've really been part of e8bbb3d915.
This commit is contained in:
Nico Weber 2023-02-08 12:16:35 -05:00 committed by Linus Groh
parent cb3216cb45
commit 839bec14af

View file

@ -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"