src/flac.c: Fix a buffer read overflow 00/211500/1
authorErik de Castro Lopo <erikd@mega-nerd.com>
Fri, 14 Apr 2017 05:19:16 +0000 (15:19 +1000)
committerSeungbae Shin <seungbae.shin@samsung.com>
Tue, 6 Aug 2019 04:04:40 +0000 (13:04 +0900)
commite1af2dc6cab081fd55290b2c5b05f67c229385b0
treec90ade7c27d145f920d7cbdedb4ae4a565a64f6c
parent4541f6025adedf0fdadf2e16c8f53115f31b6cae
src/flac.c: Fix a buffer read overflow

A file (generated by a fuzzer) which increased the number of channels
from one frame to the next could cause a read beyond the end of the
buffer provided by libFLAC. Only option is to abort the read.

Change-Id: Ibf8626f9a485c4b0a5db219d413651444f56e382
Closes: https://github.com/erikd/libsndfile/issues/231
src/flac.c