Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(159)

Issue 2257983003: Add checks for bogus profiles to SkColorSpace::NewICC() (Closed)

Created:
4 years, 4 months ago by msarett
Modified:
4 years, 2 months ago
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Add checks for bogus profiles to SkColorSpace::NewICC() This shouldn't change anything on Gold. Definitely think we should have these to deal with whatever crazy profiles are out in the wild. I borrowed a few ideas from QCMS and also made some of my own judgments. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2257983003

Patch Set 1 #

Patch Set 2 : Relax constraints #

Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -2 lines) Patch
M src/core/SkColorSpace_ICC.cpp View 1 4 chunks +13 lines, -2 lines 0 comments Download
M tests/ColorSpaceTest.cpp View 1 1 chunk +8 lines, -0 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 12 (7 generated)
msarett
4 years, 4 months ago (2016-08-19 19:59:30 UTC) #5
reed1
Hmmm, are these checks motivated by tests or fuzzes?
4 years, 4 months ago (2016-08-20 22:21:17 UTC) #8
msarett
On 2016/08/20 22:21:17, reed1 wrote: > Hmmm, are these checks motivated by tests or fuzzes? ...
4 years, 4 months ago (2016-08-22 12:40:43 UTC) #9
msarett
PTAL I've modified this to remove checks for "valid D50 matrices". We can add these ...
4 years, 2 months ago (2016-10-13 22:50:07 UTC) #10
msarett
4 years, 2 months ago (2016-10-14 17:16:07 UTC) #11
On 2016/10/13 22:50:07, msarett wrote:
> PTAL
> 
> I've modified this to remove checks for "valid D50 matrices".
> We can add these in if they end up being necessary for some
> reason...
> 
> I think it's important to land some sanity checks for profile
> size though?

Closing this for now.  I think it's fine to be less defensive, and to land these
types of things if/when we come across a need to actually have them.

Powered by Google App Engine
This is Rietveld 408576698