avformat/avidec: Fix integer overflow in cum_len check
authorMichael Niedermayer <michael@niedermayer.cc>
Thu, 8 Mar 2018 21:40:50 +0000 (22:40 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 9 Jul 2018 23:18:52 +0000 (01:18 +0200)
commit3b5645a72928e3eab7594205bab2d8aed8c114e8
treeb74a2a89c04bbbb319da716730cfdaf1b1f8e52e
parent7d915afd23aabe58c0d8fe260960263d7665703a
avformat/avidec: Fix integer overflow in cum_len check

Fixes: signed integer overflow: 3775922176 * 4278190080 cannot be represented in type 'long'
Fixes: Chromium bug 791237

Reported-by: Matt Wolenetz <wolenetz@google.com>
Reviewed-by: Matt Wolenetz <wolenetz@google.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 06e092e7819b9437da32925200e7c369f93d82e7)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/avidec.c