]> git.sesse.net Git - ffmpeg/commit
avcodec/g722enc: Validate parameters before using them
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Fri, 5 Feb 2021 11:23:49 +0000 (12:23 +0100)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Mon, 8 Feb 2021 12:27:22 +0000 (13:27 +0100)
commit8d21eccd267acfcde3d35bbbf6621d6c3282e1ea
tree6ef92e391d94fb00fe49d9695c399e5a2f4d1e47
parenta773455c4f02558e3cd24ae79616edee146da146
avcodec/g722enc: Validate parameters before using them

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 <andreas.rheinhardt@gmail.com>
libavcodec/g722enc.c