diff options
author | Dale Curtis <[email protected]> | 2015-01-06 04:00:43 +0100 |
---|---|---|
committer | Michael Niedermayer <[email protected]> | 2015-01-06 04:44:16 +0100 |
commit | db42d93a61be26873be6115c57f5921b4dfdec14 (patch) | |
tree | 74b5e688536d436b9ed1590d0331ebb3df06fc84 /libavformat/rtpenc_h264.c | |
parent | a79ac73b631a2d8347f45fbdcb666f37e40ab9fe (diff) |
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 <[email protected]>
positive return code and use of _array functions by commiter
Signed-off-by: Michael Niedermayer <[email protected]>
Diffstat (limited to 'libavformat/rtpenc_h264.c')
0 files changed, 0 insertions, 0 deletions