lavf/mov: don't read outside frag_index bounds
authorJohn Stebbins <jstebbins@jetheaddev.com>
Fri, 17 Nov 2017 16:21:02 +0000 (08:21 -0800)
committerMichael Niedermayer <michael@niedermayer.cc>
Sat, 18 Nov 2017 10:57:57 +0000 (11:57 +0100)
commit20c38f2e7085ce02c19df965d02ecdf5628f11b8
tree1dc74b1b08fd2bf6efc7292127799d03dc5de50a
parent5eaaffaf64d1854493f0fe9ec822eed1b3cd9fe1
lavf/mov: don't read outside frag_index bounds

Potentially fixes:
https://bugs.chromium.org/p/chromium/issues/detail?id=786269#c1

In theory, the crash can be triggered by an invalid stream that has
either tfdt or trun outside of the moof

Reviewed-by: Dale Curtis <dalecurtis@chromium.org>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/mov.c