diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2017-05-05 13:16:07 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2017-05-14 17:52:43 +0200 |
commit | 826515083a289e3e22250c59438b9fe554e71a46 (patch) | |
tree | f64e340a9368d6b4dba888942c2701d7b5607645 /libavcodec | |
parent | 0f5cb5c1113de97f6c5a74fa4cf6699ba1b0bd7b (diff) | |
download | ffmpeg-826515083a289e3e22250c59438b9fe554e71a46.tar.gz |
avcodec/aacps: Fix undefined behavior
Fixes: 1337/clusterfuzz-testcase-minimized-5212314171080704
Fixes the existence of a potentially invalid pointer intermediate
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 527f89e05922e840083ac6d49eeb838b1e350dd4)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/aacps.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/aacps.c b/libavcodec/aacps.c index ccc79ffc1d..48b595adbd 100644 --- a/libavcodec/aacps.c +++ b/libavcodec/aacps.c @@ -975,7 +975,7 @@ static void stereo_processing(PSContext *ps, INTFLOAT (*l)[32][2], INTFLOAT (*r) h_step[1][3] = AAC_MSUB31_V3(H22[1][e+1][b], h[1][3], width); } ps->dsp.stereo_interpolate[!PS_BASELINE && ps->enable_ipdopd]( - l[k] + start + 1, r[k] + start + 1, + l[k] + 1 + start, r[k] + 1 + start, h, h_step, stop - start); } } |