Re: [FFmpeg-devel] [PATCH] avcodec/g722enc: Validate parameters before using them

2021-02-08 Thread Andreas Rheinhardt
Andreas Rheinhardt: > In case trellis is outside of 0..23, an invalid shift and/or a signed > integer overflow happens; furthermore, it can lead to the request to > allocate nonsense amounts of memory. So validate first. > > Signed-off-by: Andreas Rheinhardt > --- > libavcodec/g722enc.c | 25 +++

[FFmpeg-devel] [PATCH] avcodec/g722enc: Validate parameters before using them

2021-02-05 Thread Andreas Rheinhardt
In case trellis is outside of 0..23, an invalid shift and/or a signed integer overflow happens; furthermore, it can lead to the request to allocate nonsense amounts of memory. So validate first. Signed-off-by: Andreas Rheinhardt --- libavcodec/g722enc.c | 25 - 1 file cha