xwddec: prevent overflow of lsize * avctx->height
authorAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Fri, 18 Dec 2015 18:28:51 +0000 (19:28 +0100)
committerAnton Khirnov <anton@khirnov.net>
Wed, 13 Jan 2016 08:39:13 +0000 (09:39 +0100)
commit8431629dd112874293380a6d8a852459fc1a76b6
tree57f232cf34f774d25b339f88d8d08ba464a26a55
parent5b83b24ccbec79359f2dcdc0f49e09010a05e58a
xwddec: prevent overflow of lsize * avctx->height

This is used to check if the input buffer is larger enough, so if this
overflows it can cause a false negative leading to a segmentation fault
in bytestream2_get_bufferu.

Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
libavcodec/xwddec.c