diff options
author | Andreas Cadhalpun <andreas.cadhalpun@googlemail.com> | 2015-04-16 21:25:26 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-04-22 12:27:25 +0200 |
commit | 307c5cb9d4cc3b9373cac5b00ebdc28fc0d593fe (patch) | |
tree | 1ad065f4ab6642cdf7117e7c0d0325c8e8eb8211 /cmdutils.c | |
parent | 49ff079f0c0ec03cfb50e4f1198475f72cfe81f5 (diff) | |
download | ffmpeg-307c5cb9d4cc3b9373cac5b00ebdc28fc0d593fe.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 'cmdutils.c')
0 files changed, 0 insertions, 0 deletions