avformat/mov: Fix signed integer overflows with total_size
authorVitaly Buka <vitalybuka-at-google.com@ffmpeg.org>
Sun, 20 Aug 2017 18:56:47 +0000 (11:56 -0700)
committerMichael Niedermayer <michael@niedermayer.cc>
Wed, 23 Aug 2017 01:17:11 +0000 (03:17 +0200)
commit4a404cb5b90b878cbe1bb528fac65cf508668cc5
treee0f031f1e0ad4e146d9cec17c980a5009f9af24a
parent8c2bb10ddfef1f151b9455d152c9aca91140a4b0
avformat/mov: Fix signed integer overflows with total_size

Signed integer overflow is undefined behavior.
Detected with clang and -fsanitize=signed-integer-overflow

Signed-off-by: Vitaly Buka <vitalybuka@google.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/mov.c