diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2017-09-10 21:10:16 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2017-09-17 15:57:27 +0200 |
commit | 19045efd0573b1c54d10db04c7f5426a2741bf14 (patch) | |
tree | 0c0dd6e3fb868f9390ecb0c01c5029500c8bbb29 /tests/fate | |
parent | 33e67eb80cf2d67198828f9430815ef319ffae6e (diff) | |
download | ffmpeg-19045efd0573b1c54d10db04c7f5426a2741bf14.tar.gz |
avcodec/shorten: Move buffer allocation and offset init to end of read_header()
They are time consuming operations, performing them after the other checks
improves the speed with damaged input dramatically.
Fixes: Timeout
Fixes: 2928/clusterfuzz-testcase-4992812120539136
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 380659604f2692b625928a3a76a1c046f473c9f6)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'tests/fate')
0 files changed, 0 insertions, 0 deletions