diff options
author | Dale Curtis <dalecurtis@chromium.org> | 2018-08-30 15:18:25 -0700 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2018-10-28 02:22:42 +0200 |
commit | eab5f6e419ec8b195d0247d5a4acce9cfc9e0f7a (patch) | |
tree | ce33a9a45137e332a8a702272b69c76d240d88f7 /libavcodec/pcm.c | |
parent | 462edf5b94354fac265f5c76eff7c733f8ee5b3e (diff) | |
download | ffmpeg-eab5f6e419ec8b195d0247d5a4acce9cfc9e0f7a.tar.gz |
avformat/mov: Error on too large stsd entry counts.
Entries are always at least 8 bytes per the parsing code, so if we
see an impossible entry count avoid massive allocations. This is
similar to an existing check in mov_read_stsc().
Since ff_mov_read_stsd_entries() does eof checks, an alternative
approach could be to clamp the entry count to atom.size / 8.
Signed-off-by: Dale Curtis <dalecurtis@chromium.org>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 320b631a99a9f759fd1d5460fd4e285d184b8186)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/pcm.c')
0 files changed, 0 insertions, 0 deletions