Tighten up masking of colorType & alphaType in SkImageInfo serialization (for fuzzer...
authorrobertphillips <robertphillips@google.com>
Tue, 28 Jun 2016 18:02:30 +0000 (11:02 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 28 Jun 2016 18:02:30 +0000 (11:02 -0700)
commitc31bb870f274455197749cceea48c45c4b905d6e
treeaef9697850c352b0b428d2d38a50a650230eb88c
parentd9114cb8f37cc106b07bb50fc736ede394d88dae
Tighten up masking of colorType & alphaType in SkImageInfo serialization (for fuzzer bug)

In this case the int that contains the color and alpha types is getting munged. We don't really case that the surplus bits are 0 just that the values we care about are reasonable.

GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2110493002

Review-Url: https://codereview.chromium.org/2110493002
src/core/SkImageInfo.cpp