avcodec/vp8: Do not use num_coeff_partitions in thread/buffer setup
authorMichael Niedermayer <michael@niedermayer.cc>
Wed, 30 Sep 2015 09:10:48 +0000 (11:10 +0200)
committerSylvain Beucler <beuc@debian.org>
Thu, 5 Dec 2019 16:27:00 +0000 (16:27 +0000)
commit8201ef3c20a9910583602907cf6b4e3566d93901
tree93ea9bd50adbbbae8942a3b42993217e3b742d34
parent0ce60563f63070c19f7bcf631107a5ecce0a240e
avcodec/vp8: Do not use num_coeff_partitions in thread/buffer setup

avcodec/vp8: Do not use num_coeff_partitions in thread/buffer setup

The variable is not a constant and can lead to race conditions

Fixes: repro.webm (not reproducable with FFmpeg alone)
Found-by: Dale Curtis <dalecurtis@google.com>
Tested-by: Dale Curtis <dalecurtis@google.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Gbp-Pq: Name CVE-2015-6761.patch
libavcodec/vp8.c