flvdec: Check for overflow before allocating arrays
authorMichael Niedermayer <michaelni@gmx.at>
Sat, 24 Sep 2011 15:57:31 +0000 (18:57 +0300)
committerMartin Storsjö <martin@martin.st>
Sun, 25 Sep 2011 09:55:21 +0000 (12:55 +0300)
commita246cefa75aed2ade315d6d09068aacb6b0fe76b
tree579b25eeb857a30869b7fac7543071984c713c06
parent9b921a8272cfcf5168a03042a6d84091cd33ee7b
flvdec: Check for overflow before allocating arrays

On allocation, the array length is multiplied by sizeof(int64_t),
this prevents the multiplication from overflowing.

Signed-off-by: Martin Storsjö <martin@martin.st>
libavformat/flvdec.c