avcodec/wmaprodec: Fix buflen computation in save_bits()
authorMichael Niedermayer <michael@niedermayer.cc>
Fri, 8 Nov 2019 18:20:31 +0000 (19:20 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 1 Dec 2019 16:54:56 +0000 (17:54 +0100)
commitf4daf42c1a5ce6ecf7234d804952536160870dba
tree45c273eabe874414a38a370adeb88ac8063fd7e8
parent5b43aa7a80f5ddaa46fec9866061a7c0e0d7f72e
avcodec/wmaprodec: Fix buflen computation in save_bits()

Fixes: Assertion failure
Fixes: 18630/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_WMAPRO_fuzzer-5201588654440448

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 589cb44498b5e9683c95746255a2abd6d1e74f94)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/wmaprodec.c