lavf/mov: fix huge alloc in mov_read_ctts
authorJohn Stebbins <jstebbins@jetheaddev.com>
Sun, 26 Nov 2017 15:32:30 +0000 (07:32 -0800)
committerMichael Niedermayer <michael@niedermayer.cc>
Thu, 30 Nov 2017 23:07:30 +0000 (00:07 +0100)
commit2d015d3bf9fed59c65a3819a35fedbb8b7dde623
treed0d90cc6f1e1099e4650f6f21724d2981afc88da
parentd13b8f68d7cb1e03259faf2da54ff1a5da2b54e1
lavf/mov: fix huge alloc in mov_read_ctts

An invalid file may cause huge alloc.  Delay expansion of ctts entries
until the number of samples is known in mov_build_index.

Fixes: 23

Found-by: zhao dongzhuo, AD-lab of Venustech
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/mov.c