fix fuzzer bug
I mistakenly rewrote read_mft_common() to trust input_channels before
testing it's in safe range. This CL restores the original order.
out/clang.xsan/fuzz_iccprofile_atf and the new test case repro'd this.
It looks like this might fix attached both issues, but I haven't looked
as hard at 32767 or repro'd it with MSAN.
Bug: oss-fuzz:32765, oss-fuzz:32767
Commit-Queue: Brian Osman <email@example.com>
Auto-Submit: Mike Klein <firstname.lastname@example.org>
Reviewed-by: Brian Osman <email@example.com>
4 files changed