examples/c/decode/file/main.c : Add extra error handling.
Michele Spagnuolo provided a file that initially had frames with two channels but then had a frame with a single channel. This example program only supports exactly two channels and previously had insufficient validation. Closes: https://sourceforge.net/p/flac/bugs/418/ Reported-by: Michele Spagnuolo, Google Security Team <firstname.lastname@example.org>
Showing with 12 additions and 0 deletions