avcodec/smc: fix off by 1 error
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 3 Oct 2014 20:50:45 +0000 (22:50 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 3 Oct 2014 21:24:14 +0000 (23:24 +0200)
commit1ac4ae2a32d16c97792f40df660cd8c4a9e049b2
treed365a0c5ea6eb184a7e6730c189a518ce1fb9a44
parent3998071039b22f8a620b98d027b16f87c76f01ce
avcodec/smc: fix off by 1 error

Fixes out of array access
Fixes: asan_heap-oob_1685bf0_5_asan_heap-oob_1f35116_430_smc.mov

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit c727401aa9d62335e89d118a5b4e202edf39d905)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/smc.c