mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 08:12:05 +00:00
Bug 498245. Check that the profile is an RGB profile before checking if it's bogus. r=bholley
This avoids unitialized reads on non-RGB profiles.
This commit is contained in:
parent
75e4ff4fd2
commit
5f01b80d83
@ -227,6 +227,10 @@ qcms_bool qcms_profile_is_bogus(qcms_profile *profile)
|
||||
bool negative;
|
||||
unsigned i;
|
||||
|
||||
// We currently only check the bogosity of RGB profiles
|
||||
if (profile->color_space != RGB_SIGNATURE)
|
||||
return false;
|
||||
|
||||
rX = s15Fixed16Number_to_float(profile->redColorant.X);
|
||||
rY = s15Fixed16Number_to_float(profile->redColorant.Y);
|
||||
rZ = s15Fixed16Number_to_float(profile->redColorant.Z);
|
||||
|
Loading…
Reference in New Issue
Block a user