dds: validate compressed source buffer size
authorAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Tue, 10 Nov 2015 23:20:18 +0000 (00:20 +0100)
committerAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Wed, 11 Nov 2015 20:49:51 +0000 (21:49 +0100)
commit9a37d476440d9edaa26e6ed946d79cedde9d9e93
tree77703b5a87c40a77348b84f64f08a6df54a6fab8
parent1675809d2df76b1a185c78ca0a7a1c8ccb493167
dds: validate compressed source buffer size

A too small buffer will cause segfaults somewhere below
decompress_texture_thread.

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