lavc/bmp: Avoid a heap buffer overwrite for 1bpp input.
authorCarl Eugen Hoyos <ceffmpeg@gmail.com>
Tue, 26 Mar 2019 12:32:11 +0000 (13:32 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Wed, 27 Mar 2019 07:47:32 +0000 (08:47 +0100)
commit0eeea04a7170040cd5035e0ab2acc546815886ce
treee10d2f422a30b195e73e44fe2b43313fc6cff979
parente20e5b38a622d03ddaceec2f06c32190b828c6b1
lavc/bmp: Avoid a heap buffer overwrite for 1bpp input.

Found by Mingi Cho, Seoyoung Kim, and Taekyoung Kwon
of the Information Security Lab, Yonsei University.

(cherry picked from commit 1e34014010dba9325fc5430934b51a61a5007c63)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/bmp.c