dds: validate source buffer size before copying
authorAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Tue, 10 Nov 2015 23:05:02 +0000 (00:05 +0100)
committerAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Wed, 11 Nov 2015 20:49:51 +0000 (21:49 +0100)
commit1675809d2df76b1a185c78ca0a7a1c8ccb493167
tree456c7ec9e5b654d83d754bc69e0357da7cf61b80
parent0e36a14a423b7cb32d54d1b621cc9136cccc3dc5
dds: validate source buffer size before copying

If it is too small av_image_copy_plane segfaults.

Reviewed-by: Vittorio Giovara <vittorio.giovara@gmail.com>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
libavcodec/dds.c