[FFmpeg-devel] [PATCH] avcodec/metasound_data: Fix inconsistency in tables

Paul B Mahol onemda at gmail.com
Wed Oct 23 10:03:36 CEST 2013


On 10/22/13, Michael Niedermayer <michaelni at gmx.at> wrote:
> Fixes out of array read

How and why this fixes out of array read?

>
> This issue can be reproduced with:
> Lucky.asf
> teuflisch.asf
> from http://samples.ffmpeg.org/A-codecs/VoxWare/
>
> as well as other samples
>
> Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
> Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> ---
>  libavcodec/metasound_data.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/libavcodec/metasound_data.c b/libavcodec/metasound_data.c
> index 3465499..2a9fa33 100644
> --- a/libavcodec/metasound_data.c
> +++ b/libavcodec/metasound_data.c
> @@ -5056,7 +5056,7 @@ const TwinVQModeTab ff_metasound_mode0808 = {
>  const TwinVQModeTab ff_metasound_mode1616 = {
>      {
>          { 8, bark_tab_s16_128,  10, fcb16s, 1, 5, cb1616s0, cb1616s1, 16
> },
> -        { 2, bark_tab_m16_512,  24, fcb16m, 2, 5, cb1616m0, cb1616m1, 15
> },
> +        { 2, bark_tab_m16_512,  20, fcb16m, 2, 5, cb1616m0, cb1616m1, 15
> },
>          { 1, bark_tab_l16_1024, 30, fcb16l, 3, 6, cb1616l0, cb1616l1, 16 }
>      },
>      1024, 16, lsp16, 1, 6, 4, 3, shape16, 9, 28, 30, 7, 200
> --
> 1.7.9.5
>
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>


More information about the ffmpeg-devel mailing list