avformat/mov: check for pts overflow in mov_read_sidx()
authorMichael Niedermayer <michael@niedermayer.cc>
Thu, 15 Apr 2021 16:43:25 +0000 (18:43 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Fri, 18 Jun 2021 18:53:56 +0000 (20:53 +0200)
commit26369e6ca993796ab054270a1bb685583e7c7eb9
tree9ae5af29569bdecfc07ce603f6bfcb67f50e961f
parent246b3d58a956d090b1438b005701608927aca681
avformat/mov: check for pts overflow in mov_read_sidx()

Fixes: signed integer overflow: 9223372036846336888 + 4278255871 cannot be represented in type 'long'
Fixes: 32782/clusterfuzz-testcase-minimized-ffmpeg_dem_MOV_fuzzer-6059216516284416

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit ee53bb2399d8f387ac93a18ba0600ca7b04ac634)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/mov.c