dds: validate source buffer size before copying
authorAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Wed, 11 Nov 2015 00:14:57 +0000 (01:14 +0100)
committerVittorio Giovara <vittorio.giovara@gmail.com>
Thu, 12 Nov 2015 03:39:14 +0000 (04:39 +0100)
commite6459c655e110cd9acb5d0658d89c415eaca847b
tree86b79e69ae428a344635252bd31f83f3dba9587c
parentb5f963bfec1f452c37eee900c7b11f065d10dd60
dds: validate source buffer size before copying

If it is too small av_image_copy_plane segfaults.

Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
libavcodec/dds.c