diff options
author | Andreas Cadhalpun <andreas.cadhalpun@googlemail.com> | 2015-04-16 21:25:26 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-04-16 23:33:53 +0200 |
commit | a2908d49d1e1373264d4605cbc2e62a3ab53710b (patch) | |
tree | dec4890c4745e96961111237e1bf459db98fd89a /libavcodec/arm/aacpsdsp_neon.S | |
parent | fc9514bf4dd73c85ee4b7f4dc7ca0fb4fb7ea3e1 (diff) | |
download | ffmpeg-a2908d49d1e1373264d4605cbc2e62a3ab53710b.tar.gz |
ac3: validate end in ff_ac3_bit_alloc_calc_mask
This fixes an invalid read if end is 0:
band_end = ff_ac3_bin_to_band_tab[end-1] + 1;
Depending on what is before the array, this can cause stack smashing,
when band_end becomes too large.
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit bc4fee7f2a51635fa3c0f61d1e5164da1efeded3)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/arm/aacpsdsp_neon.S')
0 files changed, 0 insertions, 0 deletions