rawdec: allocate a buffer in the appropriate size in the copy case.
authorHendrik Leppkes <h.leppkes@gmail.com>
Sun, 16 Jun 2013 07:46:17 +0000 (09:46 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Sun, 16 Jun 2013 07:50:16 +0000 (09:50 +0200)
commit8962da9ec367b535f975c876643ed2cad2bad32e
tree97284e93e630d5126e54b904080d6eb542e7910b
parent359af6a7c74a0231d217b4102af03e1d75f3167a
rawdec: allocate a buffer in the appropriate size in the copy case.

Otherwise the created buffer can be smaller than buf_size, which results
in buffer overreads if the original image has extra padding on every line.

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