diff options
author | Ronald S. Bultje <rsbultje@gmail.com> | 2012-02-28 18:11:59 -0800 |
---|---|---|
committer | Ronald S. Bultje <rsbultje@gmail.com> | 2012-03-07 09:37:29 -0800 |
commit | e6ffd997cbc06426e75d3fa291b991866c84a79b (patch) | |
tree | 22a00f4bbf5597ce21d5adea4784dcd5226c562a /libavcodec/dcadata.h | |
parent | cc5dd632cecc5114717d0b90f8c2be162b1c6ee8 (diff) | |
download | ffmpeg-e6ffd997cbc06426e75d3fa291b991866c84a79b.tar.gz |
dca: prevent accessing static arrays with invalid indexes.
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
Diffstat (limited to 'libavcodec/dcadata.h')
-rw-r--r-- | libavcodec/dcadata.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/dcadata.h b/libavcodec/dcadata.h index 0a83cdfae7..4b58ef7c38 100644 --- a/libavcodec/dcadata.h +++ b/libavcodec/dcadata.h @@ -7528,7 +7528,7 @@ static const float dca_downmix_coeffs[65] = { 0.001412537544623, 0.001000000000000, 0.000501187233627, 0.000251188643151, 0.000000000000000, }; -static const uint8_t dca_default_coeffs[16][5][2] = { +static const uint8_t dca_default_coeffs[10][5][2] = { { { 13, 13 }, }, { { 0, 64 }, { 64, 0 }, }, { { 0, 64 }, { 64, 0 }, }, |