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>
Sat, 10 Mar 2018 01:44:45 +0000 (02:44 +0100)
commit06e092e7819b9437da32925200e7c369f93d82e7
tree6e509c53fe446b304493ed16a33a9b3dd625f3a4
parent02ecda4aba69670ca744ccc640391b7621f01fb0
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>
libavformat/avidec.c