flacdec: fix buffer size checking in get_metadata_size()
authorJustin Ruggles <justin.ruggles@gmail.com>
Tue, 13 Sep 2011 19:13:44 +0000 (15:13 -0400)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 1 Oct 2011 18:33:34 +0000 (20:33 +0200)
commit20047f77b9592da17e8bc56e54d3b2e2ca6959a9
treeffda1ab26301829348dc074a579f7f5eb24053b9
parent7e362df304121003fda7705917d5e797b48a0920
flacdec: fix buffer size checking in get_metadata_size()

Adds an additional check before reading the next block header and avoids a
potential integer overflow when checking the metadata size against the
remaining buffer size.
(cherry picked from commit 4c5e7b27d57dd2be777780e840eef9be63242158)
libavcodec/flacdec.c