diff options
author | Dale Curtis <dalecurtis@chromium.org> | 2015-01-06 04:00:43 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-01-09 17:19:10 +0100 |
commit | 9143ab0e5a75519c899cae2996d07b3f69bcfb24 (patch) | |
tree | 05072dfa1c6b66ef54dde40dfed2fde67a5d8f9c /tests/ref/fate/h264-conformance-cawp5_toshiba_e | |
parent | 022bfd3dd47c3a2b59ce3eb1142aecc199f320ed (diff) | |
download | ffmpeg-9143ab0e5a75519c899cae2996d07b3f69bcfb24.tar.gz |
mov: Fix overflow and error handling in read_tfra().
Under abnormal conditions the item_count may exceed the max
allocation size on 32-bit systems, this causes the allocated
size to overflow and become too small for the given count.
Additionally, if av_reallocp() fails its allocation, the
fragment_index_count is not correctly decremented.
Ensuring further havoc may be wrought, the error code for
read_tfra() is not checked upon return.
Found-by: Paul Mehta <paul@paulmehta.com>
positive return code and use of _array functions by commiter
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit db42d93a61be26873be6115c57f5921b4dfdec14)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'tests/ref/fate/h264-conformance-cawp5_toshiba_e')
0 files changed, 0 insertions, 0 deletions