avformat/aviobuf: Fix signed integer overflow in avio_seek()
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:08:07 +0000 (12:08 +0200)
commiteaf231544f2f93b96379af3adb71eb0e5f7c2664
treeac577bf6b9a0628069661c69bddc3b29b3850b48
parent05fc22f9f69e56a76a52d5287d966d6d66b55ab2
avformat/aviobuf: Fix signed integer overflow in avio_seek()

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 eca2a49716ae1f42804dd3545da2f740edf03250)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/aviobuf.c