]> git.sesse.net Git - ffmpeg/commit
mss2: only use error correction for matching block counts
authorAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Thu, 24 Nov 2016 22:57:46 +0000 (23:57 +0100)
committerAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Fri, 25 Nov 2016 20:05:03 +0000 (21:05 +0100)
commit2566ad98b01538ea589e5ee07b69fc566aadc348
tree9b32291fc13874bcf5db539d3109a188d84ad6a8
parent829db8effd76b579ae9aca5ee8f85d3ade6af253
mss2: only use error correction for matching block counts

This fixes a heap-buffer-overflow in ff_er_frame_end when decoding mss2
with coded_width/coded_height larger than width/height.

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
libavcodec/mss2.c