Check that unsized arrays are built from legal types

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