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>
Thu, 24 Aug 2017 10:03:52 +0000 (12:03 +0200)
commit05fc22f9f69e56a76a52d5287d966d6d66b55ab2
tree5f45f34116f6898aedce9a2ba226af4d9944ae8b
parentcab75cde01709c56877948552eeaac5e71d55b14
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>
(cherry picked from commit 4a404cb5b90b878cbe1bb528fac65cf508668cc5)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/mov.c