]> git.sesse.net Git - ffmpeg/commit
avcodec/alsdec: Limit maximum channels to 512
authorMichael Niedermayer <michael@niedermayer.cc>
Tue, 20 Aug 2019 14:52:07 +0000 (16:52 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Tue, 20 Aug 2019 23:21:27 +0000 (01:21 +0200)
commitf51e4d026cc762ff2d47d6107658dbff42ba5ea8
treeb0e3d94a3ab583dc8c7970a86d42400a32c8cac3
parent74e6800381a2c82fff0aef6457414b3cefc1157c
avcodec/alsdec: Limit maximum channels to 512

There seems to be no limit in the specification and upto 64k could be stored
512 is choosen as limit as thats the maximum in a conformance sample

An alternative to this patch would be a max_channels variable

Fixes: OOM
Fixes: 16200/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_ALS_fuzzer-5764788793114624
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Suggested-by: Thilo Borgmann <thilo.borgmann@mail.de>
Reviewed-by: Thilo Borgmann <thilo.borgmann@mail.de>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/alsdec.c