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 <firstname.lastname@example.org>
Auto-Submit: Mike Klein <email@example.com>
Reviewed-by: Brian Osman <firstname.lastname@example.org>
4 files changed