Add null guards to intrinsic constant evaluation.

The fuzzer quickly ascertained that it could pass in gigantic
values in order to generate an inf/nan, which causes constant-
evaluation to return null. We now guard against null returns.

Bug: oss-fuzz:58775, oss-fuzz:58776
Change-Id: I80962e1831281986412cb2d87508d48d6224b6ee
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/695616
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: John Stiles <johnstiles@google.com>
3 files changed