summaryrefslogtreecommitdiffstats
path: root/libmpcodecs/vd.c
diff options
context:
space:
mode:
authorUoti Urpala <uau@mplayer2.org>2012-08-06 21:22:37 +0300
committerwm4 <wm4@nowhere>2012-08-16 17:16:33 +0200
commit7f0926498c59f87c05fcdc1994d9701d9d5f5bd4 (patch)
tree3070516230c5dc5e8d9e35fc2ec722787f4d31f5 /libmpcodecs/vd.c
parent202ea8214ef1db693405b75559868523ca725ac0 (diff)
downloadmpv-7f0926498c59f87c05fcdc1994d9701d9d5f5bd4.tar.bz2
mpv-7f0926498c59f87c05fcdc1994d9701d9d5f5bd4.tar.xz
ad_ffmpeg: add sanity check against decoder overreads
The libavcodec Musepack SV8 decoder returned 2 bytes consumed for 1 byte input, which triggered a crash due to negative input packet size later. Add a sanity check to prevent crashes with this type of minor decoder overreads. Also add a check to parser consumed data.
Diffstat (limited to 'libmpcodecs/vd.c')
0 files changed, 0 insertions, 0 deletions