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>
Thu, 12 Apr 2018 22:35:15 +0000 (00:35 +0200)
commit8cf7205a72f5a330781470a28485584f7d08054d
treef450ff459c47e3ae552b6e6780de7edd8612749f
parent42bd425205f464e95b2bfc1def239ee31e2becfe
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