avformat/oggparseopus: Check that granule pos is within the supported range
authorMichael Niedermayer <michael@niedermayer.cc>
Tue, 10 May 2016 21:12:58 +0000 (23:12 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 15 Aug 2016 16:54:34 +0000 (18:54 +0200)
commit3bbef6082aee8effda8e3ed9c8083739e752b7e4
tree9be4e42c33160996072a845ad623bac4eb9017ff
parent0aaf66fb2e2262c988429d06e966f5f6be40a15c
avformat/oggparseopus: Check that granule pos is within the supported range

Larger values would imply file durations of astronomic proportions and cause
overflows

Fixes integer overflow
Fixes: usan_int64_overflow

Found-by: Thomas Guilbert <tguilbert@google.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 8efaee3710baa87af40556a622bf2d96a27c6425)

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/oggparseopus.c