1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-02-04 06:08:26 +02:00
FFmpeg/libavformat
Matt Wolenetz 133ddd3875 avformat/mov: Initialize a potential gap in ctts_data in mov_build_index
mov_read_ctts ignores ctts entries having count <= 0. Generally, the
aggregate of all ctts entries' count fields resulting from mov_read_ctts
can be less than the corresponding sample_count.

mov_build_index attempts to normalize any existing ctts_data counts to
be 1, to make a 1-1 mapping of a ctts_data entry to a sample.

That 1-1 mapping left a tail of uninitialized ctts_data entries when the
aggregate, normalized ctts_count < sample_count.

Even more generally, later usage of ctts_data may depend on the entire
ctts_allocated_size having been initialized.

This change memsets the entire allocation of the normalized ctts_data in
mov_build_index, to prevent use of uninitialized data later.

BUG=816787

Change-Id: I7fd7db255e3aeed076ee32c90cb2df211741c052
Reviewed-on: https://chromium-review.googlesource.com/947110
Reviewed-by: Xiaohan Wang <xhwang@chromium.org>

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2018-03-05 01:16:34 +01:00
..
2017-03-29 14:49:29 +02:00
2017-10-05 17:10:23 +02:00
2017-10-05 17:10:23 +02:00
2017-02-01 02:57:40 +01:00
2017-10-19 22:07:21 +02:00
2017-09-20 03:31:48 +02:00
2017-10-19 22:07:21 +02:00
2017-09-01 18:52:56 +08:00
2017-10-05 17:10:23 +02:00
2017-08-30 12:13:01 +02:00
2017-02-11 20:20:07 +01:00
2017-09-07 15:19:22 +02:00
2018-02-04 15:19:41 +01:00
2017-10-05 17:10:23 +02:00
2018-02-06 23:08:42 -03:00
2017-12-13 15:10:07 +00:00
2017-04-20 15:39:18 +00:00
2017-11-05 10:42:07 +01:00
2017-12-08 16:01:09 +01:00
2017-03-30 13:26:04 +02:00
2017-10-05 17:10:23 +02:00
2017-06-13 19:49:06 +02:00
2018-02-11 20:03:33 +01:00
2018-02-11 20:03:33 +01:00
2017-04-25 15:39:10 +02:00
2018-02-11 20:03:33 +01:00
2018-02-11 20:03:33 +01:00
2017-01-30 11:00:58 +01:00
2017-09-09 12:07:14 +02:00
2017-12-31 16:14:23 +01:00
2017-11-24 15:05:35 -03:00
2017-09-22 01:33:22 +02:00
2017-07-16 16:09:17 +01:00