aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/dvbsub_parser.c
diff options
context:
space:
mode:
authorwm4 <nfxjfg@googlemail.com>2015-02-03 14:41:10 +0100
committerMichael Niedermayer <michaelni@gmx.at>2015-06-10 02:13:08 +0200
commit64857ecd68b7aad7dc6cf4e9a26d46250315ebb0 (patch)
tree3195c9799a77c53aeb0304c2791103984fc3ab9c /libavcodec/dvbsub_parser.c
parent904f75d3c46ba4359aecdf77a206a194882b9810 (diff)
downloadffmpeg-64857ecd68b7aad7dc6cf4e9a26d46250315ebb0.tar.gz
avformat/tta: fix crash with corrupted files
av_add_index_entry() can fail, for example because the parameters are invalid, or because memory allocation fails. Check this; it can actually happen with corrupted files. The second hunk is just for robustness. Just in case functions like ff_reduce_index() remove entries. (Not sure if this can actually happen.) Fixes ticket #4294. Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at> (cherry picked from commit 6a0cd529a35190d9374b0b26504e71857cd67b83) Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/dvbsub_parser.c')
0 files changed, 0 insertions, 0 deletions