avcodec/msrle: use av_image_get_linesize() to calculate the linesize
authorMichael Niedermayer <michaelni@gmx.at>
Sun, 16 Feb 2014 22:08:52 +0000 (23:08 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 7 Mar 2014 03:04:07 +0000 (04:04 +0100)
commit0c58c165ab51260ba2e6cb606b8057a7c9783ef3
tree1869df10c0d9bf4ffd25540e499f1a94994246d4
parent694c3a13c9489c6e05f88486b489dd0746d114fc
avcodec/msrle: use av_image_get_linesize() to calculate the linesize

Fixes out of array access
Fixes: 14a74a0a2dc67ede543f0e35d834fbbe-asan_heap-oob_49572c_556_cov_215466444_44_001_engine_room.mov
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit c919e1ca2ecfc47d796382973ba0e48b8f6f92a2)

Conflicts:

libavcodec/msrle.c
(cherry picked from commit bc1c8ec5e65098fd2ccd8456f667151dfc9cda42)

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