[FFmpeg-devel] [mov] Error on too large stsd entry counts.

Dale Curtis dalecurtis at chromium.org
Fri Aug 31 01:21:02 EEST 2018


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 at chromium.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Error-on-too-large-stsd-entry-counts.patch
Type: text/x-patch
Size: 1248 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20180830/905dc286/attachment.bin>


More information about the ffmpeg-devel mailing list