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)
committerJustin Ruggles <justin.ruggles@gmail.com>
Mon, 26 Sep 2011 19:29:45 +0000 (15:29 -0400)
commit4c5e7b27d57dd2be777780e840eef9be63242158
tree286899d7a921fc0aeb2897baf26ac2f58fac4b41
parent1430ae44e82074cc4edee508f11431a0d0fcbe12
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.
libavcodec/flacdec.c