Reject profiles with (some) malformed tag data

If we know how to parse a tag, and it fails to parse, then treat the
profile as invalid. Also remove some overly paranoid/redundant error
checking from the static parse helpers.

Change-Id: Ie6c3fff015b512aafd8e6e49620d913d866bf3af
Reviewed-on: https://skia-review.googlesource.com/110240
Commit-Queue: Mike Klein <mtklein@chromium.org>
Reviewed-by: Mike Klein <mtklein@chromium.org>
2 files changed