mp3dec: Fix a heap-buffer-overflow
authorAlex Converse <alex.converse@gmail.com>
Wed, 25 Jan 2012 23:46:14 +0000 (15:46 -0800)
committerAlex Converse <alex.converse@gmail.com>
Tue, 31 Jan 2012 00:49:15 +0000 (16:49 -0800)
commitf372ce119bd2458fa0b4ddfb2af3a36621df99f7
tree4437c317ccb2e742eefeda098414a02448912066
parenta3a0691bdecf0b2ead2d06ea06c0c278733eef91
mp3dec: Fix a heap-buffer-overflow

In some cases, what is left to read from ptr is smaller than EXTRABYTES.

Based on a patch by Thierry Foucu <tfoucu@gmail.com>.

Signed-off-by: Alex Converse <alex.converse@gmail.com>
libavcodec/mpegaudiodec.c