mirror of
https://github.com/claunia/flac.git
synced 2025-12-16 18:54:26 +00:00
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 <mikispag@google.com>
Here are several small example programs that use the libraries in different ways. The "c" directory has programs that are all in C and use libFLAC. The "cpp" directory has analogous programs that are all in C++ and use libFLAC++. The programs are: c/decode/file/ - example_c_decode_file - Simple FLAC file decoder using libFLAC c/encode/file/ - example_c_encode_file - Simple FLAC file encoder using libFLAC cpp/decode/file/ - example_cpp_decode_file - Simple FLAC file decoder using libFLAC++ cpp/encode/file/ - example_cpp_encode_file - Simple FLAC file encoder using libFLAC++